1、巡检记录
2、水电双计灌溉记录和刷卡记录 3、水电双计充值记录和卡信息
This commit is contained in:
@ -0,0 +1,89 @@
|
||||
<?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.fastbee.waterele.mapper.MaCardinfoMapper">
|
||||
|
||||
<resultMap type="MaCardinfo" id="MaCardinfoResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="cardNum" column="card_num" />
|
||||
<result property="areaCode" column="area_code" />
|
||||
<result property="cardId" column="card_id" />
|
||||
<result property="addressInfo" column="address_info" />
|
||||
<result property="cardtype" column="cardType" />
|
||||
<result property="mcusn" column="mcuSn" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMaCardinfoVo">
|
||||
select id, card_num, area_code, card_id, address_info, cardType, mcuSn, create_time, update_time from ma_cardinfo
|
||||
</sql>
|
||||
|
||||
<select id="selectMaCardinfoList" parameterType="MaCardinfo" resultMap="MaCardinfoResult">
|
||||
<include refid="selectMaCardinfoVo"/>
|
||||
<where>
|
||||
<if test="cardNum != null and cardNum != ''"> and card_num = #{cardNum}</if>
|
||||
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
|
||||
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if>
|
||||
<if test="addressInfo != null and addressInfo != ''"> and address_info = #{addressInfo}</if>
|
||||
<if test="cardtype != null "> and cardType = #{cardtype}</if>
|
||||
<if test="mcusn != null and mcusn != ''"> and mcuSn = #{mcusn}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMaCardinfoById" parameterType="Long" resultMap="MaCardinfoResult">
|
||||
<include refid="selectMaCardinfoVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMaCardinfo" parameterType="MaCardinfo" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into ma_cardinfo
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="cardNum != null">card_num,</if>
|
||||
<if test="areaCode != null">area_code,</if>
|
||||
<if test="cardId != null">card_id,</if>
|
||||
<if test="addressInfo != null">address_info,</if>
|
||||
<if test="cardtype != null">cardType,</if>
|
||||
<if test="mcusn != null">mcuSn,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="cardNum != null">#{cardNum},</if>
|
||||
<if test="areaCode != null">#{areaCode},</if>
|
||||
<if test="cardId != null">#{cardId},</if>
|
||||
<if test="addressInfo != null">#{addressInfo},</if>
|
||||
<if test="cardtype != null">#{cardtype},</if>
|
||||
<if test="mcusn != null">#{mcusn},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMaCardinfo" parameterType="MaCardinfo">
|
||||
update ma_cardinfo
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="cardNum != null">card_num = #{cardNum},</if>
|
||||
<if test="areaCode != null">area_code = #{areaCode},</if>
|
||||
<if test="cardId != null">card_id = #{cardId},</if>
|
||||
<if test="addressInfo != null">address_info = #{addressInfo},</if>
|
||||
<if test="cardtype != null">cardType = #{cardtype},</if>
|
||||
<if test="mcusn != null">mcuSn = #{mcusn},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMaCardinfoById" parameterType="Long">
|
||||
delete from ma_cardinfo where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMaCardinfoByIds" parameterType="String">
|
||||
delete from ma_cardinfo where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,110 @@
|
||||
<?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.fastbee.waterele.mapper.MaGuangaiRecordMapper">
|
||||
|
||||
<resultMap type="com.fastbee.waterele.domain.MaGuangaiRecord" id="MaGuangaiRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="devSn" column="dev_sn" />
|
||||
<result property="startTime" column="start_time" />
|
||||
<result property="endTime" column="end_time" />
|
||||
<result property="lastTime" column="last_time" />
|
||||
<result property="cardId" column="card_id" />
|
||||
<result property="areaCode" column="area_code" />
|
||||
<result property="userBalance" column="user_balance" />
|
||||
<result property="curFlow" column="cur_flow" />
|
||||
<result property="curEle" column="cur_ele" />
|
||||
<result property="status" column="status" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMaGuangaiRecordVo">
|
||||
select id, dev_sn, start_time, end_time, last_time, card_id, area_code, user_balance, cur_flow, cur_ele, status, create_time, update_time from ma_guangai_record
|
||||
</sql>
|
||||
|
||||
<select id="selectMaGuangaiRecordList" parameterType="MaGuangaiRecord" resultMap="MaGuangaiRecordResult">
|
||||
<include refid="selectMaGuangaiRecordVo"/>
|
||||
<where>
|
||||
<if test="devSn != null and devSn != ''"> and dev_sn = #{devSn}</if>
|
||||
<if test="startTime != null "> and start_time = #{startTime}</if>
|
||||
<if test="endTime != null "> and end_time = #{endTime}</if>
|
||||
<if test="lastTime != null "> and last_time = #{lastTime}</if>
|
||||
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if>
|
||||
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
|
||||
<if test="userBalance != null and userBalance != ''"> and user_balance = #{userBalance}</if>
|
||||
<if test="curFlow != null and curFlow != ''"> and cur_flow = #{curFlow}</if>
|
||||
<if test="curEle != null and curEle != ''"> and cur_ele = #{curEle}</if>
|
||||
<if test="status != null "> and status = #{status}</if>
|
||||
<if test="params.beginCreateTime != null and params.beginCreateTime != '' and params.endCreateTime != null and params.endCreateTime != ''"> and create_time between #{params.beginCreateTime} and #{params.endCreateTime}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMaGuangaiRecordById" parameterType="Long" resultMap="MaGuangaiRecordResult">
|
||||
<include refid="selectMaGuangaiRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMaGuangaiRecord" parameterType="MaGuangaiRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into ma_guangai_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="devSn != null">dev_sn,</if>
|
||||
<if test="startTime != null">start_time,</if>
|
||||
<if test="endTime != null">end_time,</if>
|
||||
<if test="lastTime != null">last_time,</if>
|
||||
<if test="cardId != null">card_id,</if>
|
||||
<if test="areaCode != null">area_code,</if>
|
||||
<if test="userBalance != null">user_balance,</if>
|
||||
<if test="curFlow != null">cur_flow,</if>
|
||||
<if test="curEle != null">cur_ele,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="devSn != null">#{devSn},</if>
|
||||
<if test="startTime != null">#{startTime},</if>
|
||||
<if test="endTime != null">#{endTime},</if>
|
||||
<if test="lastTime != null">#{lastTime},</if>
|
||||
<if test="cardId != null">#{cardId},</if>
|
||||
<if test="areaCode != null">#{areaCode},</if>
|
||||
<if test="userBalance != null">#{userBalance},</if>
|
||||
<if test="curFlow != null">#{curFlow},</if>
|
||||
<if test="curEle != null">#{curEle},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMaGuangaiRecord" parameterType="MaGuangaiRecord">
|
||||
update ma_guangai_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="devSn != null">dev_sn = #{devSn},</if>
|
||||
<if test="startTime != null">start_time = #{startTime},</if>
|
||||
<if test="endTime != null">end_time = #{endTime},</if>
|
||||
<if test="lastTime != null">last_time = #{lastTime},</if>
|
||||
<if test="cardId != null">card_id = #{cardId},</if>
|
||||
<if test="areaCode != null">area_code = #{areaCode},</if>
|
||||
<if test="userBalance != null">user_balance = #{userBalance},</if>
|
||||
<if test="curFlow != null">cur_flow = #{curFlow},</if>
|
||||
<if test="curEle != null">cur_ele = #{curEle},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMaGuangaiRecordById" parameterType="Long">
|
||||
delete from ma_guangai_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMaGuangaiRecordByIds" parameterType="String">
|
||||
delete from ma_guangai_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,89 @@
|
||||
<?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.fastbee.waterele.mapper.MaRechargerecordMapper">
|
||||
|
||||
<resultMap type="MaRechargerecord" id="MaRechargerecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="balance" column="balance" />
|
||||
<result property="investval" column="investVal" />
|
||||
<result property="cardNum" column="card_num" />
|
||||
<result property="areaCode" column="area_code" />
|
||||
<result property="cardId" column="card_id" />
|
||||
<result property="mcusn" column="mcuSn" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMaRechargerecordVo">
|
||||
select id, balance, investVal, card_num, area_code, card_id, mcuSn, create_time, update_time from ma_rechargerecord
|
||||
</sql>
|
||||
|
||||
<select id="selectMaRechargerecordList" parameterType="MaRechargerecord" resultMap="MaRechargerecordResult">
|
||||
<include refid="selectMaRechargerecordVo"/>
|
||||
<where>
|
||||
<if test="balance != null and balance != ''"> and balance = #{balance}</if>
|
||||
<if test="investval != null and investval != ''"> and investVal = #{investval}</if>
|
||||
<if test="cardNum != null and cardNum != ''"> and card_num = #{cardNum}</if>
|
||||
<if test="areaCode != null and areaCode != ''"> and area_code = #{areaCode}</if>
|
||||
<if test="cardId != null and cardId != ''"> and card_id = #{cardId}</if>
|
||||
<if test="mcusn != null and mcusn != ''"> and mcuSn = #{mcusn}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMaRechargerecordById" parameterType="Long" resultMap="MaRechargerecordResult">
|
||||
<include refid="selectMaRechargerecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMaRechargerecord" parameterType="MaRechargerecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into ma_rechargerecord
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="balance != null">balance,</if>
|
||||
<if test="investval != null">investVal,</if>
|
||||
<if test="cardNum != null">card_num,</if>
|
||||
<if test="areaCode != null">area_code,</if>
|
||||
<if test="cardId != null">card_id,</if>
|
||||
<if test="mcusn != null">mcuSn,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="balance != null">#{balance},</if>
|
||||
<if test="investval != null">#{investval},</if>
|
||||
<if test="cardNum != null">#{cardNum},</if>
|
||||
<if test="areaCode != null">#{areaCode},</if>
|
||||
<if test="cardId != null">#{cardId},</if>
|
||||
<if test="mcusn != null">#{mcusn},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMaRechargerecord" parameterType="MaRechargerecord">
|
||||
update ma_rechargerecord
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="balance != null">balance = #{balance},</if>
|
||||
<if test="investval != null">investVal = #{investval},</if>
|
||||
<if test="cardNum != null">card_num = #{cardNum},</if>
|
||||
<if test="areaCode != null">area_code = #{areaCode},</if>
|
||||
<if test="cardId != null">card_id = #{cardId},</if>
|
||||
<if test="mcusn != null">mcuSn = #{mcusn},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMaRechargerecordById" parameterType="Long">
|
||||
delete from ma_rechargerecord where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMaRechargerecordByIds" parameterType="String">
|
||||
delete from ma_rechargerecord where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -0,0 +1,144 @@
|
||||
<?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.fastbee.waterele.mapper.MaWatereleRecordMapper">
|
||||
|
||||
<resultMap type="com.fastbee.waterele.domain.MaWatereleRecord" id="MaWatereleRecordResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="devSn" column="dev_sn" />
|
||||
<result property="workstate" column="workState" />
|
||||
<result property="usersumflow" column="userSumFlow" />
|
||||
<result property="usersumele" column="userSumEle" />
|
||||
<result property="userbalance" column="userBalance" />
|
||||
<result property="sumflow" column="sumFlow" />
|
||||
<result property="sumele" column="sumEle" />
|
||||
<result property="mcusn" column="mcuSn" />
|
||||
<result property="inspower" column="insPower" />
|
||||
<result property="insflow" column="insFlow" />
|
||||
<result property="curflow" column="curFlow" />
|
||||
<result property="curele" column="curEle" />
|
||||
<result property="metersum" column="meterSum" />
|
||||
<result property="meterins" column="meterIns" />
|
||||
<result property="cardid" column="cardId" />
|
||||
<result property="areacode" column="areaCode" />
|
||||
<result property="action" column="action" />
|
||||
<result property="createTime" column="create_time" />
|
||||
<result property="updateTime" column="update_time" />
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectMaWatereleRecordVo">
|
||||
select id, dev_sn, workState, userSumFlow, userSumEle, userBalance, sumFlow, sumEle, mcuSn, insPower, insFlow, curFlow, curEle, meterSum, meterIns, cardId, areaCode, action, create_time, update_time from ma_waterele_record
|
||||
</sql>
|
||||
|
||||
<select id="selectMaWatereleRecordList" parameterType="MaWatereleRecord" resultMap="MaWatereleRecordResult">
|
||||
<include refid="selectMaWatereleRecordVo"/>
|
||||
<where>
|
||||
<if test="devSn != null and devSn != ''"> and dev_sn = #{devSn}</if>
|
||||
<if test="workstate != null "> and workState = #{workstate}</if>
|
||||
<if test="usersumflow != null and usersumflow != ''"> and userSumFlow = #{usersumflow}</if>
|
||||
<if test="usersumele != null and usersumele != ''"> and userSumEle = #{usersumele}</if>
|
||||
<if test="userbalance != null and userbalance != ''"> and userBalance = #{userbalance}</if>
|
||||
<if test="sumflow != null and sumflow != ''"> and sumFlow = #{sumflow}</if>
|
||||
<if test="sumele != null and sumele != ''"> and sumEle = #{sumele}</if>
|
||||
<if test="mcusn != null and mcusn != ''"> and mcuSn = #{mcusn}</if>
|
||||
<if test="inspower != null and inspower != ''"> and insPower = #{inspower}</if>
|
||||
<if test="insflow != null and insflow != ''"> and insFlow = #{insflow}</if>
|
||||
<if test="curflow != null and curflow != ''"> and curFlow = #{curflow}</if>
|
||||
<if test="curele != null and curele != ''"> and curEle = #{curele}</if>
|
||||
<if test="metersum != null and metersum != ''"> and meterSum = #{metersum}</if>
|
||||
<if test="meterins != null and meterins != ''"> and meterIns = #{meterins}</if>
|
||||
<if test="cardid != null and cardid != ''"> and cardId = #{cardid}</if>
|
||||
<if test="areacode != null and areacode != ''"> and areaCode = #{areacode}</if>
|
||||
<if test="action != null and action != ''"> and action = #{action}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
<select id="selectMaWatereleRecordById" parameterType="Long" resultMap="MaWatereleRecordResult">
|
||||
<include refid="selectMaWatereleRecordVo"/>
|
||||
where id = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertMaWatereleRecord" parameterType="MaWatereleRecord" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into ma_waterele_record
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="devSn != null">dev_sn,</if>
|
||||
<if test="workstate != null">workState,</if>
|
||||
<if test="usersumflow != null">userSumFlow,</if>
|
||||
<if test="usersumele != null">userSumEle,</if>
|
||||
<if test="userbalance != null">userBalance,</if>
|
||||
<if test="sumflow != null">sumFlow,</if>
|
||||
<if test="sumele != null">sumEle,</if>
|
||||
<if test="mcusn != null">mcuSn,</if>
|
||||
<if test="inspower != null">insPower,</if>
|
||||
<if test="insflow != null">insFlow,</if>
|
||||
<if test="curflow != null">curFlow,</if>
|
||||
<if test="curele != null">curEle,</if>
|
||||
<if test="metersum != null">meterSum,</if>
|
||||
<if test="meterins != null">meterIns,</if>
|
||||
<if test="cardid != null">cardId,</if>
|
||||
<if test="areacode != null">areaCode,</if>
|
||||
<if test="action != null">action,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="updateTime != null">update_time,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="devSn != null">#{devSn},</if>
|
||||
<if test="workstate != null">#{workstate},</if>
|
||||
<if test="usersumflow != null">#{usersumflow},</if>
|
||||
<if test="usersumele != null">#{usersumele},</if>
|
||||
<if test="userbalance != null">#{userbalance},</if>
|
||||
<if test="sumflow != null">#{sumflow},</if>
|
||||
<if test="sumele != null">#{sumele},</if>
|
||||
<if test="mcusn != null">#{mcusn},</if>
|
||||
<if test="inspower != null">#{inspower},</if>
|
||||
<if test="insflow != null">#{insflow},</if>
|
||||
<if test="curflow != null">#{curflow},</if>
|
||||
<if test="curele != null">#{curele},</if>
|
||||
<if test="metersum != null">#{metersum},</if>
|
||||
<if test="meterins != null">#{meterins},</if>
|
||||
<if test="cardid != null">#{cardid},</if>
|
||||
<if test="areacode != null">#{areacode},</if>
|
||||
<if test="action != null">#{action},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateMaWatereleRecord" parameterType="MaWatereleRecord">
|
||||
update ma_waterele_record
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="devSn != null">dev_sn = #{devSn},</if>
|
||||
<if test="workstate != null">workState = #{workstate},</if>
|
||||
<if test="usersumflow != null">userSumFlow = #{usersumflow},</if>
|
||||
<if test="usersumele != null">userSumEle = #{usersumele},</if>
|
||||
<if test="userbalance != null">userBalance = #{userbalance},</if>
|
||||
<if test="sumflow != null">sumFlow = #{sumflow},</if>
|
||||
<if test="sumele != null">sumEle = #{sumele},</if>
|
||||
<if test="mcusn != null">mcuSn = #{mcusn},</if>
|
||||
<if test="inspower != null">insPower = #{inspower},</if>
|
||||
<if test="insflow != null">insFlow = #{insflow},</if>
|
||||
<if test="curflow != null">curFlow = #{curflow},</if>
|
||||
<if test="curele != null">curEle = #{curele},</if>
|
||||
<if test="metersum != null">meterSum = #{metersum},</if>
|
||||
<if test="meterins != null">meterIns = #{meterins},</if>
|
||||
<if test="cardid != null">cardId = #{cardid},</if>
|
||||
<if test="areacode != null">areaCode = #{areacode},</if>
|
||||
<if test="action != null">action = #{action},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteMaWatereleRecordById" parameterType="Long">
|
||||
delete from ma_waterele_record where id = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteMaWatereleRecordByIds" parameterType="String">
|
||||
delete from ma_waterele_record where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
Reference in New Issue
Block a user