zcr:数据信息统计表

This commit is contained in:
Kevin
2021-11-16 09:17:06 +08:00
parent 303640aa27
commit a5d0745aa0
32 changed files with 622 additions and 103 deletions
@@ -2,6 +2,11 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.adc.da.slrs.wgdCensusZ.dao.WgdAssocInfoDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,sc_name,ssc_name,wg_name,role,attend,standard,charge,leader,ini_time,
cur_time,cost_standard,cost_outlay,last_pay_time,pay_period,handler,
@@ -9,7 +14,7 @@
p17,p18,p19,p20,p21,p22,p23,p34,p25,p26,p27,p28,p29,p30,p31,p32
</sql>
<sql id="Conditions">
<where>
WHERE 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
@@ -76,14 +81,19 @@
<if test="mail != null and mail != ''">
and mail = #{mail}
</if>
</where>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo" resultType="java.lang.Integer">
select count(*) from wgd_assoc_info
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
select <include refid="BaseInfo"></include> from wgd_assoc_info
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
select <include refid="BaseInfo"></include> from wgd_assoc_info
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
select <include refid="BaseInfo"></include> from wgd_assoc_info