From a491941cece9a90d72c9c6b0aab0e718e39dbd3c Mon Sep 17 00:00:00 2001
From: zhongrj <123456>
Date: Mon, 22 Aug 2022 15:54:22 +0800
Subject: [PATCH] 从业记录新增同步sql 修改,用户新增审查逻辑修改,外网部门只更新状态,不更新审查明细,内网状态和明细都更新

---
 src/main/java/org/springblade/modules/licet/mapper/LicetMapper.xml |   30 +++++++++++++++++++++++++++++-
 1 files changed, 29 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/licet/mapper/LicetMapper.xml b/src/main/java/org/springblade/modules/licet/mapper/LicetMapper.xml
index e35e677..c70b7d9 100644
--- a/src/main/java/org/springblade/modules/licet/mapper/LicetMapper.xml
+++ b/src/main/java/org/springblade/modules/licet/mapper/LicetMapper.xml
@@ -12,7 +12,35 @@
 
 
     <select id="selectLicetPage" resultMap="licetResultMap">
-        select * from sys_licet where is_deleted = 0
+        select * from sys_licet where 1=1
+        <if test="licet.ptype!=null and licet.ptype!=''">
+            and ptype = #{licet.ptype}
+        </if>
+        order by id asc
+    </select>
+
+    <select id="selectLicets" resultType="java.util.HashMap">
+        select
+        <trim suffixOverrides="," >
+            <if test="id != null and id !=''" >
+                id,
+            </if>
+            <if test="ptype != null and ptype !=''" >
+                ptype,
+            </if>
+            <if test="originalname != null and originalname !=''" >
+                originalname,
+            </if>
+            <if test="template != null and template !=''" >
+                ifnull(template,"") template,
+            </if>
+        </trim>
+        from sys_licet
+        where 1=1
+        <if test="licet.ptype!=null and licet.ptype!=''">
+            and ptype = #{licet.ptype}
+        </if>
+        order by id asc
     </select>
 
 </mapper>

--
Gitblit v1.9.3