| package com.dy.pipIrrProject.flowMonitoring; | 
|   | 
| import com.alibaba.fastjson2.annotation.JSONField; | 
| import com.alibaba.fastjson2.writer.ObjectWriterImplToString; | 
| import io.swagger.v3.oas.annotations.media.Schema; | 
| import jakarta.validation.constraints.NotNull; | 
| import jakarta.validation.constraints.Positive; | 
| import lombok.Data; | 
| import org.hibernate.validator.constraints.Length; | 
|   | 
| /** | 
|  * @author ZhuBaoMin | 
|  * @date 2024-01-05 10:36 | 
|  * @LastEditTime 2024-01-05 10:36 | 
|  * @Description 流量监测站、流量计绑定传入对象 | 
|  */ | 
|   | 
| @Data | 
| @Schema(name = "流量监测站、流量计绑定传入对象") | 
| public class DtoMoniFlow { | 
|     public static final long serialVersionUID = 1L; | 
|   | 
|     /** | 
|      * 监测站编号 | 
|      */ | 
|     @Schema(description = "监测站编号", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "监测站ID不能为空") | 
|     private Long monitoringId; | 
|   | 
|     /** | 
|      * 流量计编号 | 
|      */ | 
|     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
|     @Schema(description = "流量计编号", requiredMode = Schema.RequiredMode.REQUIRED) | 
|     @NotNull(message = "流量计ID不能为空") | 
|     private Long flowmeterId; | 
|   | 
|     /** | 
|      * 备注信息 | 
|      */ | 
|     @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Length(message = "备注长度小于{max}字", min = 1, max = 200) | 
|     private String remarks; | 
|   | 
|     /** | 
|      * 操作人编号 | 
|      */ | 
|     @Schema(description = "操作人编号", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
|     @Positive(message = "操作人编号必须为大于0的整数") | 
|     @NotNull(message = "操作人编号不能为空") | 
|     private Long operator; | 
| } |