自动化立体仓库 - WCS系统
*
lsh
2025-04-24 388353ed9bad250663e8ad8129463d1ea80d46e6
src/main/java/com/zy/asrs/entity/WrkMast.java
@@ -13,13 +13,15 @@
import com.zy.system.service.UserService;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@Data
@TableName("asr_wrk_mast")
@TableName("\"SOURCE\".\"asr_wrk_mast\"")
public class WrkMast implements Serializable {
    private static final long serialVersionUID = 1L;
@@ -308,6 +310,25 @@
    @TableField("full_plt")
    private String fullPlt;
    /**
     * wms任务号
     */
    @ApiModelProperty(value= "wms任务号")
    @TableField("wms_wrk_no")
    private String taskNo;
    /**
     * 结束时间
     */
    @ApiModelProperty(value= "结束时间")
    @TableField("end_time")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    //命令list
    @TableField(exist = false)
    private List<CommandInfo> children;
    public String getWrkSts$(){
        BasWrkStatusMapper mapper = SpringUtils.getBean(BasWrkStatusMapper.class);
        BasWrkStatus entity = mapper.selectById(this.wrkSts);
@@ -484,6 +505,13 @@
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime);
    }
    public String getEndTime$(){
        if (Cools.isEmpty(this.endTime)){
            return "";
        }
        return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.endTime);
    }
    /**
     * 获取持续时间
     */
@@ -493,6 +521,9 @@
        }
        Date endDate = new Date();
        if (!Cools.isEmpty(this.endTime)) {
            endDate = this.endTime;
        }
        //用来获取两个时间相差的毫秒数
        long l = this.ioTime.getTime() - endDate.getTime();