This commit is contained in:
liao
2021-11-15 14:35:40 +08:00
parent a15f3f4934
commit 303640aa27
6 changed files with 1010 additions and 4 deletions
@@ -1,5 +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.wgdCensusLeo.dao.WgdCgfyDao">
<!-- 基础信息-->
<sql id="BaseInfo">
id,type,number,name,pages,cost
</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="pages != null and pages != ''">
and pages = #{pages}
</if>
<if test="cost != null and cost != ''">
and cost = #{cost}
</if>
</where>
</sql>
<!-- 查询所有-->
<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>
</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>
@@ -1,5 +1,135 @@
<?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,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="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="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="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="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="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>
@@ -1,5 +1,127 @@
<?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="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>
@@ -1,5 +1,219 @@
<?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="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>
@@ -1,5 +1,316 @@
<?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="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>
@@ -1,5 +1,115 @@
<?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="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>