| New file | 
|  |  |  | 
|---|
|  |  |  | package com.dy.pipIrrGlobal.voSe; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
|---|
|  |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import org.springframework.format.annotation.DateTimeFormat; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.util.Date; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | * @author ZhuBaoMin | 
|---|
|  |  |  | * @date 2024-01-31 18:23 | 
|---|
|  |  |  | * @LastEditTime 2024-01-31 18:23 | 
|---|
|  |  |  | * @Description | 
|---|
|  |  |  | */ | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | @Schema(title = "电子钱包消费视图对象") | 
|---|
|  |  |  | public class VoWalletConsume { | 
|---|
|  |  |  | private static final long serialVersionUID = 202401311824001L; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "消费金额") | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double consumption; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Schema(title = "用水时长") | 
|---|
|  |  |  | @JsonFormat(shape = JsonFormat.Shape.NUMBER_FLOAT, pattern="0.00" ) | 
|---|
|  |  |  | private Double duration; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|---|
|  |  |  | @Schema(title = "开阀时间") | 
|---|
|  |  |  | private Date vot; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
|---|
|  |  |  | @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") | 
|---|
|  |  |  | @Schema(title = "关阀时间") | 
|---|
|  |  |  | private Date vct; | 
|---|
|  |  |  | } | 
|---|