Merge branch 'develop_master' into develop_migration

This commit is contained in:
Superman_Main
2021-11-19 14:34:21 +08:00
94 changed files with 6144 additions and 66 deletions
@@ -0,0 +1,209 @@
<?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.esRevisePlan.dao.EsRevisePlanDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<!-- 基础信息-->
<sql id="BaseInfo">
id,
es_name,
plan_status,
revise_status,
drafter,
res_person,
wg_leader,
draft_time,
release_time,
unit
</sql>
<resultMap id="BaseInfoMap" type="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan">
<id property="id" column="id"></id>
<result property="esName" column="es_name"></result>
<result property="planStatus" column="plan_status"></result>
<result property="reviseStatus" column="revise_status"></result>
<result property="drafter" column="drafter"></result>
<result property="resPerson" column="res_person"></result>
<result property="wgLeader" column="wg_leader"></result>
<result property="draftTime" column="draft_time"></result>
<result property="releaseTime" column="release_time"></result>
<result property="unit" column="unit"></result>
</resultMap>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="esName != null and esName != ''">
and es_name like concat('%',#{esName},'%')
</if>
<if test="planStatus != null and planStatus != ''">
and plan_status = #{planStatus}
</if>
<if test="reviseStatus != null and reviseStatus != ''">
and revise_status = #{reviseStatus}
</if>
<if test="drafter != null and drafter != ''">
and drafter = #{drafter}
</if>
<if test="resPerson != null and resPerson != ''">
and res_person = #{resPerson}
</if>
<if test="wgLeader != null and wgLeader != ''">
and wg_leader = #{wgLeader}
</if>
<if test="draftTime != null">
and DATE_FORMAT(draft_time,'%Y-%m-%d')=DATE_FORMAT(#{draftTime},'%Y-%m-%d')
</if>
<if test="releaseTime != null">
and DATE_FORMAT(release_time,'%Y-%m-%d')=DATE_FORMAT(#{releaseTime},'%Y-%m-%d')
</if>
<if test="unit != null and unit != ''">
and unit like concat('%',#{unit},'%')
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer" >
select count(*) from es_revise_plan
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan" resultType="java.lang.Integer" >
select count(*) from es_revise_plan
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultMap="BaseInfoMap" >
select <include refid="BaseInfo"></include> from es_revise_plan
<include refid="pages">
</include>
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan" resultMap="BaseInfoMap">
select <include refid="BaseInfo"></include> from es_revise_plan
<include refid="Conditions">
</include>
<include refid="pages">
</include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultMap="BaseInfoMap">
select <include refid="BaseInfo"></include> from es_revise_plan
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan">
update es_revise_plan
<set>
<if test="id != null and id != ''">
id = #{id},
</if>
<if test="esName != null and esName != ''">
es_name = #{esName},
</if>
<if test="planStatus != null and planStatus != ''">
plan_status = #{planStatus},
</if>
<if test="reviseStatus != null and reviseStatus != ''">
revise_status = #{reviseStatus},
</if>
<if test="drafter != null and drafter != ''">
drafter = #{drafter},
</if>
<if test="resPerson != null and resPerson != ''">
res_person = #{resPerson},
</if>
<if test="wgLeader != null and wgLeader != ''">
wg_leader = #{wgLeader},
</if>
<if test="draftTime != null">
draft_time = #{draftTime},
</if>
<if test="releaseTime != null">
release_time = #{releaseTime},
</if>
<if test="unit != null and unit != ''">
unit = #{unit},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.esRevisePlan.entity.EsRevisePlan">
insert into es_revise_plan
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="esName != null and esName != ''">
es_name,
</if>
<if test="planStatus != null and planStatus != ''">
plan_status,
</if>
<if test="reviseStatus != null and reviseStatus != ''">
revise_status,
</if>
<if test="drafter != null and drafter != ''">
drafter,
</if>
<if test="resPerson != null and resPerson != ''">
res_person,
</if>
<if test="wgLeader != null and wgLeader != ''">
wg_leader,
</if>
<if test="draftTime != null">
draft_time,
</if>
<if test="releaseTime != null">
release_time,
</if>
<if test="unit != null and unit != ''">
unit,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="esName != null and esName != ''">
#{esName},
</if>
<if test="planStatus != null and planStatus != ''">
#{planStatus},
</if>
<if test="reviseStatus != null and reviseStatus != ''">
#{reviseStatus},
</if>
<if test="drafter != null and drafter != ''">
#{drafter},
</if>
<if test="resPerson != null and resPerson != ''">
#{resPerson},
</if>
<if test="wgLeader != null and wgLeader != ''">
#{wgLeader},
</if>
<if test="draftTime != null">
#{draftTime},
</if>
<if test="releaseTime != null">
#{releaseTime},
</if>
<if test="unit != null and unit != ''">
#{unit},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from es_revise_plan where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from es_revise_plan where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -995,7 +995,10 @@
<if test="mark == 999 ">
and sar_standards_info.ID in (select distinct stand_id from sar_stand_items)
</if>
<include refid="standSort_in"/>
<if test='page.orderByA != null and page.orderByA != "" and page.order1 != null and page.order1 != ""
and page.standType != null and page.standType != "" '>
<include refid="standSort_in"/>
</if>
limit ${page.pager.startIndex-1},${page.pageSize}
</select>
<!--FIELD(SAR_STANDARDS_INFO.issue_time,'已发布'), FIELD(SAR_STANDARDS_INFO.issue_time,'TBD'), FIELD(SAR_STANDARDS_INFO.issue_time,'N/A') ,-->
@@ -0,0 +1,133 @@
<?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.wgdCensusLeo.dao.WgdCgfyDao">
<sql id="pages">
<if test=" null != pageSize ">
LIMIT ${(page-1) * pageSize},${pageSize}
</if>
</sql>
<!-- 基础信息-->
<sql id="BaseInfo">
id,type,number,name,pages,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 like concat('%',#{type},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="pages != null and pages != ''">
and pages = #{pages}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_cgfy
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy" resultType="java.lang.Integer">
select count(*) from wgd_cgfy
<include refid="Conditions"></include>
</select>
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
select <include refid="BaseInfo"></include> from wgd_cgfy
</select>
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
select <include refid="BaseInfo"></include> from wgd_cgfy
<include refid="Conditions"></include>
<include refid="pages"></include>
</select>
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
select <include refid="BaseInfo"></include> from wgd_cgfy
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
update wgd_cgfy
<set>
<if test="type != null and type != ''">
type = #{type},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="pages != null and pages != ''">
pages = #{pages},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdCgfy">
insert into wgd_cgfy
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="type != null and type != ''">
type,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="pages != null and pages != ''">
pages,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="type != null and type != ''">
#{type},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="pages != null and pages != ''">
#{pages},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_cgfy where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_cgfy where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,154 @@
<?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.wgdCensusLeo.dao.WgdFyfyDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,type,number,name,translation,pages,cost,time
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="type != null and type != ''">
and type like concat('%',#{type},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="translation != null and translation != ''">
and translation like concat('%',#{translation},'%')
</if>
<if test="pages != null and pages != ''">
and pages = #{pages}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
<if test="time != null and time != ''">
and time = #{time}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_fyfy
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy" resultType="java.lang.Integer">
select count(*) from wgd_fyfy
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
select <include refid="BaseInfo"></include> from wgd_fyfy
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
select <include refid="BaseInfo"></include> from wgd_fyfy
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
select <include refid="BaseInfo"></include> from wgd_fyfy
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
update wgd_fyfy
<set>
<if test="type != null and type != ''">
type = #{type},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="translation != null and translation != ''">
translation = #{translation},
</if>
<if test="pages != null and pages != ''">
pages = #{pages},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
<if test="time != null and time != ''">
time = #{time},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdFyfy">
insert into wgd_fyfy
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="type != null and type != ''">
type,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="translation != null and translation != ''">
translation,
</if>
<if test="pages != null and pages != ''">
pages,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
<if test="time != null and time != ''">
time,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="type != null and type != ''">
#{type},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="translation != null and translation != ''">
#{translation},
</if>
<if test="pages != null and pages != ''">
#{pages},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
<if test="time != null and time != ''">
#{time},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_fyfy where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_fyfy where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,134 @@
<?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.wgdCensusLeo.dao.WgdSrbDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,name,number,source,cost,time
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="source != null and source != ''">
and source = #{source}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
<if test="time != null and time != ''">
and time = #{time}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_srb
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb" resultType="java.lang.Integer">
select count(*) from wgd_srb
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
select <include refid="BaseInfo"></include> from wgd_srb
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
select <include refid="BaseInfo"></include> from wgd_srb
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
select <include refid="BaseInfo"></include> from wgd_srb
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
update wgd_srb
<set>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="source != null and source != ''">
source = #{source},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
<if test="time != null and time != ''">
time = #{time},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdSrb">
insert into wgd_srb
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="source != null and source != ''">
source,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
<if test="time != null and time != ''">
time,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="source != null and source != ''">
#{source},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
<if test="time != null and time != ''">
#{time},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_srb where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_srb where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,226 @@
<?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.wgdCensusLeo.dao.WgdWbtjDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,host,meeting,time,place,contributions,occurs,expenses,user,leadership,participants,information,recording,Issues
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="host != null and host != ''">
and host like concat('%',#{host},'%')
</if>
<if test="meeting != null and meeting != ''">
and meeting like concat('%',#{meeting},'%')
</if>
<if test="time != null and time != ''">
and time like concat('%',#{time},'%')
</if>
<if test="place != null and place != ''">
and place = #{place}
</if>
<if test="contributions != null and contributions != ''">
and contributions = #{contributions}
</if>
<if test="occurs != null and occurs != ''">
and occurs = #{occurs}
</if>
<if test="expenses != null and expenses != ''">
and expenses = #{expenses}
</if>
<if test="user != null and user != ''">
and user = #{user}
</if>
<if test="leadership != null and leadership != ''">
and leadership = #{leadership}
</if>
<if test="participants != null and participants != ''">
and participants = #{participants}
</if>
<if test="information != null and information != ''">
and information = #{information}
</if>
<if test="recording != null and recording != ''">
and recording = #{recording}
</if>
<if test="Issues != null and Issues != ''">
and Issues = #{Issues}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_wbtj
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj" resultType="java.lang.Integer">
select count(*) from wgd_wbtj
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
select <include refid="BaseInfo"></include> from wgd_wbtj
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
select <include refid="BaseInfo"></include> from wgd_wbtj
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
select <include refid="BaseInfo"></include> from wgd_wbtj
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
update wgd_wbtj
<set>
<if test="host != null and host != ''">
host = #{host},
</if>
<if test="meeting != null and meeting != ''">
meeting = #{meeting},
</if>
<if test="time != null and time != ''">
time = #{time},
</if>
<if test="place != null and place != ''">
place = #{place},
</if>
<if test="contributions != null and contributions != ''">
contributions = #{contributions},
</if>
<if test="occurs != null and occurs != ''">
occurs = #{occurs},
</if>
<if test="expenses != null and expenses != ''">
expenses = #{expenses},
</if>
<if test="user != null and user != ''">
user = #{user},
</if>
<if test="leadership != null and leadership != ''">
leadership = #{leadership},
</if>
<if test="participants != null and participants != ''">
participants = #{participants},
</if>
<if test="information != null and information != ''">
information = #{information},
</if>
<if test="recording != null and recording != ''">
recording = #{recording},
</if>
<if test="Issues != null and Issues != ''">
Issues = #{Issues},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbtj">
insert into wgd_wbtj
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="host != null and host != ''">
host,
</if>
<if test="meeting != null and meeting != ''">
meeting,
</if>
<if test="time != null and time != ''">
time,
</if>
<if test="place != null and place != ''">
place,
</if>
<if test="contributions != null and contributions != ''">
contributions,
</if>
<if test="occurs != null and occurs != ''">
occurs,
</if>
<if test="expenses != null and expenses != ''">
expenses,
</if>
<if test="user != null and user != ''">
user,
</if>
<if test="leadership != null and leadership != ''">
leadership,
</if>
<if test="participants != null and participants != ''">
participants,
</if>
<if test="information != null and information != ''">
information,
</if>
<if test="recording != null and recording != ''">
recording,
</if>
<if test="Issues != null and Issues != ''">
Issues,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="host != null and host != ''">
#{host},
</if>
<if test="meeting != null and meeting != ''">
#{meeting},
</if>
<if test="time != null and time != ''">
#{time},
</if>
<if test="place != null and place != ''">
#{place},
</if>
<if test="contributions != null and contributions != ''">
#{contributions},
</if>
<if test="occurs != null and occurs != ''">
#{occurs},
</if>
<if test="expenses != null and expenses != ''">
#{expenses},
</if>
<if test="user != null and user != ''">
#{user},
</if>
<if test="leadership != null and leadership != ''">
#{leadership},
</if>
<if test="participants != null and participants != ''">
#{participants},
</if>
<if test="information != null and information != ''">
#{information},
</if>
<if test="recording != null and recording != ''">
#{recording},
</if>
<if test="Issues != null and Issues != ''">
#{Issues},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_wbtj where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_wbtj where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,323 @@
<?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.wgdCensusLeo.dao.WgdWbxdDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,stage,number,name,project_id,project_name,type,preside,data_start,data_implement,body,drafting,data_record,report,participants,celebrity,cost_marking,cost_other,revised,status,signature,remark
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="stage != null and stage != ''">
and stage like concat('%',#{stage},'%')
</if>
<if test="number != null and number != ''">
and number like concat('%',#{number},'%')
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="project_id != null and project_id != ''">
and project_id = #{project_id}
</if>
<if test="project_name != null and project_name != ''">
and project_name = #{project_name}
</if>
<if test="type != null and type != ''">
and type = #{type}
</if>
<if test="preside != null and preside != ''">
and preside = #{preside}
</if>
<if test="data_start != null and data_start != ''">
and data_start = #{data_start}
</if>
<if test="data_implement != null and data_implement != ''">
and data_implement = #{data_implement}
</if>
<if test="body != null and body != ''">
and body = #{body}
</if>
<if test="drafting != null and drafting != ''">
and drafting = #{drafting}
</if>
<if test="data_record != null and data_record != ''">
and data_record = #{data_record}
</if>
<if test="report != null and report != ''">
and report = #{report}
</if>
<if test="participants != null and participants != ''">
and participants = #{participants}
</if>
<if test="celebrity != null and celebrity != ''">
and celebrity = #{celebrity}
</if>
<if test="cost_marking != null and cost_marking != ''">
and cost_marking = #{cost_marking}
</if>
<if test="cost_other != null and cost_other != ''">
and cost_other = #{cost_other}
</if>
<if test="revised != null and revised != ''">
and revised = #{revised}
</if>
<if test="status != null and status != ''">
and status = #{status}
</if>
<if test="signature != null and signature != ''">
and signature = #{signature}
</if>
<if test="remark != null and remark != ''">
and remark = #{remark}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_wbxd
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd" resultType="java.lang.Integer">
select count(*) from wgd_wbxd
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
select <include refid="BaseInfo"></include> from wgd_wbxd
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
select <include refid="BaseInfo"></include> from wgd_wbxd
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
select <include refid="BaseInfo"></include> from wgd_wbxd
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
update wgd_wbxd
<set>
<if test="stage != null and stage != ''">
stage = #{stage},
</if>
<if test="number != null and number != ''">
number = #{number},
</if>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="project_id != null and project_id != ''">
project_id = #{project_id},
</if>
<if test="project_name != null and project_name != ''">
project_name = #{project_name},
</if>
<if test="type != null and type != ''">
type = #{type},
</if>
<if test="preside != null and preside != ''">
preside = #{preside},
</if>
<if test="data_start != null and data_start != ''">
data_start = #{data_start},
</if>
<if test="data_implement != null and data_implement != ''">
data_implement = #{data_implement},
</if>
<if test="body != null and body != ''">
body = #{body},
</if>
<if test="drafting != null and drafting != ''">
drafting = #{drafting},
</if>
<if test="data_record != null and data_record != ''">
data_record = #{data_record},
</if>
<if test="report != null and report != ''">
report = #{report},
</if>
<if test="participants != null and participants != ''">
participants = #{participants},
</if>
<if test="celebrity != null and celebrity != ''">
celebrity = #{celebrity},
</if>
<if test="cost_marking != null and cost_marking != ''">
cost_marking = #{cost_marking},
</if>
<if test="cost_other != null and cost_other != ''">
cost_other = #{cost_other},
</if>
<if test="revised != null and revised != ''">
revised = #{revised},
</if>
<if test="status != null and status != ''">
status = #{status},
</if>
<if test="signature != null and signature != ''">
signature = #{signature},
</if>
<if test="remark != null and remark != ''">
remark = #{remark},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdWbxd">
insert into wgd_wbxd
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="stage != null and stage != ''">
stage,
</if>
<if test="number != null and number != ''">
number,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="project_id != null and project_id != ''">
project_id,
</if>
<if test="project_name != null and project_name != ''">
project_name,
</if>
<if test="type != null and type != ''">
type,
</if>
<if test="preside != null and preside != ''">
preside,
</if>
<if test="data_start != null and data_start != ''">
data_start,
</if>
<if test="data_implement != null and data_implement != ''">
data_implement,
</if>
<if test="body != null and body != ''">
body,
</if>
<if test="drafting != null and drafting != ''">
drafting,
</if>
<if test="data_record != null and data_record != ''">
data_record,
</if>
<if test="report != null and report != ''">
report,
</if>
<if test="participants != null and participants != ''">
participants,
</if>
<if test="celebrity != null and celebrity != ''">
celebrity,
</if>
<if test="cost_marking != null and cost_marking != ''">
cost_marking,
</if>
<if test="cost_other != null and cost_other != ''">
cost_other,
</if>
<if test="revised != null and revised != ''">
revised,
</if>
<if test="status != null and status != ''">
status,
</if>
<if test="signature != null and signature != ''">
signature,
</if>
<if test="remark != null and remark != ''">
remark,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="stage != null and stage != ''">
#{stage},
</if>
<if test="number != null and number != ''">
#{number},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="project_id != null and project_id != ''">
#{project_id},
</if>
<if test="project_name != null and project_name != ''">
#{project_name},
</if>
<if test="type != null and type != ''">
#{type},
</if>
<if test="preside != null and preside != ''">
#{preside},
</if>
<if test="data_start != null and data_start != ''">
#{data_start},
</if>
<if test="data_implement != null and data_implement != ''">
#{data_implement},
</if>
<if test="body != null and body != ''">
#{body},
</if>
<if test="drafting != null and drafting != ''">
#{drafting},
</if>
<if test="data_record != null and data_record != ''">
#{data_record},
</if>
<if test="report != null and report != ''">
#{report},
</if>
<if test="participants != null and participants != ''">
#{participants},
</if>
<if test="celebrity != null and celebrity != ''">
#{celebrity},
</if>
<if test="cost_marking != null and cost_marking != ''">
#{cost_marking},
</if>
<if test="cost_other != null and cost_other != ''">
#{cost_other},
</if>
<if test="revised != null and revised != ''">
#{revised},
</if>
<if test="status != null and status != ''">
#{status},
</if>
<if test="signature != null and signature != ''">
#{signature},
</if>
<if test="remark != null and remark != ''">
#{remark},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_wbxd where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_wbxd where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,122 @@
<?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.wgdCensusLeo.dao.WgdZcbDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,name,cost,use,annex
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="name != null and name != ''">
and name like concat('%',#{name},'%')
</if>
<if test="cost != null and cost != ''">
and cost like concat('%',#{cost},'%')
</if>
<if test="use != null and use != ''">
and use like concat('%',#{use},'%')
</if>
<if test="annex != null and annex != ''">
and annex = #{annex}
</if>
</where>
</sql>
<select id="getTotal" resultType="java.lang.Integer">
select count(*) from wgd_zcb
</select>
<select id="getQueryTotal" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb" resultType="java.lang.Integer">
select count(*) from wgd_zcb
<include refid="Conditions"></include>
</select>
<!-- 查询所有-->
<select id="selectAll" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
select <include refid="BaseInfo"></include> from wgd_zcb
</select>
<!-- 多条件查询-->
<select id="queryAll" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
select <include refid="BaseInfo"></include> from wgd_zcb
<include refid="Conditions"></include>
</select>
<!-- 查询详情-->
<select id="selectOne" parameterType="java.lang.String" resultType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
select <include refid="BaseInfo"></include> from wgd_zcb
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
update wgd_zcb
<set>
<if test="name != null and name != ''">
name = #{name},
</if>
<if test="cost != null and cost != ''">
cost = #{cost},
</if>
<if test="use != null and use != ''">
use = #{use},
</if>
<if test="annex != null and annex != ''">
annex = #{annex},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusLeo.entity.WgdZcb">
insert into wgd_zcb
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</if>
<if test="name != null and name != ''">
name,
</if>
<if test="cost != null and cost != ''">
cost,
</if>
<if test="use != null and use != ''">
use,
</if>
<if test="annex != null and annex != ''">
annex,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</if>
<if test="name != null and name != ''">
#{name},
</if>
<if test="cost != null and cost != ''">
#{cost},
</if>
<if test="use != null and use != ''">
#{use},
</if>
<if test="annex != null and annex != ''">
#{annex},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_zcb where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_zcb where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,161 @@
<?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.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
</sql>
<!-- 查询条件-->
<sql id="Conditions">
<where>
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="scName != null and scName != ''">
and (
sc_name like concat('%',#{scName} ,'%')
ssc_name like concat('%',#{scName} ,'%')
wg_name like concat('%',#{scName} ,'%')
)
</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>
<if test="annualPayment != null and annualPayment != ''">
and annual_payment = #{annualPayment}
</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">
select <include refid="BaseInfo"></include> from wgd_assoc_cost
where id = #{id}
</select>
<!-- 修改-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
update wgd_assoc_cost
<set>
<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="payStandard != null">
pay_standard = #{payStandard},
</if>
<if test="payReality != null">
pay_reality = #{payReality},
</if>
<if test="costOutlay != null">
cost_outlay = #{costOutlay},
</if>
<if test="annualPayment != null">
annual_payment = #{annualPayment},
</if>
</set>
where id = #{id}
</update>
<!-- 插入一条数据-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocCost">
insert into wgd_assoc_cost
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</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="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>
<if test="annualPayment != null and annualPayment != ''">
annual_payment,
</if>
</trim>
values
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
#{id},
</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="payStandard != null and payStandard != ''">
#{payStandard},
</if>
<if test="payReality != null and payReality != ''">
#{payReality},
</if>
<if test="costOutlay != null and costOutlay != ''">
#{costOutlay},
</if>
<if test="annualPayment != null and annualPayment != ''">
#{annualPayment},
</if>
</trim>
</insert>
<!-- 删除-->
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_assoc_cost where id = #{id}
</delete>
<!-- 批量删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_assoc_cost where id in
<foreach collection="array" item="id" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,467 @@
<?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.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,
department,as_proper,as_status,as_contact,tel,mail,
p17,p18,p19,p20,p21,p22,p23,p24,p25,p26,p27,p28,p29,p30,p31,p32
</sql>
<sql id="Conditions">
WHERE 1=1
<if test="id != null and id != ''">
and id = #{id}
</if>
<if test="scName != null and scName != ''">
and (
sc_name like concat('%',#{scName} ,'%')
ssc_name like concat('%',#{scName} ,'%')
wg_name like concat('%',#{scName} ,'%')
)
</if>
<if test="role != null and role != ''">
and role = #{role}
</if>
<if test="attend != null and attend != ''">
and attend = #{attend}
</if>
<if test="standard != null and standard != ''">
and standard = #{standard}
</if>
<if test="charge != null and charge != ''">
and charge = #{charge}
</if>
<if test="leader != null and leader != ''">
and leader = #{leader}
</if>
<if test="iniTime != null">
and DATE_FORMAT(ini_time,'%Y%m%d') = DATE_FORMAT(iniTime,'%Y%m%d')
</if>
<if test="curTime != null">
and DATE_FORMAT(cur_time,'%Y%m%d') = DATE_FORMAT(curTime,'%Y%m%d')
</if>
<if test="costStandard != null and costStandard != ''">
and cost_standard = #{costStandard}
</if>
<if test="costOutlay != null and costOutlay != ''">
and cost_outlay = #{costOutlay}
</if>
<if test="lastPayTime != null">
and DATE_FORMAT(last_pay_time,'%Y%m%d') = DATE_FORMAT(lastPayTime,'%Y%m%d')
</if>
<if test="payPeriod != null and payPeriod != ''">
and pay_period = #{payPeriod}
</if>
<if test="handler != null and handler != ''">
and handler = #{handler}
</if>
<if test="department != null and department != ''">
and department = #{department}
</if>
<if test="asProper != null and asProper != ''">
and as_proper = #{asProper}
</if>
<if test="asStatus != null and asStatus != ''">
and as_status = #{asStatus}
</if>
<if test="asContact != null and asContact != ''">
and as_contact = #{asContact}
</if>
<if test="tel != null and tel != ''">
and tel = #{tel}
</if>
<if test="mail != null and mail != ''">
and mail = #{mail}
</if>
</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
where id = #{id}
</select>
<!-- 更新-->
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
update wgd_assoc_info
<set>
<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="standard != null and standard != ''">
standard = #{standard},
</if>
<if test="charge != null and charge != ''">
charge = #{charge},
</if>
<if test="leader != null and leader != ''">
leader = #{leader},
</if>
<if test="iniTime != null">
ini_time = #{iniTime},
</if>
<if test="curTime != null">
cur_time = #{curTime},
</if>
<if test="costStandard != null and costStandard != ''">
cost_standard = #{costStandard},
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay = #{costOutlay},
</if>
<if test="lastPayTime != null">
last_pay_time = #{lastPayTime},
</if>
<if test="payPeriod != null and payPeriod != ''">
pay_period = #{payPeriod},
</if>
<if test="handler != null and handler != ''">
handler = #{handler},
</if>
<if test="department != null and department != ''">
department = #{department},
</if>
<if test="asProper != null and asProper != ''">
as_proper = #{asProper},
</if>
<if test="asStatus != null and asStatus != ''">
as_status = #{asStatus},
</if>
<if test="asContact != null and asContact != ''">
as_contact = #{asContact},
</if>
<if test="tel != null and tel != ''">
tel = #{tel},
</if>
<if test="mail != null and mail != ''">
mail = #{mail},
</if>
<if test="p17 != null and p17 != ''">
p17 = #{p17},
</if>
<if test="p18 != null and p18 != ''">
p18 = #{p18},
</if>
<if test="p19 != null and p19 != ''">
p19 = #{p19},
</if>
<if test="p20 != null and p20 != ''">
p20 = #{p20},
</if>
<if test="p21 != null and p21 != ''">
p21 = #{p21},
</if>
<if test="p22 != null and p22 != ''">
p22 = #{p22},
</if>
<if test="p23 != null and p23 != ''">
p23 = #{p23},
</if>
<if test="p24 != null and p24 != ''">
p24 = #{p24},
</if>
<if test="p25 != null and p25 != ''">
p25 = #{p25},
</if>
<if test="p26 != null and p26 != ''">
p26 = #{p26},
</if>
<if test="p27 != null and p27 != ''">
p27 = #{p27},
</if>
<if test="p28 != null and p28 != ''">
p28 = #{p28},
</if>
<if test="p29 != null and p29 != ''">
p29 = #{p29},
</if>
<if test="p30 != null and p30 != ''">
p30 = #{p30},
</if>
<if test="p31 != null and p31 != ''">
p31 = #{p31},
</if>
<if test="p32 != null and p32 != ''">
p32 = #{p32},
</if>
</set>
where id = #{id}
</update>
<!-- 新增-->
<insert id="insertOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdAssocInfo">
insert into wgd_assoc_info
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">
id,
</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="standard != null and standard != ''">
standard,
</if>
<if test="charge != null and charge != ''">
charge,
</if>
<if test="leader != null and leader != ''">
leader,
</if>
<if test="iniTime != null">
ini_time,
</if>
<if test="curTime != null">
cur_time,
</if>
<if test="costStandard != null and costStandard != ''">
cost_standard,
</if>
<if test="costOutlay != null and costOutlay != ''">
cost_outlay,
</if>
<if test="lastPayTime != null">
last_pay_time,
</if>
<if test="payPeriod != null and payPeriod != ''">
pay_period,
</if>
<if test="handler != null and handler != ''">
handler,
</if>
<if test="department != null and department != ''">
department,
</if>
<if test="asProper != null and asProper != ''">
as_proper,
</if>
<if test="asStatus != null and asStatus != ''">
as_status,
</if>
<if test="asContact != null and asContact != ''">
as_contact,
</if>
<if test="tel != null and tel != ''">
tel,
</if>
<if test="mail != null and mail != ''">
mail,
</if>
<if test="p17 != null and p17 != ''">
p17,
</if>
<if test="p18 != null and p18 != ''">
p18,
</if>
<if test="p19 != null and p19 != ''">
p19,
</if>
<if test="p20 != null and p20 != ''">
p20,
</if>
<if test="p21 != null and p21 != ''">
p21,
</if>
<if test="p22 != null and p22 != ''">
p22,
</if>
<if test="p23 != null and p23 != ''">
p23,
</if>
<if test="p24 != null and p24 != ''">
p24,
</if>
<if test="p25 != null and p25 != ''">
p25,
</if>
<if test="p26 != null and p26 != ''">
p26,
</if>
<if test="p27 != null and p27 != ''">
p27,
</if>
<if test="p28 != null and p28 != ''">
p28,
</if>
<if test="p29 != null and p29 != ''">
p29,
</if>
<if test="p30 != null and p30 != ''">
p30,
</if>
<if test="p31 != null and p31 != ''">
p31,
</if>
<if test="p32 != null and p32 != ''">
p32,
</if>
</trim>
values
<trim suffixOverrides="," suffix=")" prefix="(">
<if test="id != null and id != ''">
#{id},
</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="standard != null and standard != ''">
#{standard},
</if>
<if test="charge != null and charge != ''">
#{charge},
</if>
<if test="leader != null and leader != ''">
#{leader},
</if>
<if test="iniTime != null">
#{iniTime},
</if>
<if test="curTime != null">
#{curTime},
</if>
<if test="costStandard != null and costStandard != ''">
#{costStandard},
</if>
<if test="costOutlay != null and costOutlay != ''">
#{costOutlay},
</if>
<if test="lastPayTime != null">
#{lastPayTime},
</if>
<if test="payPeriod != null and payPeriod != ''">
#{payPeriod},
</if>
<if test="handler != null and handler != ''">
#{handler},
</if>
<if test="department != null and department != ''">
#{department},
</if>
<if test="asProper != null and asProper != ''">
#{asProper},
</if>
<if test="asStatus != null and asStatus != ''">
#{asStatus},
</if>
<if test="asContact != null and asContact != ''">
#{asContact},
</if>
<if test="tel != null and tel != ''">
#{tel},
</if>
<if test="mail != null and mail != ''">
#{mail},
</if>
<if test="p17 != null and p17 != ''">
#{p17},
</if>
<if test="p18 != null and p18 != ''">
#{p18},
</if>
<if test="p19 != null and p19 != ''">
#{p19},
</if>
<if test="p20 != null and p20 != ''">
#{p20},
</if>
<if test="p21 != null and p21 != ''">
#{p21},
</if>
<if test="p22 != null and p22 != ''">
#{p22},
</if>
<if test="p23 != null and p23 != ''">
#{p23},
</if>
<if test="p24 != null and p24 != ''">
#{p24},
</if>
<if test="p25 != null and p25 != ''">
#{p25},
</if>
<if test="p26 != null and p26 != ''">
#{p26},
</if>
<if test="p27 != null and p27 != ''">
#{p27},
</if>
<if test="p28 != null and p28 != ''">
#{p28},
</if>
<if test="p29 != null and p29 != ''">
#{p29},
</if>
<if test="p30 != null and p30 != ''">
#{p30},
</if>
<if test="p31 != null and p31 != ''">
#{p31},
</if>
<if test="p32 != null and p32 != ''">
#{p32},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_assoc_info where id = #{id}
</delete>
<!-- 删除-->
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_assoc_info where id in
<foreach item="id" collection="array" open="(" close=")" separator=",">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,241 @@
<?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 like concat('%',#{scName} ,'%')
ssc_name like concat('%',#{scName} ,'%')
wg_name like concat('%',#{scName} ,'%')
)
</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 DATE_FORMAT(cur_time,'%Y%m%d') = DATE_FORMAT(curTime,'%Y%m%d')
</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
where id = #{id}
</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" parameterType="java.lang.String">
delete from wgd_commi_info where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,124 @@
<?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
where id = #{id}
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdExReviseCost">
update wgd_ex_revise_cost
<set>
<if test="type != null">
type = #{type},
</if>
<if test="proId != null">
pro_id = #{proId},
</if>
<if test="proName != null">
pro_name = #{proName},
</if>
<if test="cost != null">
cost = #{cost},
</if>
<if test="costOutlay != null">
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">
id,
</if>
<if test="type != null">
type,
</if>
<if test="proId != null">
pro_id,
</if>
<if test="proName != null">
pro_name,
</if>
<if test="cost != null">
cost,
</if>
<if test="costOutlay != null">
cost_outlay,
</if>
</trim>
values
<trim prefix="(" suffixOverrides="," suffix=")">
<if test="id != null">
#{id},
</if>
<if test="type != null">
#{type},
</if>
<if test="proId != null">
#{proId},
</if>
<if test="proName != null">
#{proName},
</if>
<if test="cost != null">
#{cost},
</if>
<if test="costOutlay != null">
#{costOutlay},
</if>
</trim>
</insert>
<delete id="deleteOne" parameterType="java.lang.String">
delete from wgd_ex_revise_cost where id = #{id}
</delete>
<delete id="deleteBatch" parameterType="java.lang.String">
delete from wgd_ex_revise_cost where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>
@@ -0,0 +1,137 @@
<?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 DATE_FORMAT(meet_time,'%Y%m%d') = DATE_FORMAT(#{meetTime},'%Y%m%d')
</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
where id = #{id}
</select>
<update id="updateOne" parameterType="com.adc.da.slrs.wgdCensusZ.entity.WgdMeetCost">
update wgd_meet_cost
<set>
<if test="unit != null">
unit = #{unit},
</if>
<if test="meetName != null">
meet_name = #{meetName},
</if>
<if test="meetTime">
meet_time = #{meetTime},
</if>
<if test="payStandard != null">
pay_standard = #{payStandard},
</if>
<if test="payReality != null">
pay_reality = #{payReality},
</if>
<if test="costOutlay != null">
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" parameterType="java.lang.String">
delete from wgd_meet_cost where id in
<foreach collection="array" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>