package com.dy.pipIrrSell.cardOperate.dto;
|
|
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 2024-01-19 20:43
|
* @LastEditTime 2024-01-19 20:43
|
* @Description
|
*/
|
|
@Data
|
@Builder
|
@ToString
|
@NoArgsConstructor
|
@AllArgsConstructor
|
@Schema(name = "补卡传入对象")
|
public class DtoReissue {
|
public static final long serialVersionUID = 202401192044001L;
|
/**
|
* 水卡地址,仅保存,无业务
|
*/
|
@Schema(description = "水卡地址", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@NotBlank(message = "水卡地址不能为空")
|
private String cardAddr;
|
|
///**
|
// * 农户编号,开卡使用
|
// */
|
//@Schema(description = "农户编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
//private String clientNum;
|
|
/**
|
* 农户ID(主键),不是开卡接口传入,由农户编号获得,保存开卡记录和充值记录都需要
|
*/
|
//@Schema(description = "农户ID", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
//private Long clientId;
|
|
/**
|
* 水卡编号,不是开卡接口传入,由农户编号获得,充值需要
|
*/
|
@Schema(description = "水卡编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private String cardNum;
|
|
/**
|
* 金额
|
*/
|
@Schema(description = "金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Min(value = 0, message="金额不能小于0")
|
private Float money;
|
|
/**
|
* 卡片费用
|
*/
|
@Schema(description = "卡片费用", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "卡片费用必须为大于0的整数")
|
private Integer cardCost;
|
|
/**
|
* 补卡金额,开卡时充值用
|
*/
|
//@Schema(description = "补卡金额", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
//@Min(value = 0, message="补卡金额不能小于0")
|
//private Float reissueAmount;
|
|
/**
|
* 支付方式编号
|
*/
|
@Schema(description = "支付方式编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "支付方式编号必须为大于0的整数")
|
private Long paymentId;
|
|
/**
|
* 备注信息
|
*/
|
@Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
private String remarks;
|
|
/**
|
* 操作人编号
|
*/
|
@Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED)
|
@Positive(message = "操作人编号必须为大于0的整数")
|
private Long operator;
|
}
|