From 5fa6e6f8410ef9d057174bcff2a3c5038c54a551 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期日, 27 四月 2025 18:41:20 +0800 Subject: [PATCH] bug修改 --- ruoyi-system/src/main/resources/mapper/system/TItemTypeMapper.xml | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/TItemTypeMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TItemTypeMapper.xml index d39ad76..c92258e 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TItemTypeMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TItemTypeMapper.xml @@ -18,5 +18,27 @@ <sql id="Base_Column_List"> id, type_name, sort_by, create_time, update_time, create_by, update_by, disabled </sql> + <select id="pageList" resultType="com.ruoyi.system.model.TItemType"> + select + <include refid="Base_Column_List"/> + from t_item_type + where disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} + ORDER BY sort_by,create_time DESC + </select> + <select id="getItemList" resultType="com.ruoyi.system.vo.TItemTypeVO"> + select <include refid="Base_Column_List"></include> + from t_item_type + where id in ( + select + tit.id + from t_item_type tit + left join t_item ti on tit.id = ti.type_id + where tit.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} + <if test="itemName != null and itemName != ''"> + and ti.item_name like concat('%', #{itemName}, '%') + </if> + GROUP BY tit.id + ORDER BY tit.sort_by,tit.create_time DESC) + </select> </mapper> -- Gitblit v1.7.1