From da20b84fb1dbb266939deff9fd52f9a16f4e32fa Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期日, 27 四月 2025 14:59:24 +0800 Subject: [PATCH] #生成入库任务优化 --- rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasDevice.java | 154 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 154 insertions(+), 0 deletions(-) diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasDevice.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasDevice.java new file mode 100644 index 0000000..9dc0d7e --- /dev/null +++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/entity/BasDevice.java @@ -0,0 +1,154 @@ +package com.vincent.rsf.server.manager.entity; + +import java.text.SimpleDateFormat; +import java.util.Date; +import org.springframework.format.annotation.DateTimeFormat; +import java.text.SimpleDateFormat; +import java.util.Date; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableLogic; +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import com.vincent.rsf.framework.common.Cools; +import com.vincent.rsf.framework.common.SpringUtils; +import com.vincent.rsf.server.system.service.UserService; +import com.vincent.rsf.server.system.entity.User; +import java.io.Serializable; +import java.util.Date; + +@Data +@TableName("man_bas_device") +public class BasDevice implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * id + */ + @ApiModelProperty(value= "id") + @TableId(value = "id", type = IdType.AUTO) + private Long id; + + /** + * 璁惧鍙� + */ + @ApiModelProperty(value= "璁惧鍙�") + private Long deviceNo; + + /** + * 鍙叆 + */ + @ApiModelProperty(value= "鍙叆") + private String inEnable; + + /** + * 鍙嚭 + */ + @ApiModelProperty(value= "鍙嚭") + private String outEnable; + + /** + * 鐘舵�� + */ + @ApiModelProperty(value= "鐘舵��") + private String status; + + /** + * 婧愭暟鎹� + */ + @ApiModelProperty(value= "婧愭暟鎹�") + private String origin; + + /** + * 鍒涘缓浜� + */ + @ApiModelProperty(value= "鍒涘缓浜�") + private Long createBy; + + /** + * 鍒涘缓鏃堕棿 + */ + @ApiModelProperty(value= "鍒涘缓鏃堕棿") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + private Date createTime; + + /** + * 鏇存柊浜� + */ + @ApiModelProperty(value= "鏇存柊浜�") + private Long updateBy; + + /** + * 鏇存柊鏃堕棿 + */ + @ApiModelProperty(value= "鏇存柊鏃堕棿") + @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") + private Date updateTime; + + /** + * 澶囨敞 + */ + @ApiModelProperty(value= "澶囨敞") + private String memo; + + public BasDevice() {} + + public BasDevice(Long deviceNo,String inEnable,String outEnable,String status,String origin,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) { + this.deviceNo = deviceNo; + this.inEnable = inEnable; + this.outEnable = outEnable; + this.status = status; + this.origin = origin; + this.createBy = createBy; + this.createTime = createTime; + this.updateBy = updateBy; + this.updateTime = updateTime; + this.memo = memo; + } + +// BasDevice basDevice = new BasDevice( +// null, // 璁惧鍙� +// null, // 鍙叆 +// null, // 鍙嚭 +// null, // 鐘舵�� +// null, // 婧愭暟鎹� +// null, // 鍒涘缓浜� +// null, // 鍒涘缓鏃堕棿 +// null, // 鏇存柊浜� +// null, // 鏇存柊鏃堕棿 +// null // 澶囨敞 +// ); + + public String getCreateTime$(){ + if (Cools.isEmpty(this.createTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.createTime); + } + + public String getUpdateTime$(){ + if (Cools.isEmpty(this.updateTime)){ + return ""; + } + return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.updateTime); + } + + + +// public Boolean getStatusBool(){ +// if (null == this.status){ return null; } +// switch (this.status){ +// case "1": +// return true; +// case "0": +// return false; +// default: +// return null; +// } +// } + +} -- Gitblit v1.9.1