| New file | 
 |  |  | 
 |  |  | package com.dy.pipIrrGlobal.voUg; | 
 |  |  |  | 
 |  |  | import com.alibaba.fastjson2.annotation.JSONField; | 
 |  |  | import com.alibaba.fastjson2.writer.ObjectWriterImplToString; | 
 |  |  | import com.dy.common.po.BaseEntity; | 
 |  |  | import com.dy.pipIrrGlobal.pojoUg.UgRtuTask; | 
 |  |  | import io.swagger.v3.oas.annotations.media.Schema; | 
 |  |  | import lombok.Data; | 
 |  |  | import org.hibernate.validator.constraints.Length; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @Author: liurunyu | 
 |  |  |  * @Date: 2024/11/7 13:24 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  | @Data | 
 |  |  | @Schema(title = "RTU程序视图对象") | 
 |  |  | public class VoRtuTask implements BaseEntity { | 
 |  |  |  | 
 |  |  |     private static final long serialVersionUID = 202411071357001L; | 
 |  |  |     /** | 
 |  |  |      * 主键 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long id; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 外键,指向升级程序 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "外键,指向升级程序", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     public Long programId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 创建人 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "创建人", requiredMode = Schema.RequiredMode.REQUIRED) | 
 |  |  |     @Length(message = "创建人不大于{max}字,不小于{min}字", min = 1, max = 50) | 
 |  |  |     public String creator; | 
 |  |  |     /** | 
 |  |  |      * 备注 | 
 |  |  |      */ | 
 |  |  |     @Schema(description = "备注", requiredMode = Schema.RequiredMode.NOT_REQUIRED) | 
 |  |  |     @Length(message = "备注不大于{max}字,不小于{min}字", min = 1, max = 100) | 
 |  |  |     public String remark; | 
 |  |  |  | 
 |  |  |     public void toPo(UgRtuTask po){ | 
 |  |  |         po.programId = this.programId ; | 
 |  |  |         po.creator = this.creator ; | 
 |  |  |         po.remark = this.remark ; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |