zayac-admin/continew-admin-system/src/main/resources/mapper/DictItemMapper.xml
Charles7c 87f90567db refactor: 💥 调整后端请求、响应参数模型命名风格
XxxRequest => XxxReq
XxxVO => XxxResp
2023-11-04 17:19:00 +08:00

11 lines
560 B
XML

<?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.charles7c.cnadmin.system.mapper.DictItemMapper">
<select id="listByDictCode" resultType="top.charles7c.cnadmin.common.model.resp.LabelValueResp">
SELECT t1.`label`, t1.`value`, t1.`color`
FROM `sys_dict_item` AS t1
LEFT JOIN `sys_dict` AS t2 ON t1.`dict_id` = t2.`id`
WHERE t2.`code` = #{dictCode}
ORDER BY t1.`sort` ASC
</select>
</mapper>