package cn.iocoder.yudao.module.trade.controller.admin.foreign.vo; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.constraints.NotNull; import lombok.Data; import org.springframework.format.annotation.DateTimeFormat; import java.math.BigDecimal; import java.time.LocalDateTime; import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND; @Schema(description = "管理后台 - 外贸订单收汇登记 Request VO") @Data public class TradeForeignReceiveSaveReqVO { @Schema(description = "外贸订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024") @NotNull(message = "外贸订单编号不能为空") private Long orderId; @Schema(description = "外币收款金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "1000.00") @NotNull(message = "外币收款金额不能为空") private BigDecimal foreignAmount; @Schema(description = "结汇汇率", example = "7.20") private BigDecimal exchangeRate; @Schema(description = "收款日期") @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND) private LocalDateTime receiveDate; @Schema(description = "备注", example = "备注") private String remark; }