|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.daoRm; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveHistory; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Author liurunyu | 
|---|
|  |  |  | * @Date 2024/2/23 15:42 | 
|---|
|  |  |  | * @LastEditTime 2024/2/23 15:42 | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-06-17 11:27 | 
|---|
|  |  |  | * @LastEditTime 2024-06-17 11:27 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface RmOpenCloseValveHistoryMapper { | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * delete by primary key | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param id primaryKey | 
|---|
|  |  |  | * @return deleteCount | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface RmOpenCloseValveHistoryMapper extends BaseMapper<RmOpenCloseValveHistory> { | 
|---|
|  |  |  | int deleteByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * insert record to table | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param record the record | 
|---|
|  |  |  | * @return insert count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int insert(RmOpenCloseValveHistory record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * insert record to table selective | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param record the record | 
|---|
|  |  |  | * @return insert count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int insertSelective(RmOpenCloseValveHistory record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * select by primary key | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param id primary key | 
|---|
|  |  |  | * @return object by primary key | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | RmOpenCloseValveHistory selectByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * update record selective | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param record the updated record | 
|---|
|  |  |  | * @return update count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int updateByPrimaryKeySelective(RmOpenCloseValveHistory record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * update record | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param record the updated record | 
|---|
|  |  |  | * @return update count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int updateByPrimaryKey(RmOpenCloseValveHistory record); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.daoRm; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.core.mapper.BaseMapper; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveLast; | 
|---|
|  |  |  | import org.apache.ibatis.annotations.Mapper; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Author liurunyu | 
|---|
|  |  |  | * @Date 2024/2/23 16:00 | 
|---|
|  |  |  | * @LastEditTime 2024/2/23 16:00 | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-06-17 11:28 | 
|---|
|  |  |  | * @LastEditTime 2024-06-17 11:28 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Mapper | 
|---|
|  |  |  | public interface RmOpenCloseValveLastMapper { | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * delete by primary key | 
|---|
|  |  |  | * @param id primaryKey | 
|---|
|  |  |  | * @return deleteCount | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public interface RmOpenCloseValveLastMapper extends BaseMapper<RmOpenCloseValveLast> { | 
|---|
|  |  |  | int deleteByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * insert record to table | 
|---|
|  |  |  | * @param record the record | 
|---|
|  |  |  | * @return insert count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int insert(RmOpenCloseValveLast record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * insert record to table selective | 
|---|
|  |  |  | * @param record the record | 
|---|
|  |  |  | * @return insert count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int insertSelective(RmOpenCloseValveLast record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * select by primary key | 
|---|
|  |  |  | * @param id primary key | 
|---|
|  |  |  | * @return object by primary key | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | RmOpenCloseValveLast selectByPrimaryKey(Long id); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int updateByPrimaryKeySelective(RmOpenCloseValveLast record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | int updateByPrimaryKey(RmOpenCloseValveLast record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * select by rtuAddr | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param rtuAddr rtuAddr | 
|---|
|  |  |  | * @return object by rtuAddr | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | List<RmOpenCloseValveLast> selectByRtuAddr(String rtuAddr); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * update record selective | 
|---|
|  |  |  | * @param record the updated record | 
|---|
|  |  |  | * @return update count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int updateByPrimaryKeySelective(RmOpenCloseValveLast record); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * update record | 
|---|
|  |  |  | * @param record the updated record | 
|---|
|  |  |  | * @return update count | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | int updateByPrimaryKey(RmOpenCloseValveLast record); | 
|---|
|  |  |  | //List<RmOpenCloseValveLast> selectByRtuAddr(String rtuAddr); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.IdType; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
|---|
|  |  |  | import com.dy.common.po.BaseEntity; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.DataV202404; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.upVos.DataCd84Vo; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.upVos.DataCd85Vo; | 
|---|
|  |  |  | import com.dy.common.util.DateTime; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import lombok.*; | 
|---|
|  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Author liurunyu | 
|---|
|  |  |  | * @Date 2024/2/23 15:42 | 
|---|
|  |  |  | * @LastEditTime 2024/2/23 15:42 | 
|---|
|  |  |  | * @Description 控制器开关阀上报数据 | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-06-17 11:27 | 
|---|
|  |  |  | * @LastEditTime 2024-06-17 11:27 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @TableName(value="rm_open_close_valve_report", autoResultMap = true) | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开关阀报历史数据表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @TableName(value="rm_open_close_valve_history", autoResultMap = true) | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @Builder | 
|---|
|  |  |  | @ToString | 
|---|
|  |  |  | @NoArgsConstructor | 
|---|
|  |  |  | @AllArgsConstructor | 
|---|
|  |  |  | @Schema(name = "控制器开关阀上报数据") | 
|---|
|  |  |  | public class RmOpenCloseValveHistory implements BaseEntity { | 
|---|
|  |  |  | @Schema(name = "开关阀报历史数据表") | 
|---|
|  |  |  | public class RmOpenCloseValveHistory { | 
|---|
|  |  |  | public static final long serialVersionUID = 202406171339001L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static final long serialVersionUID = 202402231450001L; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @TableId(type = IdType.INPUT) | 
|---|
|  |  |  | public Long id; | 
|---|
|  |  |  | private Long id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 控制器实体ID(外键) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "控制器实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | * 控制器实体ID(外键) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | public Long controllerId; | 
|---|
|  |  |  | private Long controllerId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 取水口实体ID(外键) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "取水口实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | * 取水口实体ID(外键) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | public Long intakeId; | 
|---|
|  |  |  | private Long intakeId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 控制器地址 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "控制器地址", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | public String rtuAddr; | 
|---|
|  |  |  | * 控制器地址 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String rtuAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀数据接收日期时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "数据接收日期时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | * 开阀数据接收日期时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | public Date opDt; | 
|---|
|  |  |  | private Date opDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀类型 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Byte opType; | 
|---|
|  |  |  | * 开阀控制器时钟 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date opRtuDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀时累计流量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀时累计流量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double opTotalAmount; | 
|---|
|  |  |  | * IC卡地址(远程关闭时为0) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String opIcCardAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀IC卡编号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀IC卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String opIcCardNo; | 
|---|
|  |  |  | * IC卡编号(17位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String opIcCardNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀ic卡地址 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀ic卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String opIcCardAddr; | 
|---|
|  |  |  | * 开阀订单号(16位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String opOrderNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀时剩余金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀时剩余金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double opRemainMoney; | 
|---|
|  |  |  | * 开泵/阀时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date openDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀时控制器时钟 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date openDt; | 
|---|
|  |  |  | * 开阀水表累计水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double opWaterTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀数据接收日期时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀数据接收日期时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date clDt; | 
|---|
|  |  |  | * 开阀电表累计电量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double opEleTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀类型 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Byte clType; | 
|---|
|  |  |  | * 开阀用户剩余金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double opMoneyRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时累计流量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时累计流量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clTotalAmount; | 
|---|
|  |  |  | * 开阀用户剩余水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double opWaterRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时IC卡编号 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时IC卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String clIcCardNo; | 
|---|
|  |  |  | * 关泵/阀方式 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Byte opType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时IC卡地址 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时IC卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String clIcCardAddr; | 
|---|
|  |  |  | * 关阀IC卡地址(远程关闭时为0) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String clIcCardAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时剩余金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时剩余金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clRemainMoney; | 
|---|
|  |  |  | * 关阀IC卡编号(17位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String clIcCardNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中本次用水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时本次用水量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clThisAmount; | 
|---|
|  |  |  | * 关阀订单号(16位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private String clOrderNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中本次消费金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时本次消费金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clThisMoney; | 
|---|
|  |  |  | * 开始时间(分时日月) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date startDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中本次用水时长(分钟) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时本次用水时长(分钟)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Integer clThisTime; | 
|---|
|  |  |  | * 结束时间(分时日月) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | private Date endDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中的开阀时控制器时钟 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀报中的开阀时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date clOpenDt; | 
|---|
|  |  |  | * 水表累计流量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double clWaterTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时控制器时钟 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date closeDt; | 
|---|
|  |  |  | * 电表累计电量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double clEleTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 用户剩余金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double clMoneyRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 用户剩余水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double clWaterRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用电量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double thisEle; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double thisWater; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double thisMoney; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用时间长 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer thisDuration; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void valueFrom84(DataV202404 dataV202404, DataCd84Vo cdData) throws Exception{ | 
|---|
|  |  |  | this.opDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dataV202404.dt); | 
|---|
|  |  |  | this.openDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(cdData.opDt); | 
|---|
|  |  |  | this.opIcCardAddr = cdData.icCardAddr;; | 
|---|
|  |  |  | this.opIcCardNo = cdData.icCardNo; | 
|---|
|  |  |  | this.opOrderNo = cdData.orderNo; | 
|---|
|  |  |  | this.opWaterTotalAmount = cdData.waterTotalAmount; | 
|---|
|  |  |  | this.opEleTotalAmount = cdData.eleTotalAmount; | 
|---|
|  |  |  | this.opMoneyRemainUser = cdData.moneyRemainUser; | 
|---|
|  |  |  | this.opWaterRemainUser = cdData.waterRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void valueFrom85(DataV202404 dataV202404, DataCd85Vo cdData) throws Exception{ | 
|---|
|  |  |  | this.startDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(cdData.startDt); | 
|---|
|  |  |  | this.endDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(cdData.endDt); | 
|---|
|  |  |  | this.opType = cdData.opType; | 
|---|
|  |  |  | this.clIcCardAddr = cdData.icCardAddr; | 
|---|
|  |  |  | this.clIcCardNo = cdData.icCardNo; | 
|---|
|  |  |  | this.clOrderNo = cdData.orderNo; | 
|---|
|  |  |  | this.clWaterTotalAmount = cdData.waterTotalAmount; | 
|---|
|  |  |  | this.clEleTotalAmount = cdData.eleTotalAmount; | 
|---|
|  |  |  | this.clMoneyRemainUser = cdData.moneyRemain;; | 
|---|
|  |  |  | this.clWaterRemainUser = cdData.waterRemain; | 
|---|
|  |  |  | this.thisEle = cdData.thisEle; | 
|---|
|  |  |  | this.thisWater = cdData.thisWater; | 
|---|
|  |  |  | this.thisMoney = cdData.thisMoney; | 
|---|
|  |  |  | this.thisDuration = cdData.thisDuration;; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.pojoRm; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.alibaba.fastjson2.annotation.JSONField; | 
|---|
|  |  |  | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.IdType; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
|---|
|  |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import lombok.*; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @Author liurunyu | 
|---|
|  |  |  | * @Date 2024/2/23 16:00 | 
|---|
|  |  |  | * @LastEditTime 2024/2/23 16:00 | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-06-17 11:28 | 
|---|
|  |  |  | * @LastEditTime 2024-06-17 11:28 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @TableName(value="rm_open_close_valve_last", autoResultMap = true) | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @Builder | 
|---|
|  |  |  | @ToString | 
|---|
|  |  |  | @NoArgsConstructor | 
|---|
|  |  |  | @AllArgsConstructor | 
|---|
|  |  |  | @Schema(name = "控制器开关阀上报最新数据") | 
|---|
|  |  |  | public class RmOpenCloseValveLast { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开关阀报最新数据表 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class RmOpenCloseValveLast { | 
|---|
|  |  |  | public static final long serialVersionUID = 202402231602001L; | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 主键 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | @TableId(type = IdType.INPUT) | 
|---|
|  |  |  | public Long id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 由最新数据持有历史数据中的最新记录ID,以方便快速查询 | 
|---|
|  |  |  | * json不序列化此属性,即不向前端页面发送及显示 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(hidden=true) | 
|---|
|  |  |  | @JSONField(serialize = false) | 
|---|
|  |  |  | public Long lastHistoryId; | 
|---|
|  |  |  | private Long id; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 控制器实体ID(外键) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "控制器实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | public Long controllerId; | 
|---|
|  |  |  | private Long controllerId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 取水口实体ID(外键) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "取水口实体外键", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|---|
|  |  |  | public Long intakeId; | 
|---|
|  |  |  | private Long intakeId; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 控制器地址 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "控制器地址", requiredMode = Schema.RequiredMode.REQUIRED) | 
|---|
|  |  |  | public String rtuAddr; | 
|---|
|  |  |  | private String rtuAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀数据接收日期时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀数据接收日期时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | public Date opDt; | 
|---|
|  |  |  | private Date opDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀类型 | 
|---|
|  |  |  | * 开阀控制器时钟 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Byte opType; | 
|---|
|  |  |  | private Date opRtuDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀时累计流量 | 
|---|
|  |  |  | * IC卡地址(远程关闭时为0) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀时累计流量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double opTotalAmount; | 
|---|
|  |  |  | private String opIcCardAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀IC卡编号 | 
|---|
|  |  |  | * IC卡编号(17位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀IC卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String opIcCardNo; | 
|---|
|  |  |  | private String opIcCardNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀ic卡地址 | 
|---|
|  |  |  | * 开阀订单号(16位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀ic卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String opIcCardAddr; | 
|---|
|  |  |  | private String opOrderNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀时剩余金额 | 
|---|
|  |  |  | * 开泵/阀时间 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀时剩余金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double opRemainMoney; | 
|---|
|  |  |  | private Date openDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 开阀时控制器时钟 | 
|---|
|  |  |  | * 开阀水表累计水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "开阀时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date openDt; | 
|---|
|  |  |  | private Double opWaterTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀数据接收日期时间 | 
|---|
|  |  |  | * 开阀电表累计电量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀数据接收日期时间", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date clDt; | 
|---|
|  |  |  | private Double opEleTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀类型 | 
|---|
|  |  |  | * 开阀用户剩余金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀类型", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Byte clType; | 
|---|
|  |  |  | private Double opMoneyRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时累计流量 | 
|---|
|  |  |  | * 开阀用户剩余水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时累计流量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clTotalAmount; | 
|---|
|  |  |  | private Double opWaterRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时IC卡编号 | 
|---|
|  |  |  | * 关泵/阀方式 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时IC卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String clIcCardNo; | 
|---|
|  |  |  | private String opType; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时IC卡地址 | 
|---|
|  |  |  | * 关阀IC卡地址(远程关闭时为0) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时IC卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public String clIcCardAddr; | 
|---|
|  |  |  | private String clIcCardAddr; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时剩余金额 | 
|---|
|  |  |  | * 关阀IC卡编号(17位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时剩余金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clRemainMoney; | 
|---|
|  |  |  | private String clIcCardNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中本次用水量 | 
|---|
|  |  |  | * 关阀订单号(16位数字) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时本次用水量", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clThisAmount; | 
|---|
|  |  |  | private String clOrderNo; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中本次消费金额 | 
|---|
|  |  |  | * 开始时间(分时日月) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时本次消费金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Double clThisMoney; | 
|---|
|  |  |  | private Date startDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中本次用水时长(分钟) | 
|---|
|  |  |  | * 结束时间(分时日月) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时本次用水时长(分钟)", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Integer clThisTime; | 
|---|
|  |  |  | private Date endDt; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀报中的开阀时控制器时钟 | 
|---|
|  |  |  | * 水表累计流量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀报中的开阀时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date clOpenDt; | 
|---|
|  |  |  | private Double clWaterTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 关阀时控制器时钟 | 
|---|
|  |  |  | * 电表累计电量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Schema(description = "关阀时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|---|
|  |  |  | public Date closeDt; | 
|---|
|  |  |  | private Double clEleTotalAmount; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 用户剩余金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double clMoneyRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 用户剩余水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double clWaterRemainUser; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用电量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double thisEle; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用水量 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double thisWater; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用金额 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Double thisMoney; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 本次使用时间长 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private Integer thisDuration; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getId() { | 
|---|
|  |  |  | return id; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setId(Long id) { | 
|---|
|  |  |  | this.id = id; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getControllerId() { | 
|---|
|  |  |  | return controllerId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setControllerId(Long controllerId) { | 
|---|
|  |  |  | this.controllerId = controllerId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Long getIntakeId() { | 
|---|
|  |  |  | return intakeId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setIntakeId(Long intakeId) { | 
|---|
|  |  |  | this.intakeId = intakeId; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getRtuAddr() { | 
|---|
|  |  |  | return rtuAddr; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setRtuAddr(String rtuAddr) { | 
|---|
|  |  |  | this.rtuAddr = rtuAddr; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getOpDt() { | 
|---|
|  |  |  | return opDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpDt(Date opDt) { | 
|---|
|  |  |  | this.opDt = opDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getOpRtuDt() { | 
|---|
|  |  |  | return opRtuDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpRtuDt(Date opRtuDt) { | 
|---|
|  |  |  | this.opRtuDt = opRtuDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOpIcCardAddr() { | 
|---|
|  |  |  | return opIcCardAddr; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpIcCardAddr(String opIcCardAddr) { | 
|---|
|  |  |  | this.opIcCardAddr = opIcCardAddr; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOpIcCardNo() { | 
|---|
|  |  |  | return opIcCardNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpIcCardNo(String opIcCardNo) { | 
|---|
|  |  |  | this.opIcCardNo = opIcCardNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOpOrderNo() { | 
|---|
|  |  |  | return opOrderNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpOrderNo(String opOrderNo) { | 
|---|
|  |  |  | this.opOrderNo = opOrderNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getOpenDt() { | 
|---|
|  |  |  | return openDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpenDt(Date openDt) { | 
|---|
|  |  |  | this.openDt = openDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getOpWaterTotalAmount() { | 
|---|
|  |  |  | return opWaterTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpWaterTotalAmount(Double opWaterTotalAmount) { | 
|---|
|  |  |  | this.opWaterTotalAmount = opWaterTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getOpEleTotalAmount() { | 
|---|
|  |  |  | return opEleTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpEleTotalAmount(Double opEleTotalAmount) { | 
|---|
|  |  |  | this.opEleTotalAmount = opEleTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getOpMoneyRemainUser() { | 
|---|
|  |  |  | return opMoneyRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpMoneyRemainUser(Double opMoneyRemainUser) { | 
|---|
|  |  |  | this.opMoneyRemainUser = opMoneyRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getOpWaterRemainUser() { | 
|---|
|  |  |  | return opWaterRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpWaterRemainUser(Double opWaterRemainUser) { | 
|---|
|  |  |  | this.opWaterRemainUser = opWaterRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getOpType() { | 
|---|
|  |  |  | return opType; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setOpType(String opType) { | 
|---|
|  |  |  | this.opType = opType; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getClIcCardAddr() { | 
|---|
|  |  |  | return clIcCardAddr; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setClIcCardAddr(String clIcCardAddr) { | 
|---|
|  |  |  | this.clIcCardAddr = clIcCardAddr; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getClIcCardNo() { | 
|---|
|  |  |  | return clIcCardNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setClIcCardNo(String clIcCardNo) { | 
|---|
|  |  |  | this.clIcCardNo = clIcCardNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public String getClOrderNo() { | 
|---|
|  |  |  | return clOrderNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setClOrderNo(String clOrderNo) { | 
|---|
|  |  |  | this.clOrderNo = clOrderNo; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getStartDt() { | 
|---|
|  |  |  | return startDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setStartDt(Date startDt) { | 
|---|
|  |  |  | this.startDt = startDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Date getEndDt() { | 
|---|
|  |  |  | return endDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setEndDt(Date endDt) { | 
|---|
|  |  |  | this.endDt = endDt; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getClWaterTotalAmount() { | 
|---|
|  |  |  | return clWaterTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setClWaterTotalAmount(Double clWaterTotalAmount) { | 
|---|
|  |  |  | this.clWaterTotalAmount = clWaterTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getClEleTotalAmount() { | 
|---|
|  |  |  | return clEleTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setClEleTotalAmount(Double clEleTotalAmount) { | 
|---|
|  |  |  | this.clEleTotalAmount = clEleTotalAmount; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getClMoneyRemainUser() { | 
|---|
|  |  |  | return clMoneyRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setClMoneyRemainUser(Double clMoneyRemainUser) { | 
|---|
|  |  |  | this.clMoneyRemainUser = clMoneyRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getClWaterRemainUser() { | 
|---|
|  |  |  | return clWaterRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setClWaterRemainUser(Double clWaterRemainUser) { | 
|---|
|  |  |  | this.clWaterRemainUser = clWaterRemainUser; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getThisEle() { | 
|---|
|  |  |  | return thisEle; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setThisEle(Double thisEle) { | 
|---|
|  |  |  | this.thisEle = thisEle; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getThisWater() { | 
|---|
|  |  |  | return thisWater; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setThisWater(Double thisWater) { | 
|---|
|  |  |  | this.thisWater = thisWater; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Double getThisMoney() { | 
|---|
|  |  |  | return thisMoney; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setThisMoney(Double thisMoney) { | 
|---|
|  |  |  | this.thisMoney = thisMoney; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Integer getThisDuration() { | 
|---|
|  |  |  | return thisDuration; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setThisDuration(Integer thisDuration) { | 
|---|
|  |  |  | this.thisDuration = thisDuration; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | <result column="intake_id" jdbcType="BIGINT" property="intakeId" /> | 
|---|
|  |  |  | <result column="rtu_addr" jdbcType="VARCHAR" property="rtuAddr" /> | 
|---|
|  |  |  | <result column="op_dt" jdbcType="TIMESTAMP" property="opDt" /> | 
|---|
|  |  |  | <result column="op_type" jdbcType="TINYINT" property="opType" /> | 
|---|
|  |  |  | <result column="op_total_amount" jdbcType="DOUBLE" property="opTotalAmount" /> | 
|---|
|  |  |  | <result column="op_ic_card_no" jdbcType="VARCHAR" property="opIcCardNo" /> | 
|---|
|  |  |  | <result column="op_rtu_dt" jdbcType="TIMESTAMP" property="opRtuDt" /> | 
|---|
|  |  |  | <result column="op_ic_card_addr" jdbcType="VARCHAR" property="opIcCardAddr" /> | 
|---|
|  |  |  | <result column="op_remain_money" jdbcType="DOUBLE" property="opRemainMoney" /> | 
|---|
|  |  |  | <result column="op_ic_card_no" jdbcType="VARCHAR" property="opIcCardNo" /> | 
|---|
|  |  |  | <result column="op_order_no" jdbcType="VARCHAR" property="opOrderNo" /> | 
|---|
|  |  |  | <result column="open_dt" jdbcType="TIMESTAMP" property="openDt" /> | 
|---|
|  |  |  | <result column="cl_dt" jdbcType="TIMESTAMP" property="clDt" /> | 
|---|
|  |  |  | <result column="cl_type" jdbcType="TINYINT" property="clType" /> | 
|---|
|  |  |  | <result column="cl_total_amount" jdbcType="DOUBLE" property="clTotalAmount" /> | 
|---|
|  |  |  | <result column="cl_ic_card_no" jdbcType="VARCHAR" property="clIcCardNo" /> | 
|---|
|  |  |  | <result column="op_water_total_amount" jdbcType="FLOAT" property="opWaterTotalAmount" /> | 
|---|
|  |  |  | <result column="op_ele_total_amount" jdbcType="FLOAT" property="opEleTotalAmount" /> | 
|---|
|  |  |  | <result column="op_money_remain_user" jdbcType="FLOAT" property="opMoneyRemainUser" /> | 
|---|
|  |  |  | <result column="op_water_remain_user" jdbcType="FLOAT" property="opWaterRemainUser" /> | 
|---|
|  |  |  | <result column="op_type" jdbcType="VARCHAR" property="opType" /> | 
|---|
|  |  |  | <result column="cl_ic_card_addr" jdbcType="VARCHAR" property="clIcCardAddr" /> | 
|---|
|  |  |  | <result column="cl_remain_money" jdbcType="DOUBLE" property="clRemainMoney" /> | 
|---|
|  |  |  | <result column="cl_this_amount" jdbcType="DOUBLE" property="clThisAmount" /> | 
|---|
|  |  |  | <result column="cl_this_money" jdbcType="DOUBLE" property="clThisMoney" /> | 
|---|
|  |  |  | <result column="cl_this_time" jdbcType="INTEGER" property="clThisTime" /> | 
|---|
|  |  |  | <result column="cl_open_dt" jdbcType="TIMESTAMP" property="clOpenDt" /> | 
|---|
|  |  |  | <result column="close_dt" jdbcType="TIMESTAMP" property="closeDt" /> | 
|---|
|  |  |  | <result column="cl_ic_card_no" jdbcType="VARCHAR" property="clIcCardNo" /> | 
|---|
|  |  |  | <result column="cl_order_no" jdbcType="VARCHAR" property="clOrderNo" /> | 
|---|
|  |  |  | <result column="start_dt" jdbcType="TIMESTAMP" property="startDt" /> | 
|---|
|  |  |  | <result column="end_dt" jdbcType="TIMESTAMP" property="endDt" /> | 
|---|
|  |  |  | <result column="cl_water_total_amount" jdbcType="FLOAT" property="clWaterTotalAmount" /> | 
|---|
|  |  |  | <result column="cl_ele_total_amount" jdbcType="FLOAT" property="clEleTotalAmount" /> | 
|---|
|  |  |  | <result column="cl_money_remain_user" jdbcType="FLOAT" property="clMoneyRemainUser" /> | 
|---|
|  |  |  | <result column="cl_water_remain_user" jdbcType="FLOAT" property="clWaterRemainUser" /> | 
|---|
|  |  |  | <result column="this_ele" jdbcType="FLOAT" property="thisEle" /> | 
|---|
|  |  |  | <result column="this_water" jdbcType="FLOAT" property="thisWater" /> | 
|---|
|  |  |  | <result column="this_money" jdbcType="FLOAT" property="thisMoney" /> | 
|---|
|  |  |  | <result column="this_duration" jdbcType="INTEGER" property="thisDuration" /> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  | <sql id="Base_Column_List"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | id, controller_id, intake_id, rtu_addr, op_dt, op_type, op_total_amount, op_ic_card_no, | 
|---|
|  |  |  | op_ic_card_addr, op_remain_money, open_dt, cl_dt, cl_type, cl_total_amount, cl_ic_card_no, | 
|---|
|  |  |  | cl_ic_card_addr, cl_remain_money, cl_this_amount, cl_this_money, cl_this_time, cl_open_dt, | 
|---|
|  |  |  | close_dt | 
|---|
|  |  |  | id, controller_id, intake_id, rtu_addr, op_dt, op_rtu_dt, op_ic_card_addr, op_ic_card_no, | 
|---|
|  |  |  | op_order_no, open_dt, op_water_total_amount, op_ele_total_amount, op_money_remain_user, | 
|---|
|  |  |  | op_water_remain_user, op_type, cl_ic_card_addr, cl_ic_card_no, cl_order_no, start_dt, | 
|---|
|  |  |  | end_dt, cl_water_total_amount, cl_ele_total_amount, cl_money_remain_user, cl_water_remain_user, | 
|---|
|  |  |  | this_ele, this_water, this_money, this_duration | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | 
|---|
|  |  |  | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveHistory"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | insert into rm_open_close_valve_history (id, controller_id, intake_id, | 
|---|
|  |  |  | rtu_addr, op_dt, op_type, | 
|---|
|  |  |  | op_total_amount, op_ic_card_no, op_ic_card_addr, | 
|---|
|  |  |  | op_remain_money, open_dt, cl_dt, | 
|---|
|  |  |  | cl_type, cl_total_amount, cl_ic_card_no, | 
|---|
|  |  |  | cl_ic_card_addr, cl_remain_money, cl_this_amount, | 
|---|
|  |  |  | cl_this_money, cl_this_time, cl_open_dt, | 
|---|
|  |  |  | close_dt) | 
|---|
|  |  |  | rtu_addr, op_dt, op_rtu_dt, | 
|---|
|  |  |  | op_ic_card_addr, op_ic_card_no, op_order_no, | 
|---|
|  |  |  | open_dt, op_water_total_amount, op_ele_total_amount, | 
|---|
|  |  |  | op_money_remain_user, op_water_remain_user, op_type, | 
|---|
|  |  |  | cl_ic_card_addr, cl_ic_card_no, cl_order_no, | 
|---|
|  |  |  | start_dt, end_dt, cl_water_total_amount, | 
|---|
|  |  |  | cl_ele_total_amount, cl_money_remain_user, cl_water_remain_user, | 
|---|
|  |  |  | this_ele, this_water, this_money, | 
|---|
|  |  |  | this_duration) | 
|---|
|  |  |  | values (#{id,jdbcType=BIGINT}, #{controllerId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, | 
|---|
|  |  |  | #{rtuAddr,jdbcType=VARCHAR}, #{opDt,jdbcType=TIMESTAMP}, #{opType,jdbcType=TINYINT}, | 
|---|
|  |  |  | #{opTotalAmount,jdbcType=DOUBLE}, #{opIcCardNo,jdbcType=VARCHAR}, #{opIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{opRemainMoney,jdbcType=DOUBLE}, #{openDt,jdbcType=TIMESTAMP}, #{clDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | #{clType,jdbcType=TINYINT}, #{clTotalAmount,jdbcType=DOUBLE}, #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{clIcCardAddr,jdbcType=VARCHAR}, #{clRemainMoney,jdbcType=DOUBLE}, #{clThisAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | #{clThisMoney,jdbcType=DOUBLE}, #{clThisTime,jdbcType=INTEGER}, #{clOpenDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | #{closeDt,jdbcType=TIMESTAMP}) | 
|---|
|  |  |  | #{rtuAddr,jdbcType=VARCHAR}, #{opDt,jdbcType=TIMESTAMP}, #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | #{opIcCardAddr,jdbcType=VARCHAR}, #{opIcCardNo,jdbcType=VARCHAR}, #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{openDt,jdbcType=TIMESTAMP}, #{opWaterTotalAmount,jdbcType=FLOAT}, #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{opMoneyRemainUser,jdbcType=FLOAT}, #{opWaterRemainUser,jdbcType=FLOAT}, #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{clIcCardAddr,jdbcType=VARCHAR}, #{clIcCardNo,jdbcType=VARCHAR}, #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{startDt,jdbcType=TIMESTAMP}, #{endDt,jdbcType=TIMESTAMP}, #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{clEleTotalAmount,jdbcType=FLOAT}, #{clMoneyRemainUser,jdbcType=FLOAT}, #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{thisEle,jdbcType=FLOAT}, #{thisWater,jdbcType=FLOAT}, #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{thisDuration,jdbcType=INTEGER}) | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveHistory"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="opDt != null"> | 
|---|
|  |  |  | op_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opTotalAmount != null"> | 
|---|
|  |  |  | op_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no, | 
|---|
|  |  |  | <if test="opRtuDt != null"> | 
|---|
|  |  |  | op_rtu_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardAddr != null"> | 
|---|
|  |  |  | op_ic_card_addr, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opRemainMoney != null"> | 
|---|
|  |  |  | op_remain_money, | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opOrderNo != null"> | 
|---|
|  |  |  | op_order_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="openDt != null"> | 
|---|
|  |  |  | open_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clDt != null"> | 
|---|
|  |  |  | cl_dt, | 
|---|
|  |  |  | <if test="opWaterTotalAmount != null"> | 
|---|
|  |  |  | op_water_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clType != null"> | 
|---|
|  |  |  | cl_type, | 
|---|
|  |  |  | <if test="opEleTotalAmount != null"> | 
|---|
|  |  |  | op_ele_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clTotalAmount != null"> | 
|---|
|  |  |  | cl_total_amount, | 
|---|
|  |  |  | <if test="opMoneyRemainUser != null"> | 
|---|
|  |  |  | op_money_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no, | 
|---|
|  |  |  | <if test="opWaterRemainUser != null"> | 
|---|
|  |  |  | op_water_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardAddr != null"> | 
|---|
|  |  |  | cl_ic_card_addr, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clRemainMoney != null"> | 
|---|
|  |  |  | cl_remain_money, | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisAmount != null"> | 
|---|
|  |  |  | cl_this_amount, | 
|---|
|  |  |  | <if test="clOrderNo != null"> | 
|---|
|  |  |  | cl_order_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisMoney != null"> | 
|---|
|  |  |  | cl_this_money, | 
|---|
|  |  |  | <if test="startDt != null"> | 
|---|
|  |  |  | start_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisTime != null"> | 
|---|
|  |  |  | cl_this_time, | 
|---|
|  |  |  | <if test="endDt != null"> | 
|---|
|  |  |  | end_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clOpenDt != null"> | 
|---|
|  |  |  | cl_open_dt, | 
|---|
|  |  |  | <if test="clWaterTotalAmount != null"> | 
|---|
|  |  |  | cl_water_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="closeDt != null"> | 
|---|
|  |  |  | close_dt, | 
|---|
|  |  |  | <if test="clEleTotalAmount != null"> | 
|---|
|  |  |  | cl_ele_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clMoneyRemainUser != null"> | 
|---|
|  |  |  | cl_money_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clWaterRemainUser != null"> | 
|---|
|  |  |  | cl_water_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisEle != null"> | 
|---|
|  |  |  | this_ele, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisWater != null"> | 
|---|
|  |  |  | this_water, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisMoney != null"> | 
|---|
|  |  |  | this_money, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisDuration != null"> | 
|---|
|  |  |  | this_duration, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="opDt != null"> | 
|---|
|  |  |  | #{opDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | #{opType,jdbcType=TINYINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opTotalAmount != null"> | 
|---|
|  |  |  | #{opTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opRtuDt != null"> | 
|---|
|  |  |  | #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardAddr != null"> | 
|---|
|  |  |  | #{opIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opRemainMoney != null"> | 
|---|
|  |  |  | #{opRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opOrderNo != null"> | 
|---|
|  |  |  | #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="openDt != null"> | 
|---|
|  |  |  | #{openDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clDt != null"> | 
|---|
|  |  |  | #{clDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="opWaterTotalAmount != null"> | 
|---|
|  |  |  | #{opWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clType != null"> | 
|---|
|  |  |  | #{clType,jdbcType=TINYINT}, | 
|---|
|  |  |  | <if test="opEleTotalAmount != null"> | 
|---|
|  |  |  | #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clTotalAmount != null"> | 
|---|
|  |  |  | #{clTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opMoneyRemainUser != null"> | 
|---|
|  |  |  | #{opMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opWaterRemainUser != null"> | 
|---|
|  |  |  | #{opWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardAddr != null"> | 
|---|
|  |  |  | #{clIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clRemainMoney != null"> | 
|---|
|  |  |  | #{clRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisAmount != null"> | 
|---|
|  |  |  | #{clThisAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clOrderNo != null"> | 
|---|
|  |  |  | #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisMoney != null"> | 
|---|
|  |  |  | #{clThisMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="startDt != null"> | 
|---|
|  |  |  | #{startDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisTime != null"> | 
|---|
|  |  |  | #{clThisTime,jdbcType=INTEGER}, | 
|---|
|  |  |  | <if test="endDt != null"> | 
|---|
|  |  |  | #{endDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clOpenDt != null"> | 
|---|
|  |  |  | #{clOpenDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clWaterTotalAmount != null"> | 
|---|
|  |  |  | #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="closeDt != null"> | 
|---|
|  |  |  | #{closeDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clEleTotalAmount != null"> | 
|---|
|  |  |  | #{clEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clMoneyRemainUser != null"> | 
|---|
|  |  |  | #{clMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clWaterRemainUser != null"> | 
|---|
|  |  |  | #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisEle != null"> | 
|---|
|  |  |  | #{thisEle,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisWater != null"> | 
|---|
|  |  |  | #{thisWater,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisMoney != null"> | 
|---|
|  |  |  | #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisDuration != null"> | 
|---|
|  |  |  | #{thisDuration,jdbcType=INTEGER}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="opDt != null"> | 
|---|
|  |  |  | op_dt = #{opDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type = #{opType,jdbcType=TINYINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opTotalAmount != null"> | 
|---|
|  |  |  | op_total_amount = #{opTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opRtuDt != null"> | 
|---|
|  |  |  | op_rtu_dt = #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardAddr != null"> | 
|---|
|  |  |  | op_ic_card_addr = #{opIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opRemainMoney != null"> | 
|---|
|  |  |  | op_remain_money = #{opRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opOrderNo != null"> | 
|---|
|  |  |  | op_order_no = #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="openDt != null"> | 
|---|
|  |  |  | open_dt = #{openDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clDt != null"> | 
|---|
|  |  |  | cl_dt = #{clDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="opWaterTotalAmount != null"> | 
|---|
|  |  |  | op_water_total_amount = #{opWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clType != null"> | 
|---|
|  |  |  | cl_type = #{clType,jdbcType=TINYINT}, | 
|---|
|  |  |  | <if test="opEleTotalAmount != null"> | 
|---|
|  |  |  | op_ele_total_amount = #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clTotalAmount != null"> | 
|---|
|  |  |  | cl_total_amount = #{clTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opMoneyRemainUser != null"> | 
|---|
|  |  |  | op_money_remain_user = #{opMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opWaterRemainUser != null"> | 
|---|
|  |  |  | op_water_remain_user = #{opWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type = #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardAddr != null"> | 
|---|
|  |  |  | cl_ic_card_addr = #{clIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clRemainMoney != null"> | 
|---|
|  |  |  | cl_remain_money = #{clRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisAmount != null"> | 
|---|
|  |  |  | cl_this_amount = #{clThisAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clOrderNo != null"> | 
|---|
|  |  |  | cl_order_no = #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisMoney != null"> | 
|---|
|  |  |  | cl_this_money = #{clThisMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="startDt != null"> | 
|---|
|  |  |  | start_dt = #{startDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisTime != null"> | 
|---|
|  |  |  | cl_this_time = #{clThisTime,jdbcType=INTEGER}, | 
|---|
|  |  |  | <if test="endDt != null"> | 
|---|
|  |  |  | end_dt = #{endDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clOpenDt != null"> | 
|---|
|  |  |  | cl_open_dt = #{clOpenDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clWaterTotalAmount != null"> | 
|---|
|  |  |  | cl_water_total_amount = #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="closeDt != null"> | 
|---|
|  |  |  | close_dt = #{closeDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clEleTotalAmount != null"> | 
|---|
|  |  |  | cl_ele_total_amount = #{clEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clMoneyRemainUser != null"> | 
|---|
|  |  |  | cl_money_remain_user = #{clMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clWaterRemainUser != null"> | 
|---|
|  |  |  | cl_water_remain_user = #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisEle != null"> | 
|---|
|  |  |  | this_ele = #{thisEle,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisWater != null"> | 
|---|
|  |  |  | this_water = #{thisWater,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisMoney != null"> | 
|---|
|  |  |  | this_money = #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisDuration != null"> | 
|---|
|  |  |  | this_duration = #{thisDuration,jdbcType=INTEGER}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </set> | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | 
|---|
|  |  |  | intake_id = #{intakeId,jdbcType=BIGINT}, | 
|---|
|  |  |  | rtu_addr = #{rtuAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_dt = #{opDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | op_type = #{opType,jdbcType=TINYINT}, | 
|---|
|  |  |  | op_total_amount = #{opTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_rtu_dt = #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | op_ic_card_addr = #{opIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_remain_money = #{opRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_order_no = #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | open_dt = #{openDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | cl_dt = #{clDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | cl_type = #{clType,jdbcType=TINYINT}, | 
|---|
|  |  |  | cl_total_amount = #{clTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_water_total_amount = #{opWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_ele_total_amount = #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_money_remain_user = #{opMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_water_remain_user = #{opWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_type = #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | cl_ic_card_addr = #{clIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | cl_remain_money = #{clRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_this_amount = #{clThisAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_this_money = #{clThisMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_this_time = #{clThisTime,jdbcType=INTEGER}, | 
|---|
|  |  |  | cl_open_dt = #{clOpenDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | close_dt = #{closeDt,jdbcType=TIMESTAMP} | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | cl_order_no = #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | start_dt = #{startDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | end_dt = #{endDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | cl_water_total_amount = #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | cl_ele_total_amount = #{clEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | cl_money_remain_user = #{clMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | cl_water_remain_user = #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_ele = #{thisEle,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_water = #{thisWater,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_money = #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_duration = #{thisDuration,jdbcType=INTEGER} | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | </mapper> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | <!--@Table rm_open_close_valve_last--> | 
|---|
|  |  |  | <id column="id" jdbcType="BIGINT" property="id" /> | 
|---|
|  |  |  | <result column="last_history_id" jdbcType="BIGINT" property="lastHistoryId" /> | 
|---|
|  |  |  | <result column="controller_id" jdbcType="BIGINT" property="controllerId" /> | 
|---|
|  |  |  | <result column="intake_id" jdbcType="BIGINT" property="intakeId" /> | 
|---|
|  |  |  | <result column="rtu_addr" jdbcType="VARCHAR" property="rtuAddr" /> | 
|---|
|  |  |  | <result column="op_dt" jdbcType="TIMESTAMP" property="opDt" /> | 
|---|
|  |  |  | <result column="op_type" jdbcType="TINYINT" property="opType" /> | 
|---|
|  |  |  | <result column="op_total_amount" jdbcType="DOUBLE" property="opTotalAmount" /> | 
|---|
|  |  |  | <result column="op_ic_card_no" jdbcType="VARCHAR" property="opIcCardNo" /> | 
|---|
|  |  |  | <result column="op_rtu_dt" jdbcType="TIMESTAMP" property="opRtuDt" /> | 
|---|
|  |  |  | <result column="op_ic_card_addr" jdbcType="VARCHAR" property="opIcCardAddr" /> | 
|---|
|  |  |  | <result column="op_remain_money" jdbcType="DOUBLE" property="opRemainMoney" /> | 
|---|
|  |  |  | <result column="op_ic_card_no" jdbcType="VARCHAR" property="opIcCardNo" /> | 
|---|
|  |  |  | <result column="op_order_no" jdbcType="VARCHAR" property="opOrderNo" /> | 
|---|
|  |  |  | <result column="open_dt" jdbcType="TIMESTAMP" property="openDt" /> | 
|---|
|  |  |  | <result column="cl_dt" jdbcType="TIMESTAMP" property="clDt" /> | 
|---|
|  |  |  | <result column="cl_type" jdbcType="TINYINT" property="clType" /> | 
|---|
|  |  |  | <result column="cl_total_amount" jdbcType="DOUBLE" property="clTotalAmount" /> | 
|---|
|  |  |  | <result column="cl_ic_card_no" jdbcType="VARCHAR" property="clIcCardNo" /> | 
|---|
|  |  |  | <result column="op_water_total_amount" jdbcType="FLOAT" property="opWaterTotalAmount" /> | 
|---|
|  |  |  | <result column="op_ele_total_amount" jdbcType="FLOAT" property="opEleTotalAmount" /> | 
|---|
|  |  |  | <result column="op_money_remain_user" jdbcType="FLOAT" property="opMoneyRemainUser" /> | 
|---|
|  |  |  | <result column="op_water_remain_user" jdbcType="FLOAT" property="opWaterRemainUser" /> | 
|---|
|  |  |  | <result column="op_type" jdbcType="VARCHAR" property="opType" /> | 
|---|
|  |  |  | <result column="cl_ic_card_addr" jdbcType="VARCHAR" property="clIcCardAddr" /> | 
|---|
|  |  |  | <result column="cl_remain_money" jdbcType="DOUBLE" property="clRemainMoney" /> | 
|---|
|  |  |  | <result column="cl_this_amount" jdbcType="DOUBLE" property="clThisAmount" /> | 
|---|
|  |  |  | <result column="cl_this_money" jdbcType="DOUBLE" property="clThisMoney" /> | 
|---|
|  |  |  | <result column="cl_this_time" jdbcType="INTEGER" property="clThisTime" /> | 
|---|
|  |  |  | <result column="cl_open_dt" jdbcType="TIMESTAMP" property="clOpenDt" /> | 
|---|
|  |  |  | <result column="close_dt" jdbcType="TIMESTAMP" property="closeDt" /> | 
|---|
|  |  |  | <result column="cl_ic_card_no" jdbcType="VARCHAR" property="clIcCardNo" /> | 
|---|
|  |  |  | <result column="cl_order_no" jdbcType="VARCHAR" property="clOrderNo" /> | 
|---|
|  |  |  | <result column="start_dt" jdbcType="TIMESTAMP" property="startDt" /> | 
|---|
|  |  |  | <result column="end_dt" jdbcType="TIMESTAMP" property="endDt" /> | 
|---|
|  |  |  | <result column="cl_water_total_amount" jdbcType="FLOAT" property="clWaterTotalAmount" /> | 
|---|
|  |  |  | <result column="cl_ele_total_amount" jdbcType="FLOAT" property="clEleTotalAmount" /> | 
|---|
|  |  |  | <result column="cl_money_remain_user" jdbcType="FLOAT" property="clMoneyRemainUser" /> | 
|---|
|  |  |  | <result column="cl_water_remain_user" jdbcType="FLOAT" property="clWaterRemainUser" /> | 
|---|
|  |  |  | <result column="this_ele" jdbcType="FLOAT" property="thisEle" /> | 
|---|
|  |  |  | <result column="this_water" jdbcType="FLOAT" property="thisWater" /> | 
|---|
|  |  |  | <result column="this_money" jdbcType="FLOAT" property="thisMoney" /> | 
|---|
|  |  |  | <result column="this_duration" jdbcType="INTEGER" property="thisDuration" /> | 
|---|
|  |  |  | </resultMap> | 
|---|
|  |  |  | <sql id="Base_Column_List"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | id, last_history_id, controller_id, intake_id, rtu_addr, op_dt, op_type, op_total_amount, op_ic_card_no, | 
|---|
|  |  |  | op_ic_card_addr, op_remain_money, open_dt, cl_dt, cl_type, cl_total_amount, cl_ic_card_no, | 
|---|
|  |  |  | cl_ic_card_addr, cl_remain_money, cl_this_amount, cl_this_money, cl_this_time, cl_open_dt, | 
|---|
|  |  |  | close_dt | 
|---|
|  |  |  | id, controller_id, intake_id, rtu_addr, op_dt, op_rtu_dt, op_ic_card_addr, op_ic_card_no, | 
|---|
|  |  |  | op_order_no, open_dt, op_water_total_amount, op_ele_total_amount, op_money_remain_user, | 
|---|
|  |  |  | op_water_remain_user, op_type, cl_ic_card_addr, cl_ic_card_no, cl_order_no, start_dt, | 
|---|
|  |  |  | end_dt, cl_water_total_amount, cl_ele_total_amount, cl_money_remain_user, cl_water_remain_user, | 
|---|
|  |  |  | this_ele, this_water, this_money, this_duration | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | 
|---|
|  |  |  | from rm_open_close_valve_last | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | <select id="selectByRtuAddr" parameterType="java.lang.String" resultMap="BaseResultMap"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | select | 
|---|
|  |  |  | <include refid="Base_Column_List" /> | 
|---|
|  |  |  | from rm_open_close_valve_last | 
|---|
|  |  |  | where rtu_addr = #{rtuAddr,jdbcType=VARCHAR} | 
|---|
|  |  |  | </select> | 
|---|
|  |  |  | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | delete from rm_open_close_valve_last | 
|---|
|  |  |  | 
|---|
|  |  |  | </delete> | 
|---|
|  |  |  | <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveLast"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | insert into rm_open_close_valve_last (id, last_history_id, controller_id, intake_id, | 
|---|
|  |  |  | rtu_addr, op_dt, op_type, | 
|---|
|  |  |  | op_total_amount, op_ic_card_no, op_ic_card_addr, | 
|---|
|  |  |  | op_remain_money, open_dt, cl_dt, | 
|---|
|  |  |  | cl_type, cl_total_amount, cl_ic_card_no, | 
|---|
|  |  |  | cl_ic_card_addr, cl_remain_money, cl_this_amount, | 
|---|
|  |  |  | cl_this_money, cl_this_time, cl_open_dt, | 
|---|
|  |  |  | close_dt) | 
|---|
|  |  |  | values (#{id,jdbcType=BIGINT}, #{lastHistoryId,jdbcType=BIGINT}, #{controllerId,jdbcType=BIGINT}, | 
|---|
|  |  |  | #{intakeId,jdbcType=BIGINT}, #{rtuAddr,jdbcType=VARCHAR}, #{opDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | #{opType,jdbcType=TINYINT}, #{opTotalAmount,jdbcType=DOUBLE}, #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{opIcCardAddr,jdbcType=VARCHAR}, #{opRemainMoney,jdbcType=DOUBLE}, #{openDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | #{clDt,jdbcType=TIMESTAMP}, #{clType,jdbcType=TINYINT}, #{clTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | #{clIcCardNo,jdbcType=VARCHAR}, #{clIcCardAddr,jdbcType=VARCHAR}, #{clRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | #{clThisAmount,jdbcType=DOUBLE}, #{clThisMoney,jdbcType=DOUBLE}, #{clThisTime,jdbcType=INTEGER}, | 
|---|
|  |  |  | #{clOpenDt,jdbcType=TIMESTAMP}, #{closeDt,jdbcType=TIMESTAMP}) | 
|---|
|  |  |  | insert into rm_open_close_valve_last (id, controller_id, intake_id, | 
|---|
|  |  |  | rtu_addr, op_dt, op_rtu_dt, | 
|---|
|  |  |  | op_ic_card_addr, op_ic_card_no, op_order_no, | 
|---|
|  |  |  | open_dt, op_water_total_amount, op_ele_total_amount, | 
|---|
|  |  |  | op_money_remain_user, op_water_remain_user, op_type, | 
|---|
|  |  |  | cl_ic_card_addr, cl_ic_card_no, cl_order_no, | 
|---|
|  |  |  | start_dt, end_dt, cl_water_total_amount, | 
|---|
|  |  |  | cl_ele_total_amount, cl_money_remain_user, cl_water_remain_user, | 
|---|
|  |  |  | this_ele, this_water, this_money, | 
|---|
|  |  |  | this_duration) | 
|---|
|  |  |  | values (#{id,jdbcType=BIGINT}, #{controllerId,jdbcType=BIGINT}, #{intakeId,jdbcType=BIGINT}, | 
|---|
|  |  |  | #{rtuAddr,jdbcType=VARCHAR}, #{opDt,jdbcType=TIMESTAMP}, #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | #{opIcCardAddr,jdbcType=VARCHAR}, #{opIcCardNo,jdbcType=VARCHAR}, #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{openDt,jdbcType=TIMESTAMP}, #{opWaterTotalAmount,jdbcType=FLOAT}, #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{opMoneyRemainUser,jdbcType=FLOAT}, #{opWaterRemainUser,jdbcType=FLOAT}, #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{clIcCardAddr,jdbcType=VARCHAR}, #{clIcCardNo,jdbcType=VARCHAR}, #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | #{startDt,jdbcType=TIMESTAMP}, #{endDt,jdbcType=TIMESTAMP}, #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{clEleTotalAmount,jdbcType=FLOAT}, #{clMoneyRemainUser,jdbcType=FLOAT}, #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{thisEle,jdbcType=FLOAT}, #{thisWater,jdbcType=FLOAT}, #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | #{thisDuration,jdbcType=INTEGER}) | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveLast"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | 
|---|
|  |  |  | <trim prefix="(" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | id, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="lastHistoryId != null"> | 
|---|
|  |  |  | last_history_id, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="controllerId != null"> | 
|---|
|  |  |  | controller_id, | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="opDt != null"> | 
|---|
|  |  |  | op_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opTotalAmount != null"> | 
|---|
|  |  |  | op_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no, | 
|---|
|  |  |  | <if test="opRtuDt != null"> | 
|---|
|  |  |  | op_rtu_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardAddr != null"> | 
|---|
|  |  |  | op_ic_card_addr, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opRemainMoney != null"> | 
|---|
|  |  |  | op_remain_money, | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opOrderNo != null"> | 
|---|
|  |  |  | op_order_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="openDt != null"> | 
|---|
|  |  |  | open_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clDt != null"> | 
|---|
|  |  |  | cl_dt, | 
|---|
|  |  |  | <if test="opWaterTotalAmount != null"> | 
|---|
|  |  |  | op_water_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clType != null"> | 
|---|
|  |  |  | cl_type, | 
|---|
|  |  |  | <if test="opEleTotalAmount != null"> | 
|---|
|  |  |  | op_ele_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clTotalAmount != null"> | 
|---|
|  |  |  | cl_total_amount, | 
|---|
|  |  |  | <if test="opMoneyRemainUser != null"> | 
|---|
|  |  |  | op_money_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no, | 
|---|
|  |  |  | <if test="opWaterRemainUser != null"> | 
|---|
|  |  |  | op_water_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardAddr != null"> | 
|---|
|  |  |  | cl_ic_card_addr, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clRemainMoney != null"> | 
|---|
|  |  |  | cl_remain_money, | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisAmount != null"> | 
|---|
|  |  |  | cl_this_amount, | 
|---|
|  |  |  | <if test="clOrderNo != null"> | 
|---|
|  |  |  | cl_order_no, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisMoney != null"> | 
|---|
|  |  |  | cl_this_money, | 
|---|
|  |  |  | <if test="startDt != null"> | 
|---|
|  |  |  | start_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisTime != null"> | 
|---|
|  |  |  | cl_this_time, | 
|---|
|  |  |  | <if test="endDt != null"> | 
|---|
|  |  |  | end_dt, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clOpenDt != null"> | 
|---|
|  |  |  | cl_open_dt, | 
|---|
|  |  |  | <if test="clWaterTotalAmount != null"> | 
|---|
|  |  |  | cl_water_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="closeDt != null"> | 
|---|
|  |  |  | close_dt, | 
|---|
|  |  |  | <if test="clEleTotalAmount != null"> | 
|---|
|  |  |  | cl_ele_total_amount, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clMoneyRemainUser != null"> | 
|---|
|  |  |  | cl_money_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clWaterRemainUser != null"> | 
|---|
|  |  |  | cl_water_remain_user, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisEle != null"> | 
|---|
|  |  |  | this_ele, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisWater != null"> | 
|---|
|  |  |  | this_water, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisMoney != null"> | 
|---|
|  |  |  | this_money, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisDuration != null"> | 
|---|
|  |  |  | this_duration, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | <trim prefix="values (" suffix=")" suffixOverrides=","> | 
|---|
|  |  |  | <if test="id != null"> | 
|---|
|  |  |  | #{id,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="lastHistoryId != null"> | 
|---|
|  |  |  | #{lastHistoryId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="controllerId != null"> | 
|---|
|  |  |  | #{controllerId,jdbcType=BIGINT}, | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="opDt != null"> | 
|---|
|  |  |  | #{opDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | #{opType,jdbcType=TINYINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opTotalAmount != null"> | 
|---|
|  |  |  | #{opTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opRtuDt != null"> | 
|---|
|  |  |  | #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardAddr != null"> | 
|---|
|  |  |  | #{opIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opRemainMoney != null"> | 
|---|
|  |  |  | #{opRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opOrderNo != null"> | 
|---|
|  |  |  | #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="openDt != null"> | 
|---|
|  |  |  | #{openDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clDt != null"> | 
|---|
|  |  |  | #{clDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="opWaterTotalAmount != null"> | 
|---|
|  |  |  | #{opWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clType != null"> | 
|---|
|  |  |  | #{clType,jdbcType=TINYINT}, | 
|---|
|  |  |  | <if test="opEleTotalAmount != null"> | 
|---|
|  |  |  | #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clTotalAmount != null"> | 
|---|
|  |  |  | #{clTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opMoneyRemainUser != null"> | 
|---|
|  |  |  | #{opMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opWaterRemainUser != null"> | 
|---|
|  |  |  | #{opWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardAddr != null"> | 
|---|
|  |  |  | #{clIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clRemainMoney != null"> | 
|---|
|  |  |  | #{clRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisAmount != null"> | 
|---|
|  |  |  | #{clThisAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clOrderNo != null"> | 
|---|
|  |  |  | #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisMoney != null"> | 
|---|
|  |  |  | #{clThisMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="startDt != null"> | 
|---|
|  |  |  | #{startDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisTime != null"> | 
|---|
|  |  |  | #{clThisTime,jdbcType=INTEGER}, | 
|---|
|  |  |  | <if test="endDt != null"> | 
|---|
|  |  |  | #{endDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clOpenDt != null"> | 
|---|
|  |  |  | #{clOpenDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clWaterTotalAmount != null"> | 
|---|
|  |  |  | #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="closeDt != null"> | 
|---|
|  |  |  | #{closeDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clEleTotalAmount != null"> | 
|---|
|  |  |  | #{clEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clMoneyRemainUser != null"> | 
|---|
|  |  |  | #{clMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clWaterRemainUser != null"> | 
|---|
|  |  |  | #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisEle != null"> | 
|---|
|  |  |  | #{thisEle,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisWater != null"> | 
|---|
|  |  |  | #{thisWater,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisMoney != null"> | 
|---|
|  |  |  | #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisDuration != null"> | 
|---|
|  |  |  | #{thisDuration,jdbcType=INTEGER}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </trim> | 
|---|
|  |  |  | </insert> | 
|---|
|  |  |  | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | update rm_open_close_valve_last | 
|---|
|  |  |  | <set> | 
|---|
|  |  |  | <if test="lastHistoryId != null"> | 
|---|
|  |  |  | last_history_id = #{lastHistoryId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="controllerId != null"> | 
|---|
|  |  |  | controller_id = #{controllerId,jdbcType=BIGINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="opDt != null"> | 
|---|
|  |  |  | op_dt = #{opDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type = #{opType,jdbcType=TINYINT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opTotalAmount != null"> | 
|---|
|  |  |  | op_total_amount = #{opTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opRtuDt != null"> | 
|---|
|  |  |  | op_rtu_dt = #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opIcCardAddr != null"> | 
|---|
|  |  |  | op_ic_card_addr = #{opIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opRemainMoney != null"> | 
|---|
|  |  |  | op_remain_money = #{opRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opIcCardNo != null"> | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opOrderNo != null"> | 
|---|
|  |  |  | op_order_no = #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="openDt != null"> | 
|---|
|  |  |  | open_dt = #{openDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clDt != null"> | 
|---|
|  |  |  | cl_dt = #{clDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="opWaterTotalAmount != null"> | 
|---|
|  |  |  | op_water_total_amount = #{opWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clType != null"> | 
|---|
|  |  |  | cl_type = #{clType,jdbcType=TINYINT}, | 
|---|
|  |  |  | <if test="opEleTotalAmount != null"> | 
|---|
|  |  |  | op_ele_total_amount = #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clTotalAmount != null"> | 
|---|
|  |  |  | cl_total_amount = #{clTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="opMoneyRemainUser != null"> | 
|---|
|  |  |  | op_money_remain_user = #{opMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | <if test="opWaterRemainUser != null"> | 
|---|
|  |  |  | op_water_remain_user = #{opWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="opType != null"> | 
|---|
|  |  |  | op_type = #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clIcCardAddr != null"> | 
|---|
|  |  |  | cl_ic_card_addr = #{clIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clRemainMoney != null"> | 
|---|
|  |  |  | cl_remain_money = #{clRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clIcCardNo != null"> | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisAmount != null"> | 
|---|
|  |  |  | cl_this_amount = #{clThisAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="clOrderNo != null"> | 
|---|
|  |  |  | cl_order_no = #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisMoney != null"> | 
|---|
|  |  |  | cl_this_money = #{clThisMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | <if test="startDt != null"> | 
|---|
|  |  |  | start_dt = #{startDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clThisTime != null"> | 
|---|
|  |  |  | cl_this_time = #{clThisTime,jdbcType=INTEGER}, | 
|---|
|  |  |  | <if test="endDt != null"> | 
|---|
|  |  |  | end_dt = #{endDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clOpenDt != null"> | 
|---|
|  |  |  | cl_open_dt = #{clOpenDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clWaterTotalAmount != null"> | 
|---|
|  |  |  | cl_water_total_amount = #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="closeDt != null"> | 
|---|
|  |  |  | close_dt = #{closeDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | <if test="clEleTotalAmount != null"> | 
|---|
|  |  |  | cl_ele_total_amount = #{clEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clMoneyRemainUser != null"> | 
|---|
|  |  |  | cl_money_remain_user = #{clMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="clWaterRemainUser != null"> | 
|---|
|  |  |  | cl_water_remain_user = #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisEle != null"> | 
|---|
|  |  |  | this_ele = #{thisEle,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisWater != null"> | 
|---|
|  |  |  | this_water = #{thisWater,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisMoney != null"> | 
|---|
|  |  |  | this_money = #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="thisDuration != null"> | 
|---|
|  |  |  | this_duration = #{thisDuration,jdbcType=INTEGER}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </set> | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | 
|---|
|  |  |  | <update id="updateByPrimaryKey" parameterType="com.dy.pipIrrGlobal.pojoRm.RmOpenCloseValveLast"> | 
|---|
|  |  |  | <!--@mbg.generated--> | 
|---|
|  |  |  | update rm_open_close_valve_last | 
|---|
|  |  |  | set last_history_id = #{lastHistoryId,jdbcType=BIGINT}, | 
|---|
|  |  |  | controller_id = #{controllerId,jdbcType=BIGINT}, | 
|---|
|  |  |  | set controller_id = #{controllerId,jdbcType=BIGINT}, | 
|---|
|  |  |  | intake_id = #{intakeId,jdbcType=BIGINT}, | 
|---|
|  |  |  | rtu_addr = #{rtuAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_dt = #{opDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | op_type = #{opType,jdbcType=TINYINT}, | 
|---|
|  |  |  | op_total_amount = #{opTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_rtu_dt = #{opRtuDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | op_ic_card_addr = #{opIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_remain_money = #{opRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | op_ic_card_no = #{opIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_order_no = #{opOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | open_dt = #{openDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | cl_dt = #{clDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | cl_type = #{clType,jdbcType=TINYINT}, | 
|---|
|  |  |  | cl_total_amount = #{clTotalAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | op_water_total_amount = #{opWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_ele_total_amount = #{opEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_money_remain_user = #{opMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_water_remain_user = #{opWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | op_type = #{opType,jdbcType=VARCHAR}, | 
|---|
|  |  |  | cl_ic_card_addr = #{clIcCardAddr,jdbcType=VARCHAR}, | 
|---|
|  |  |  | cl_remain_money = #{clRemainMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_this_amount = #{clThisAmount,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_this_money = #{clThisMoney,jdbcType=DOUBLE}, | 
|---|
|  |  |  | cl_this_time = #{clThisTime,jdbcType=INTEGER}, | 
|---|
|  |  |  | cl_open_dt = #{clOpenDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | close_dt = #{closeDt,jdbcType=TIMESTAMP} | 
|---|
|  |  |  | cl_ic_card_no = #{clIcCardNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | cl_order_no = #{clOrderNo,jdbcType=VARCHAR}, | 
|---|
|  |  |  | start_dt = #{startDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | end_dt = #{endDt,jdbcType=TIMESTAMP}, | 
|---|
|  |  |  | cl_water_total_amount = #{clWaterTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | cl_ele_total_amount = #{clEleTotalAmount,jdbcType=FLOAT}, | 
|---|
|  |  |  | cl_money_remain_user = #{clMoneyRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | cl_water_remain_user = #{clWaterRemainUser,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_ele = #{thisEle,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_water = #{thisWater,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_money = #{thisMoney,jdbcType=FLOAT}, | 
|---|
|  |  |  | this_duration = #{thisDuration,jdbcType=INTEGER} | 
|---|
|  |  |  | where id = #{id,jdbcType=BIGINT} | 
|---|
|  |  |  | </update> | 
|---|
|  |  |  | </mapper> | 
|---|
| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.rtuMw.server.rtuData.p206V202404; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.dy.common.mw.protocol.Data; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.DataV202404; | 
|---|
|  |  |  | import com.dy.common.mw.protocol.p206V202404.upVos.DataCd84Vo; | 
|---|
|  |  |  | import com.dy.pipIrrGlobal.pojoPr.PrController; | 
|---|
|  |  |  | import com.dy.rtuMw.server.rtuData.TaskSurpport; | 
|---|
|  |  |  | import com.dy.rtuMw.server.rtuData.dbSv.DbSv; | 
|---|
|  |  |  | import org.apache.logging.log4j.LogManager; | 
|---|
|  |  |  | import org.apache.logging.log4j.Logger; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-06-17 9:36 | 
|---|
|  |  |  | * @LastEditTime 2024-06-17 9:36 | 
|---|
|  |  |  | * @Description 控制器开阀上报(功能码84) | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public class TkDealOpenValveReportV202404 extends TaskSurpport { | 
|---|
|  |  |  | private static final Logger log = LogManager.getLogger(TkDealTimingReportV202404.class.getName()); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | //类ID,一定与Tree.xml配置文件中配置一致 | 
|---|
|  |  |  | public static final String taskId = "TkDealOpenValveReportV202404"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 执行节点任务:开阀上报 | 
|---|
|  |  |  | * | 
|---|
|  |  |  | * @param data 需要处理的数据 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public void execute(Object data) { | 
|---|
|  |  |  | Data d = (Data) data; | 
|---|
|  |  |  | DataV202404 dV202404 = (DataV202404) d.getSubData(); | 
|---|
|  |  |  | Object cdObj = dV202404.subData; | 
|---|
|  |  |  | if (cdObj != null) { | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | Object[] objs = this.getTaskResults(TkPreGenObjsV202404.taskId); | 
|---|
|  |  |  | DbSv sv = (DbSv) objs[0]; | 
|---|
|  |  |  | PrController controller = (PrController) objs[1]; | 
|---|
|  |  |  | if (cdObj instanceof DataCd84Vo) { | 
|---|
|  |  |  | DataCd84Vo cdData = (DataCd84Vo) (cdObj); | 
|---|
|  |  |  | this.doDeal(sv, controller, d.getRtuAddr(), dV202404, (DataCd84Vo)cdObj); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } catch (Exception e) { | 
|---|
|  |  |  | log.error("保存控制器开阀报数据时发生异常", e); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 处理开阀报数据 | 
|---|
|  |  |  | * @param sv 服务 | 
|---|
|  |  |  | * @param controller 控制器对象 | 
|---|
|  |  |  | * @param rtuAddr 控制器地址 | 
|---|
|  |  |  | * @param dataV202404 协议数据 | 
|---|
|  |  |  | * @param cdData 功能数据 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | private void doDeal(DbSv sv, PrController controller, String rtuAddr, DataV202404 dataV202404, DataCd84Vo cdData) throws Exception { | 
|---|
|  |  |  | //this.saveOrUpdateLast(sv, controller, rtuAddr, dataV202404, cdData); | 
|---|
|  |  |  | //this.saveHistory(sv, controller, rtuAddr, dataV202404, cdData); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 保存或更新控制器开阀报最新数据 | 
|---|
|  |  |  | * @param sv 服务bean | 
|---|
|  |  |  | * @param controller 控制器对象 | 
|---|
|  |  |  | * @param rtuAddr 控制器地址 | 
|---|
|  |  |  | * @param dataV202404 协议数据 | 
|---|
|  |  |  | * @param cdData 功能数据 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //private void saveOrUpdateLast(DbSv sv, PrController controller, String rtuAddr, DataV202404 dataV202404, DataCd84Vo cdData)throws Exception { | 
|---|
|  |  |  | //    RmTimingReportLast po = sv.getRmTimingReportLast(rtuAddr) ; | 
|---|
|  |  |  | //    if(po == null){ | 
|---|
|  |  |  | //        po = new RmTimingReportLast(); | 
|---|
|  |  |  | //        po.controllerId = controller==null?null:controller.getId(); | 
|---|
|  |  |  | //        po.intakeId = controller==null?null:controller.getIntakeId(); | 
|---|
|  |  |  | //        po.rtuAddr = rtuAddr; | 
|---|
|  |  |  | //        po.valueFrom(dataV202404, cdData); | 
|---|
|  |  |  | //        sv.saveRmTimingReportLast(po) ; | 
|---|
|  |  |  | //    }else{ | 
|---|
|  |  |  | //        po.controllerId = controller==null?null:controller.getId(); | 
|---|
|  |  |  | //        po.intakeId = controller==null?null:controller.getIntakeId(); | 
|---|
|  |  |  | //        po.valueFrom(dataV202404, cdData); | 
|---|
|  |  |  | //        sv.updateRmTimingReportLast(po); | 
|---|
|  |  |  | //    } | 
|---|
|  |  |  | //} | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * 保存控制器工作报历史数据 | 
|---|
|  |  |  | * @param sv 服务bean | 
|---|
|  |  |  | * @param controller 控制器对象 | 
|---|
|  |  |  | * @param rtuAddr 控制器地址 | 
|---|
|  |  |  | * @param dataV202404 协议数据 | 
|---|
|  |  |  | * @param cdData 功能数据 | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | //private void saveHistory(DbSv sv, PrController controller, String rtuAddr, DataV202404 dataV202404, DataCd84Vo cdData)throws Exception { | 
|---|
|  |  |  | //    RmTimingReportHistory po = new RmTimingReportHistory(); | 
|---|
|  |  |  | //    po.controllerId = controller==null?null:controller.getId(); | 
|---|
|  |  |  | //    po.intakeId = controller==null?null:controller.getIntakeId(); | 
|---|
|  |  |  | //    po.rtuAddr = rtuAddr; | 
|---|
|  |  |  | //    po.valueFrom(dataV202404, cdData); | 
|---|
|  |  |  | //    sv.saveRmTimingReportHistory(po); ; | 
|---|
|  |  |  | //} | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | <task id="TkDealAlarmStatusV202404" name="控制器报警与状态" enable="true" class="com.dy.rtuMw.server.rtuData.p206V202404.TkDealAlarmStatusV202404" /> | 
|---|
|  |  |  | <task id="TkDealWorkingReportV202404" name="控制器工作报(功能码80)" enable="true" class="com.dy.rtuMw.server.rtuData.p206V202404.TkDealWorkingReportV202404" /> | 
|---|
|  |  |  | <task id="TkDealTimingReportV202404" name="控制器定时上报(功能码83)" enable="true" class="com.dy.rtuMw.server.rtuData.p206V202404.TkDealTimingReportV202404" /> | 
|---|
|  |  |  | <task id="TkDealOpenValveReportV202404" name="控制器开阀上报(功能码84)" enable="true" class="com.dy.rtuMw.server.rtuData.p206V202404.TkDealOpenValveReportV202404" /> | 
|---|
|  |  |  | </task> | 
|---|
|  |  |  | <!-- 识别命令响应数据 --> | 
|---|
|  |  |  | <task id="TkFindComResponseV202404" name="识别响应命令数据" enable="true" class="com.dy.rtuMw.server.rtuData.p206V202404.TkFindComResponseV202404"> | 
|---|