From 0a4fbcd9d997005bda2b5ac5dc9daa586342d7db Mon Sep 17 00:00:00 2001
From: tangzy <tangzy123456>
Date: Fri, 25 Feb 2022 14:43:11 +0800
Subject: [PATCH] 任务数量统计
---
src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml | 23 +++++++++++++++++++----
1 files changed, 19 insertions(+), 4 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 a39bc03..5e6e164 100644
--- a/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
+++ b/src/main/java/org/springblade/modules/zc/mapper/ZcMapper.xml
@@ -19,6 +19,7 @@
<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>
@@ -48,12 +49,26 @@
<!--注册新增-->
- <insert id="inster" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
- insert into act_zc(username,password,sname,sex,phone,zctime,deptid,parent_id,jurisdiction,cardid) values(#{username},#{password},#{sname},#{sex},#{phone},#{zctime},#{deptid},#{parentId},#{jurisdiction},#{cardid})
- </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)
+ values (#{username}, #{password}, #{sname}, #{sex}, #{phone}, #{zctime}, #{deptid}, #{parentId},
+ #{jurisdiction}, #{cardid},#{address})
+ </insert>
<select id="selectType" resultType="String">
- select type from act_zc where username=#{param1}
+ select type
+ from act_zc
+ where username = #{param1}
</select>
+ <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