zcr:数据信息统计表
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user