From 3d191e81842cf3bcd6f841fbe2fc3d451c45ef99 Mon Sep 17 00:00:00 2001
From: hongjli <3117313295@qq.com>
Date: 星期三, 14 五月 2025 13:54:40 +0800
Subject: [PATCH] 钣金计划大表增加“异常状态”字段
---
aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml | 26 ++++++++++++++++++++++----
1 files changed, 22 insertions(+), 4 deletions(-)
diff --git a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
index 00960fb..88d8803 100644
--- a/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
+++ b/aps-modules/aps-system/src/main/resources/mapper/system/SysDictDataMapper.xml
@@ -32,7 +32,7 @@
AND dict_type = #{dictType}
</if>
<if test="dictLabel != null and dictLabel != ''">
- AND dict_label like concat('%', #{dictLabel}, '%')
+ AND dict_label like '%' || #{dictLabel} || '%'
</if>
<if test="status != null and status != ''">
AND status = #{status}
@@ -40,7 +40,25 @@
</where>
order by dict_sort asc
</select>
-
+
+ <select id="selectByValue" resultMap="SysDictDataResult">
+ <include refid="selectDictDataVo"/>
+ <where>
+ <if test="dictTypeApsArea != null and dictTypeApsArea != ''">
+ AND dict_type = #{dictTypeApsArea}
+ </if>
+ <if test="dictValue != null and dictValue != ''">
+ AND dict_value = #{dictValue}
+ </if>
+ </where>
+ order by dict_sort asc
+ </select>
+
+ <select id="selectDictValueList" resultMap="SysDictDataResult">
+ select distinct dict_value from sys_dict_data where dict_type = #{dictType}
+ </select>
+
+
<select id="selectDictDataByType" parameterType="String" resultMap="SysDictDataResult">
<include refid="selectDictDataVo"/>
where status = '0' and dict_type = #{dictType} order by dict_sort asc
@@ -84,7 +102,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 +135,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