From 8853292babb2ad94de4a3207966f1e83b767cd2d Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Sun, 17 Sep 2023 16:38:34 +0800
Subject: [PATCH] 新增流程节点进程查询接口

---
 src/main/java/org/springblade/modules/seinspect/mapper/SeinspectMapper.xml |   67 +++++++++++++++++++++++++++------
 1 files changed, 54 insertions(+), 13 deletions(-)

diff --git a/src/main/java/org/springblade/modules/seinspect/mapper/SeinspectMapper.xml b/src/main/java/org/springblade/modules/seinspect/mapper/SeinspectMapper.xml
index 0c55533..6dc19ae 100644
--- a/src/main/java/org/springblade/modules/seinspect/mapper/SeinspectMapper.xml
+++ b/src/main/java/org/springblade/modules/seinspect/mapper/SeinspectMapper.xml
@@ -3,21 +3,62 @@
 <mapper namespace="org.springblade.modules.seinspect.mapper.SeinspectMapper">
 
     <!-- 通用查询映射结果 -->
-    <resultMap id="seinspectResultMap" type="org.springblade.modules.seinspect.entity.Seinspect">
-        <id column="id" property="id"/>
-        <result column="realName" property="realname"/>
-        <result column="carid" property="carid"/>
-        <result column="sName" property="sname"/>
-        <result column="inspectman" property="inspectman"/>
-        <result column="deptName" property="deptname"/>
-        <result column="reviewTime" property="reviewtime"/>
-        <result column="insid" property="insid"/>
-        <result column="examination_type" property="examinationType"/>
-    </resultMap>
+<!--    <resultMap id="seinspectResultMap" type="org.springblade.modules.seinspect.entity.Seinspect">-->
+<!--        <id column="id" property="id"/>-->
+<!--        <result column="realName" property="realname"/>-->
+<!--        <result column="carid" property="carid"/>-->
+<!--        <result column="sName" property="sname"/>-->
+<!--        <result column="inspectman" property="inspectman"/>-->
+<!--        <result column="deptName" property="deptname"/>-->
+<!--        <result column="reviewTime" property="reviewtime"/>-->
+<!--        <result column="insid" property="insid"/>-->
+<!--        <result column="examination_type" property="examinationType"/>-->
+<!--        <result column="url" property="url"/>-->
+<!--        <result column="jid" property="jid"/>-->
+<!--        <result column="deptid" property="deptid"/>-->
+<!--        <result column="jurisdiction" property="jurisdiction"/>-->
+<!--        <result column="url" property="url"/>-->
+<!--    </resultMap>-->
 
 
-    <select id="selectSeinspectPage" resultMap="seinspectResultMap">
-        select * from sys_seinspect where is_deleted = 0
+    <select id="selectSeinspectPage" resultType="org.springblade.modules.seinspect.vo.SeinspectVO">
+        select
+            ss.*,bu1.cardid cardId,
+            bu.real_name realName,
+            bd.dept_name examinerDeptName,
+            bu1.real_name securityName,
+            bd1.dept_name securityDeptName
+        from
+            sys_seinspect ss
+        left join
+        blade_user bu
+        on
+        bu.id = ss.examiner_id
+        left join
+        blade_dept bd
+        on
+        bd.id = ss.examiner_dept_id
+        left join
+        blade_user bu1
+        on
+        bu1.id = ss.security_id
+        left join
+        blade_dept bd1
+        on
+        bd1.id = bu1.dept_id
+        where 1 = 1
+        <if test="seinspect.realName!=null and seinspect.realName!=''">
+            and bu.real_name like concat('%',#{seinspect.realName},'%')
+        </if>
+        <if test="seinspect.examinerDeptName!=null and seinspect.examinerDeptName!=''">
+            and bd.dept_name like concat('%',#{seinspect.examinerDeptName},'%')
+        </if>
+        <if test="seinspect.securityName!=null and seinspect.securityName!=''">
+            and bu1.real_name like concat('%',#{seinspect.securityName},'%')
+        </if>
+        <if test="seinspect.result!=null and seinspect.result!=''">
+            and ss.result like concat('%',#{seinspect.result},'%')
+        </if>
     </select>
 
 </mapper>

--
Gitblit v1.9.3