From 4c19ddd36bdfb43b5ef4e8df3c9a98cd4d356d6c Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Thu, 26 May 2022 10:55:04 +0800
Subject: [PATCH] 1、资讯模糊匹配修改
---
src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml | 46 ++++++++++++++++++++++++++++++++++++++++------
1 files changed, 40 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml b/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
index b53a4b7..a771aaf 100644
--- a/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
+++ b/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
@@ -13,7 +13,13 @@
<result column="zctime" property="zctime"/>
<result column="type" property="type"/>
<result column="deptid" property="deptid"/>
- <result column="parentId" property="parentId"/>
+ <result column="parent_id" property="parentId"/>
+ <result column="jurisdiction" property="jurisdiction"/>
+ <result column="cardid" property="cardid"/>
+ <result column="examination_type" property="examination_type"/>
+ <result column="examination_mx" property="examination_mx"/>
+ <result column="audit_time" property="auditTime"/>
+ <result column="address" property="address"/>
</resultMap>
@@ -32,17 +38,45 @@
<if test="zc.type != null and zc.type != '' ">
and type like CONCAT('%',#{zc.type},'%')
</if>
- and type != 1
+ <if test="zc.cardid != null and zc.cardid != '' ">
+ and cardid like CONCAT('%',#{zc.cardid},'%')
+ </if>
+ <if test="zc.examination_type != null and zc.examination_type != '' ">
+ and examination_type = #{zc.examination_type}
+ </if>
+ and type != 1 ORDER BY zctime DESC
</select>
<!--注册新增-->
- <insert id="inster">
- insert into act_zc(username,password,sname,sex,phone,zctime,deptid) values(#{username},#{password},#{sname},#{sex},#{phone},#{zctime},#{deptid})
- </insert>
+ <insert id="inster" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
+ insert into act_zc(username, password, sname, sex, phone, zctime, deptid, parent_id, jurisdiction, cardid,address,workaddress, workjurisdiction, signals,job_unit)
+ values (#{username}, #{password}, #{sname}, #{sex}, #{phone}, #{zctime}, #{deptid}, #{parentId},
+ #{jurisdiction}, #{cardid},#{address},#{workaddress},#{workjurisdiction},#{signals},#{jobUnit})
+ </insert>
<select id="selectType" resultType="String">
- select type from act_zc where username=#{param1}
+ select type
+ from act_zc
+ where username = #{param1}
</select>
+ <update id="updateExamine">
+ update act_zc set type=1 where id in (${ids});
+ update blade_user set stype=1,firstlogin = "1" where account in
+ <foreach collection="names" index="index" item="item" open="(" separator="," close=")">
+ "${item}"
+ </foreach>
+ </update>
+
+ <select id="selecyZcCount" resultType="java.lang.Integer">
+ select count(*)
+ from act_zc
+ where username =#{account}
+ </select>
+
+ <delete id="deleteZc">
+ delete from act_zc where username=#{account}
+ </delete>
+
</mapper>
--
Gitblit v1.9.3