From 4bd8f5572e62c39225da1d53e6cd101796dc90d8 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 19 Jul 2022 09:02:53 +0800
Subject: [PATCH] 积分排行榜前十展示/根据派出所,日周月展示前15任务
---
src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 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 5e6e164..7486814 100644
--- a/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
+++ b/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
@@ -44,15 +44,18 @@
<if test="zc.examination_type != null and zc.examination_type != '' ">
and examination_type = #{zc.examination_type}
</if>
+ <if test="zc.jurisdiction != null and zc.jurisdiction != '' ">
+ and (jurisdiction = #{zc.jurisdiction} or workjurisdiction = #{zc.jurisdiction})
+ </if>
and type != 1 ORDER BY zctime DESC
</select>
<!--注册新增-->
<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)
+ 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})
+ #{jurisdiction}, #{cardid},#{address},#{workaddress},#{workjurisdiction},#{signals},#{jobUnit})
</insert>
<select id="selectType" resultType="String">
@@ -61,6 +64,14 @@
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
--
Gitblit v1.9.3