|  |  | 
 |  |  | package com.dy.pipIrrGlobal.pojoRm; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author ZhuBaoMin | 
 |  |  |  * @date 2024-05-24 10:46 | 
 |  |  | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableId; | 
 |  |  | import com.baomidou.mybatisplus.annotation.TableName; | 
 |  |  | import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler; | 
 |  |  | import com.dy.common.po.BaseEntity; | 
 |  |  | import com.fasterxml.jackson.annotation.JsonFormat; | 
 |  |  | import jakarta.validation.constraints.NotBlank; | 
 |  |  | import jakarta.validation.constraints.NotNull; | 
 |  |  | import lombok.*; | 
 |  |  | 
 |  |  | import java.util.Date; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |     * 命令日志表 | 
 |  |  |     */ | 
 |  |  |  * 命令日志表 | 
 |  |  |  */ | 
 |  |  | @TableName(value = "rm_command_history", autoResultMap = true) | 
 |  |  | @Data | 
 |  |  | @Builder | 
 |  |  | @ToString | 
 |  |  | @NoArgsConstructor | 
 |  |  | @AllArgsConstructor | 
 |  |  | public class RmCommandHistory { | 
 |  |  | public class RmCommandHistory implements BaseEntity { | 
 |  |  |     public static final long serialVersionUID = 202401151517005L; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |      */ | 
 |  |  |     @JSONField(serializeUsing = ObjectWriterImplToString.class) | 
 |  |  |     @TableId(type = IdType.INPUT) | 
 |  |  |     private Long id; | 
 |  |  |     private Long comId; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  |      * 功能码 | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 取水口ID | 
 |  |  |      */ | 
 |  |  |     @JSONField(serializeUsing= ObjectWriterImplToString.class) | 
 |  |  |     @NotNull(message = "取水口ID不能为空") | 
 |  |  |     private Long intakeId; | 
 |  |  |  | 
 |  |  | 
 |  |  |      * 发送命令时间 | 
 |  |  |      */ | 
 |  |  |     @NotNull(message = "发送命令时间不能为空") | 
 |  |  |     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") | 
 |  |  |     private Date sendTime; | 
 |  |  |  | 
 |  |  |     /** | 
 |  |  | 
 |  |  |     /** | 
 |  |  |      * 命令结果内容 | 
 |  |  |      */ | 
 |  |  |     @TableField(typeHandler = JacksonTypeHandler.class) | 
 |  |  |     private JSONObject resultText; | 
 |  |  |     private String resultText; | 
 |  |  |  | 
 |  |  | } |