mrzhssss
2022-01-17 0dd23ce00979f8aa836b19e3c565094665d6fa47
src/main/java/zy/cloud/wms/manager/entity/Item.java
@@ -3,6 +3,7 @@
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.core.common.Cools;
@@ -92,7 +93,7 @@
     * 开始时间
     */
    @ApiModelProperty(value= "开始时间")
    @TableField("start_time")
    @TableField(value = "start_time", strategy = FieldStrategy.IGNORED)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date startTime;
@@ -100,7 +101,7 @@
     * 结束时间
     */
    @ApiModelProperty(value= "结束时间")
    @TableField("end_time")
    @TableField(value = "end_time" ,strategy = FieldStrategy.IGNORED)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
@@ -150,12 +151,12 @@
    private String type;
    @TableField("real_start_time")
    @TableField(value = "real_start_time", strategy = FieldStrategy.IGNORED)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date realStartTime;
    @TableField("real_end_time")
    @TableField(value = "real_end_time", strategy = FieldStrategy.IGNORED)
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date realEndTime;
@@ -297,6 +298,13 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.startTime);
    }
    public String getStartTime0$(){
        if (Cools.isEmpty(this.startTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd").format(this.startTime);
    }
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }
@@ -310,6 +318,12 @@
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime);
    }
    public String getEndTime0$(){
        if (Cools.isEmpty(this.endTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd").format(this.endTime);
    }
    public void setEndTime(Date endTime) {
@@ -400,6 +414,16 @@
        }
    }
    public String getRealStartTime0$(){
        if (!Cools.isEmpty(this.realStartTime)) {
            return new SimpleDateFormat("yyyy-MM-dd").format(this.realStartTime);
        }else {
            return "";
        }
    }
    public String getRealEndTime$(){
        if (!Cools.isEmpty(this.realEndTime)) {
            return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.realEndTime);
@@ -407,6 +431,14 @@
            return "";
        }
    }
    public String getRealEndTime0$(){
        if (!Cools.isEmpty(this.realEndTime)) {
            return new SimpleDateFormat("yyyy-MM-dd").format(this.realEndTime);
        }else {
            return "";
        }
    }
    public String getType$(){
        ProjectTypeService bean = SpringUtils.getBean(ProjectTypeService.class);
        ProjectType id = bean.selectOne(new EntityWrapper<ProjectType>()