mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-11-02 16:57:11 +08:00
refactor: 重构查询参数及字典接口
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="top.continew.admin.system.mapper.DictItemMapper">
|
||||
<select id="listByDictCode" resultType="top.continew.admin.common.model.resp.LabelValueResp">
|
||||
SELECT t1.label, t1.value, t1.color
|
||||
<select id="listByDictCode" resultType="top.continew.starter.extension.crud.model.resp.LabelValueResp">
|
||||
SELECT t1.label, t1.value, t1.color AS extend
|
||||
FROM sys_dict_item AS t1
|
||||
LEFT JOIN sys_dict AS t2 ON t1.dict_id = t2.id
|
||||
WHERE t1.status = 1 AND t2.code = #{dictCode}
|
||||
|
||||
Reference in New Issue
Block a user