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.WgdAssocCostDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<!-- 基础信息-->
<sql id="BaseInfo">
id,sc_name,ssc_name,wg_name,pay_standard,pay_reality,cost_outlay,annual_payment
@@ -35,14 +40,24 @@
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_assoc_cost
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost" resultType="java.lang.Integer">
select count(*) from wgd_assoc_cost
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
select <include refid="BaseInfo"></include> from wgd_assoc_cost
<include refid="pages"></include>
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
select <include refid="BaseInfo"></include> from wgd_assoc_cost
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
@@ -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
@@ -1,20 +1,75 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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.WgdCommiInfoDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,unit,sc_name,ssc_name,wg_name,role,attend,cur_time,job,department,
tel,term,certificate,account,password,remark
</sql>
<sql id="Conditions">
where 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="unit != null and unit != ''">
and unit = #{unit}
</if>
<if test="scName != null and scName != ''">
and sc_name = #{scName}
</if>
<if test="sscName != null and sscName != ''">
and ssc_name = #{sscName}
</if>
<if test="wgName != null and wgName != ''">
and wg_name = #{wgName}
</if>
<if test="role != null and role != ''">
and role = #{role}
</if>
<if test="attend != null and attend != ''">
and attend = #{attend}
</if>
<if test="curTime != null">
and cur_time = #{curTime}
</if>
<if test="job != null and job != ''">
and job = #{job}
</if>
<if test="department != null and department != ''">
and department = #{department}
</if>
<if test="tel != null and tel != ''">
and tel = #{tel}
</if>
<if test="term != null and term != ''">
and term = #{term}
</if>
<if test="certificate != null and certificate != ''">
and certificate = #{certificate}
</if>
<if test="account != null and account != ''">
and account = #{account}
</if>
<if test="remark != null and remark != ''">
and remark = #{remark}
</if>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo" resultType="java.lang.Integer">
select count(*) from wgd_commi_info
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
select <include refid="BaseInfo"></include> from wgd_commi_info
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
select <include refid="BaseInfo"></include> from wgd_commi_info
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
select <include refid="BaseInfo"></include> from wgd_commi_info
@@ -22,15 +77,167 @@
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
update wgd_commi_info
<set>
<if test="unit != null and unit != ''">
unit = #{unit},
</if>
<if test="scName != null and scName != ''">
sc_name = #{scName},
</if>
<if test="sscName != null and sscName != ''">
ssc_name = #{sscName},
</if>
<if test="wgName != null and wgName != ''">
wg_name = #{wgName},
</if>
<if test="role != null and role != ''">
role = #{role},
</if>
<if test="attend != null and attend != ''">
attend = #{attend},
</if>
<if test="curTime != null">
cur_time = #{curTime},
</if>
<if test="job != null and job != ''">
job = #{job},
</if>
<if test="department != null and department != ''">
department = #{department},
</if>
<if test="tel != null and tel != ''">
tel = #{tel},
</if>
<if test="term != null and term != ''">
term = #{term},
</if>
<if test="certificate != null and certificate != ''">
certificate = #{certificate},
</if>
<if test="account != null and account != ''">
account = #{account},
</if>
<if test="password != null and password != ''">
password = #{password},
</if>
<if test="remark != null and remark != ''">
remark = #{remark},
</if>
</set>
where id = #{id}
</update>
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdCommiInfo">
insert into wgd_commi_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="unit != null and unit != ''">
unit,
</if>
<if test="scName != null and scName != ''">
sc_name,
</if>
<if test="sscName != null and sscName != ''">
ssc_name,
</if>
<if test="wgName != null and wgName != ''">
wg_name,
</if>
<if test="role != null and role != ''">
role,
</if>
<if test="attend != null and attend != ''">
attend,
</if>
<if test="curTime != null">
cur_time,
</if>
<if test="job != null and job != ''">
job,
</if>
<if test="department != null and department != ''">
department,
</if>
<if test="tel != null and tel != ''">
tel,
</if>
<if test="term != null and term != ''">
term,
</if>
<if test="certificate != null and certificate != ''">
certificate,
</if>
<if test="account != null and account != ''">
account,
</if>
<if test="password != null and password != ''">
password,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
#{id},
</if>
<if test="unit != null and unit != ''">
#{unit},
</if>
<if test="scName != null and scName != ''">
#{scName},
</if>
<if test="sscName != null and sscName != ''">
#{sscName},
</if>
<if test="wgName != null and wgName != ''">
#{wgName},
</if>
<if test="role != null and role != ''">
#{role},
</if>
<if test="attend != null and attend != ''">
#{attend},
</if>
<if test="curTime != null">
#{curTime},
</if>
<if test="job != null and job != ''">
#{job},
</if>
<if test="department != null and department != ''">
#{department},
</if>
<if test="tel != null and tel != ''">
#{tel},
</if>
<if test="term != null and term != ''">
#{term},
</if>
<if test="certificate != null and certificate != ''">
#{certificate},
</if>
<if test="account != null and account != ''">
#{account},
</if>
<if test="password != null and password != ''">
#{password},
</if>
<if test="remark != null and remark != ''">
#{remark},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_commi_info where id = #{id}
</delete>
<delete id="deleteBatch">
delete from wgd_commi_info where id in
<foreach collection="array" item="id" separator="," close=")" open="(">
#{id}
</foreach>
</delete>
</mapper>
@@ -1,19 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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.WgdExReviseCostDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,type,pro_id,pro_name,cost_outlay,cost
</sql>
<sql id="Conditions">
where 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="type != null and type != ''">
and type = #{type}
</if>
<if test="proId != null and proId != ''">
and pro_id = #{proId}
</if>
<if test="proName != null and proName != ''">
and pro_name = #{proName}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
<if test="costOutlay != null and costOutlay != ''">
and cost_outlay = #{costOutlay}
</if>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost" resultType="java.lang.Integer">
select count(*) from wgd_ex_revise_cost
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
select <include refid="BaseInfo"></include> from wgd_ex_revise_cost
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
select <include refid="BaseInfo"></include> from wgd_ex_revise_cost
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
select <include refid="BaseInfo"></include> from wgd_ex_revise_cost
@@ -21,15 +48,77 @@
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
update wgd_ex_revise_cost
<set>
<if test="type != null and type != ''">
type = #{type},
</if>
<if test="proId != null and proId != ''">
pro_id = #{proId},
</if>
<if test="proName != null and proName != ''">
pro_name = #{proName},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay = #{costOutlay},
</if>
</set>
where id = #{id}
</update>
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
insert into wgd_ex_revise_cost
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
id,
</if>
<if test="type != null and type != ''">
type,
</if>
<if test="proId != null and proId != ''">
pro_id
</if>
<if test="proName != null and proName != ''">
pro_name,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay,
</if>
</trim>
values
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
#{id},
</if>
<if test="type != null and type != ''">
#{type},
</if>
<if test="proId != null and proId != ''">
#{proId},
</if>
<if test="proName != null and proName != ''">
#{proName},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
<if test="costOutlay != null and costOutlay != ''">
#{costOutlay},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_ex_revise_cost where id = #{id}
</delete>
<delete id="deleteBatch">
delete from wgd_ex_revise_cost where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -1,20 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!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.WgdMeetCostDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<sql id="BaseInfo">
id,unit,meet_name,meet_time,pay_standard,pay_reality,cost_outlay
</sql>
<sql id="Conditions">
where 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="unit != null and unit != ''">
and unit = #{unit}
</if>
<if test="meetName != null and meetName != ''">
and meet_name = #{meetName}
</if>
<if test="meetTime != null">
and meet_time = #{meetTime}
</if>
<if test="payStandard != null and payStandard != ''">
and pay_standard = #{payStandard}
</if>
<if test="payReality != null and payReality != ''">
and pay_reality = #{payReality}
</if>
<if test="costOutlay != null and costOutlay != ''">
and cost_outlay = #{costOutlay}
</if>
</sql>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost" resultType="java.lang.Integer">
select count(*) from wgd_meet_cost
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
select <include refid="BaseInfo"></include> from wgd_meet_cost
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
select <include refid="BaseInfo"></include> from wgd_meet_cost
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
select <include refid="BaseInfo"></include> from wgd_meet_cost
@@ -22,15 +52,86 @@
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
update wgd_meet_cost
<set>
<if test="unit != null and unit != ''">
unit = #{unit},
</if>
<if test="meetName != null and meetName != ''">
meet_name = #{meetName},
</if>
<if test="meetTime != null">
meet_time = #{meetTime},
</if>
<if test="payStandard != null and payStandard != ''">
pay_standard = #{payStandard},
</if>
<if test="payReality != null and payReality != ''">
pay_reality = #{payReality},
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay = #{costOutlay},
</if>
</set>
where id = #{id}
</update>
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
insert into wgd_meet_cost
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
id,
</if>
<if test="unit != null and unit != ''">
unit,
</if>
<if test="meetName != null and meetName != ''">
meet_name,
</if>
<if test="meetTime != null">
meet_time,
</if>
<if test="payStandard != null and payStandard != ''">
pay_standard,
</if>
<if test="payReality != null and payReality != ''">
pay_reality,
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay,
</if>
</trim>
values
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null and id != ''">
#{id},
</if>
<if test="unit != null and unit != ''">
#{unit},
</if>
<if test="meetName != null and meetName != ''">
#{meetName},
</if>
<if test="meetTime != null">
#{meetTime},
</if>
<if test="payStandard != null and payStandard != ''">
#{payStandard},
</if>
<if test="payReality != null and payReality != ''">
#{payReality},
</if>
<if test="costOutlay != null and costOutlay != ''">
#{costOutlay},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_meet_cost where id = #{id}
</delete>
<delete id="deleteBatch">
delete from wgd_meet_cost where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>