package com.dy.pipIrrGlobal.voRm;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
import lombok.Data;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.util.Date;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2024-09-14 17:17
|
* @LastEditTime 2024-09-14 17:17
|
* @Description 消耗视图对象,水卡消耗记录
|
*/
|
@Data
|
@JsonPropertyOrder({"clientName", "clientNum", "cardNum", "intakeName", "rtuAddr", "moneyAmount", "waterAmount", "duration", "operateTime"})
|
public class VoExpend {
|
private static final long serialVersionUID = 202409141721001L;
|
|
/**
|
* 农户姓名
|
*/
|
private String clientName;
|
|
/**
|
* 农户编号
|
*/
|
private String clientNum;
|
|
/**
|
* 水卡编号
|
*/
|
@JSONField(serializeUsing= ObjectWriterImplToString.class)
|
private Long cardNum;
|
|
/**
|
* 取水口编号
|
*/
|
private String intakeName;
|
|
/**
|
* 阀控器地址
|
*/
|
private String rtuAddr;
|
|
/**
|
* 本次花费金额
|
*/
|
private Float moneyAmount;
|
|
/**
|
* 本次用水量
|
*/
|
private Float waterAmount;
|
|
/**
|
* 本次用水时长
|
*/
|
private Integer duration;
|
|
/**
|
* 操作时间
|
*/
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date operateTime;
|
}
|