| | |
| | | import com.baomidou.mybatisplus.annotation.IdType; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.DataV1_0_1; |
| | | import com.dy.common.mw.protocol.p206V1_0_0.upVos.DataCd83OpenVo; |
| | | import com.dy.common.po.BaseEntity; |
| | | import com.dy.common.util.DateTime; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import lombok.*; |
| | |
| | | @Schema(description = "关阀时控制器时钟", requiredMode = Schema.RequiredMode.NOT_REQUIRED) |
| | | public Date closeDt; |
| | | |
| | | public void valueFrom(DataV1_0_1 dV1_0_1, DataCd83OpenVo dataCd83OpenVo)throws Exception { |
| | | this.opDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dV1_0_1.dt) ; |
| | | this.opType = dataCd83OpenVo.type ; |
| | | this.opTotalAmount = dataCd83OpenVo.totalAmount ; |
| | | this.opIcCardNo = dataCd83OpenVo.icCardNo ; |
| | | this.opIcCardAddr = dataCd83OpenVo.icCardAddr ; |
| | | this.opRemainMoney = dataCd83OpenVo.remainMoney ; |
| | | this.openDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dataCd83OpenVo.openDt) ; |
| | | this.clDt = null ; |
| | | this.clType = null ; |
| | | this.clTotalAmount = null ; |
| | | this.clIcCardNo = null ; |
| | | this.clIcCardAddr = null ; |
| | | this.clRemainMoney = null ; |
| | | this.clThisAmount = null ; |
| | | this.clThisMoney = null ; |
| | | this.clThisTime = null ; |
| | | this.clOpenDt = null ; |
| | | this.closeDt = null ; |
| | | } |
| | | |
| | | public void updateFrom(DataV1_0_1 dV1_0_1, DataCd83OpenVo dataCd83OpenVo, boolean clearCloseValve)throws Exception { |
| | | this.opDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dV1_0_1.dt) ; |
| | | this.opType = dataCd83OpenVo.type ; |
| | | this.opTotalAmount = dataCd83OpenVo.totalAmount ; |
| | | this.opIcCardNo = dataCd83OpenVo.icCardNo ; |
| | | this.opIcCardAddr = dataCd83OpenVo.icCardAddr ; |
| | | this.opRemainMoney = dataCd83OpenVo.remainMoney ; |
| | | this.openDt = DateTime.dateFrom_yyyy_MM_dd_HH_mm_ss(dataCd83OpenVo.openDt) ; |
| | | if(clearCloseValve){ |
| | | this.clDt = null ; |
| | | this.clType = null ; |
| | | this.clTotalAmount = null ; |
| | | this.clIcCardNo = null ; |
| | | this.clIcCardAddr = null ; |
| | | this.clRemainMoney = null ; |
| | | this.clThisAmount = null ; |
| | | this.clThisMoney = null ; |
| | | this.clThisTime = null ; |
| | | this.clOpenDt = null ; |
| | | this.closeDt = null ; |
| | | } |
| | | } |
| | | } |