package com.dy.pipIrrSell.reversal;
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.Min;
|
import jakarta.validation.constraints.NotBlank;
|
import jakarta.validation.constraints.Positive;
|
import lombok.*;
|
|
/**
|
* @author ZhuBaoMin
|
* @date 2023/12/11 9:36
|
* @LastEditTime 2023/12/11 9:36
|
* @Description
|
*/
|
|
@Data
|
@Builder
|
@ToString
|
@NoArgsConstructor
|
@AllArgsConstructor
|
@Schema(name = "冲正传入对象")
|
public class DtoReversal {
|
public static final long serialVersionUID = 1L;
|
|
/**
|
* 水卡编号
|
*/
|
@Schema(description = "水卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@NotBlank
|
private String cardNum;
|
|
/**
|
* 农户编号
|
*/
|
@Schema(description = "农户编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private String clientNum;
|
|
/**
|
* 卡片余额
|
*/
|
@Schema(description = "卡片余额", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Min(value = 0, message="卡片余额不能小于0")
|
private Float cardBalance;
|
|
/**
|
* 系统余额
|
*/
|
@Schema(description = "系统余额", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Min(value = 0, message="系统余额不能小于0")
|
private Float systemBalance;
|
|
/**
|
* 备注信息
|
*/
|
@Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private String remarks;
|
|
/**
|
* 操作人编号
|
*/
|
@Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "操作人编号必须为大于0的整数")
|
private Long operator;
|
}
|