From 6bb79064a8d717e191ceda7cb2dc1549d3613691 Mon Sep 17 00:00:00 2001 From: buhuazhen <hua100783@gmail.com> Date: 星期二, 26 八月 2025 13:58:03 +0800 Subject: [PATCH] purchase添加类型 以及新增字典查询方法 --- ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml index 3b94b7f..3f2af4c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/SysDictDataMapper.xml @@ -59,8 +59,12 @@ <select id="countDictDataByType" resultType="Integer"> select count(1) from sys_dict_data where dict_type=#{dictType} </select> - - <delete id="deleteDictDataById" parameterType="Long"> + <select id="selectAllDictList" resultType="com.ruoyi.common.core.domain.entity.SysDictData"> + <include refid="selectDictDataVo"/> + where status = '0' + </select> + + <delete id="deleteDictDataById" parameterType="Long"> delete from sys_dict_data where dict_code = #{dictCode} </delete> @@ -84,7 +88,7 @@ <if test="status != null">status = #{status},</if> <if test="remark != null">remark = #{remark},</if> <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if> - update_time = sysdate() + update_time = now() </set> where dict_code = #{dictCode} </update> @@ -117,7 +121,7 @@ <if test="status != null">#{status},</if> <if test="remark != null and remark != ''">#{remark},</if> <if test="createBy != null and createBy != ''">#{createBy},</if> - sysdate() + now() ) </insert> -- Gitblit v1.9.3