doum
2025-09-12 5e5a317f936e4e333809298930fb771fc0bdc9ac
server/visits/dmvisit_service/src/main/java/com/doumee/dao/business/model/PlatformJob.java
@@ -32,7 +32,7 @@
    private Integer creator;
    @ApiModelProperty(value = "创建时间")
    @ExcelColumn(name="创建时间",index = 7, dateFormat = "yyyy-MM-dd hh:mm:ss")
    @ExcelColumn(name="创建时间",index = 12, dateFormat = "yyyy-MM-dd hh:mm:ss",width = 10)
    private Date createDate;
    @ApiModelProperty(value = "更新人编码", example = "1")
@@ -43,6 +43,8 @@
    @ApiModelProperty(value = "是否删除0否 1是", example = "1")
    private Integer isdeleted;
    @ApiModelProperty(value = "作业来源:0自建 1wms推送", example = "1")
    private Integer origin;
    @ApiModelProperty(value = "名称")
    private String name;
@@ -51,7 +53,7 @@
    private String remark;
    @ApiModelProperty(value = "状态 0待确认 1待签到 2等待叫号 3入园等待 4已叫号 5作业中 6作业完成 7转移中 8异常挂起 9已授权离园 10已离园 11 已过号  12取消(WMS)" , example = "1")
    @ExcelColumn(name="状态",index = 8, valueMapping = "0:待确认;1:待签到;2:等待叫号;3:入园等待;4:已叫号;5:作业中;6:作业完成;7:转移中;8:异常挂起;9:已授权离园;10:已离园;11:已过号;12:取消(WMS);")
    @ExcelColumn(name="状态",index =13,width = 6, valueMapping = "0=待确认;1=待签到;2=等待叫号;3=入园等待;4=已叫号;5=作业中;6=作业完成;7=转移中;8=异常挂起;9=已授权离园;10=已离园;11=已过号;12=取消(WMS);")
    private Integer status;
    @ApiModelProperty(value = "车辆进入状态 0不在 1进入 " , example = "1")
@@ -64,24 +66,25 @@
    private String code;
    @ApiModelProperty(value = "作业唯一标识(承运单号)")
    @ExcelColumn(name="运单号",index = 0)
    @ExcelColumn(name="运单号",index = 0,width = 5)
    private String billCode;
    @ApiModelProperty(value = "司机编码", example = "1")
    private Integer driverId;
    @ApiModelProperty(value = "司机姓名")
    @ExcelColumn(name="司机姓名",index = 4)
    @ExcelColumn(name="司机姓名",index = 4,width = 6)
    private String driverName;
    @ApiModelProperty(value = "车牌号")
    private String plateNum;
    @ApiModelProperty(value = "司机手机号")
    @ExcelColumn(name="司机电话",index = 5)
    @ExcelColumn(name="司机电话",index = 5,width = 8)
    private String drivierPhone;
    @ApiModelProperty(value = "签到时间")
    @ExcelColumn(name="签到时间",index =7,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10)
    private Date signDate;
    @ApiModelProperty(value = "签到方式 0app签到 1扫码签到 2后台签到", example = "1")
@@ -106,6 +109,7 @@
    private BigDecimal signDistance;
    @ApiModelProperty(value = "作业月台名称集合,多个使用英文逗号隔开")
    @ExcelColumn(name="作业月台名称",index =17 ,width = 8)
    private String platformNames;
    @ApiModelProperty(value = "作业月台编码集合,多个使用英文逗号隔开")
@@ -124,6 +128,7 @@
    private Integer inwaitUserId;
    @ApiModelProperty(value = "叫号时间")
    @ExcelColumn(name="叫号时间",index =8 ,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10)
    private Date callDate;
    @ApiModelProperty(value = "叫号人编码", example = "1")
@@ -133,9 +138,11 @@
    private String callInfo;
    @ApiModelProperty(value = "开始作业时间")
    @ExcelColumn(name="开始作业时间",index =9 ,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10)
    private Date startDate;
    @ApiModelProperty(value = "作业完成时间(最终时间)")
    @ExcelColumn(name="作业完成时间",index =10 ,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10)
    private Date doneDate;
    @ApiModelProperty(value = "异常挂起时间")
@@ -189,14 +196,15 @@
    private Date inHkdate;
    @ApiModelProperty(value = "作业类型 0自有车卸货 1自有车装货 2外协车卸货 3外协车装货 4市公司外协车卸货", example = "1")
    @ExcelColumn(name="作业类型",index = 6,valueMapping = "0=自有车卸货;1=自有车装货;2=外协车卸货;3=外协车装货;4=市公司外协车卸货")
    @ExcelColumn(name="作业类型",index = 15,width = 6,valueMapping = "0=自有车卸货;1=自有车装货;2=外协车卸货;3=外协车装货;4=市公司外协车卸货")
    private Integer type;
    @ApiModelProperty(value = "前车牌号")
    @ExcelColumn(name="前车牌号",index = 2)
    @ExcelColumn(name="前车牌号",index = 2,width = 5)
    private String carCodeFront;
    @ApiModelProperty(value = "后车牌号")
    @ExcelColumn(name="后车牌号",index =3 ,width = 5)
    private String carCodeBack;
    @ApiModelProperty(value = "司机所属部门编码", example = "1")
@@ -227,13 +235,29 @@
    private Integer inType;
    @ApiModelProperty(value = "总运输量", example = "1")
    @ExcelColumn(name="总作业量(万支)",index = 1,width = 5)
    private BigDecimal totalNum;
    @ApiModelProperty(value = "确认任务时间")
    @ExcelColumn(name="确认时间",index =6 ,dateFormat = "yyyy-MM-dd HH:mm:ss",width = 10)
    private Date confirmTaskDate;
    @ApiModelProperty(value = "签到序号", example = "1")
    private Integer signNum;
    @ApiModelProperty(value = "是否标记虚拟月台组 0否 1是", example = "1")
    private Integer  tagVirtual;
    @ApiModelProperty(value = "标记虚拟月台组时间", example = "1")
    private Date  tagVirtualTime;
    @ApiModelProperty(value = "标记虚拟月台组人员编码", example = "1")
    private Integer  tagVirtualUser;
    @ApiModelProperty(value = "叫号方式  0手动叫号 1自动叫号", example = "1")
    private Integer  callWay;
    @ApiModelProperty(value = "加急时间", example = "1")
    private Date urgeTime;
    @ApiModelProperty(value = "加急人员编码", example = "1")
    private Integer   urgeUser;
    @ApiModelProperty(value = "最新叫号时间")
    @TableField(exist = false)
@@ -247,6 +271,11 @@
    @TableField(exist = false)
    private Integer lineUpNum;
    @ApiModelProperty(value = "wms运输量", example = "1")
    @TableField(exist = false)
    private BigDecimal ioQty;
    @ApiModelProperty(value = "预计等待时间", example = "1")
    @TableField(exist = false)
    private String waitTime;
@@ -255,6 +284,10 @@
    @TableField(exist = false)
    private String finishTimeStr;
    @ApiModelProperty(value = "作业月台编码")
    @TableField(exist = false)
    private String platformCode;
    @ApiModelProperty(value = "作业月台名称")
    @TableField(exist = false)
    private String platformName ;
@@ -262,22 +295,34 @@
    @TableField(exist = false)
    private String ledContent ;
    @ApiModelProperty(value = "是否超时:0=是;1=否", example = "1")
    @ApiModelProperty(value = "是否超时:1=是;0=否", example = "1")
    @TableField(exist = false)
    private Integer isTimeOut;
    @ApiModelProperty(value = "作业量" ,hidden = true)
    @TableField(exist = false)
    private BigDecimal workNum ;
    @ApiModelProperty(value = "统计量" ,hidden = true)
    @TableField(exist = false)
    private Integer countum ;
    @ApiModelProperty(value = "入园原因主键")
    @TableField(exist = false)
    private Integer reasonId ;
    @ApiModelProperty(value = "WMS任务时间")
    @TableField(exist = false)
    @ExcelColumn(name="WMS创建时间",index =18,width = 10)
    private String ioCreatedate;
    @ApiModelProperty(value = "离场下发操作人名称", example = "1")
    @TableField(exist = false)
    private String outUserName;
    @ApiModelProperty(value = "最后操作人名称", example = "1")
    @ExcelColumn(name="最后操作人名称",index = 15,width = 12)
    @TableField(exist = false)
    private String editUserName;
    @ApiModelProperty(value = "wms业务主键")
    @TableField(exist = false)
@@ -288,9 +333,10 @@
    private Integer groupType ;
    @ApiModelProperty(value = "承运商")
    @ExcelColumn(name="运输公司",index = 3)
    @ExcelColumn(name="运输公司",index = 16,width = 10)
    @TableField(exist = false)
    private String carrierName ;
    @ApiModelProperty(value = "距离签到点距离")
    @TableField(exist = false)
@@ -307,6 +353,10 @@
    @ApiModelProperty(value = "已作业时间")
    @TableField(exist = false)
    private Long workTime;
    @ApiModelProperty(value = "作业时长")
    @TableField(exist = false)
    @ExcelColumn(name="作业时长",index =11 ,width = 6)
    private String workTimeStr;
    @ApiModelProperty(value = "WMS任务信息")
    @TableField(exist = false)
@@ -327,10 +377,24 @@
    @TableField(exist = false)
    private Integer jobType;
    @ApiModelProperty(value = "状态 0待确认 1待签到 2等待叫号 3入园等待 4已叫号 5作业中 6作业完成 7转移中 8异常挂起 9已授权离园 10已离园 11 已过号  12取消(WMS)", example = "1")
    @TableField(exist = false)
    private Integer jobStatus;
    @ApiModelProperty(value = "开始作业时间起")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date beginWorkDateStart;
    @ApiModelProperty(value = "开始时间起")
//    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private Date createDateStart;
    @ApiModelProperty(value = "开始时间止")
    @TableField(exist = false)
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createDateEnd;
    @ApiModelProperty(value = "开始作业时间止")
    @JsonFormat(pattern = "yyyy-MM-dd")
@@ -347,17 +411,9 @@
    @TableField(exist = false)
    private Date beginDoneDateEnd;
    @ApiModelProperty(value = "创建时间起")
    @TableField(exist = false)
    private Date createDateStart;
    @ApiModelProperty(value = "创建时间止")
    @TableField(exist = false)
    private Date createDateEnd;
    @ApiModelProperty(value = "月台组名称")
    @TableField(exist = false)
    @ExcelColumn(name="作业月台组",index =22,width = 10)
    private String platformGroupName ;
    @ApiModelProperty(value = "月台工作时长" ,hidden = true)
@@ -372,19 +428,21 @@
    @TableField(exist = false)
    private String queryStatus;
    @ApiModelProperty(value = "多状态查询 多个以,分割")
    @TableField(exist = false)
    private String queryStatusForPower;
    @ApiModelProperty(value = "任务来源")
    @ExcelColumn(name="任务来源",index = 1,valueMapping = "0=WMS获取;1=自主预约;")
    @ExcelColumn(name="任务来源",index =14,valueMapping = "0=WMS获取;1=自主预约;")
    @TableField(exist = false)
    private Integer jobForm;
    @ApiModelProperty(value = "作业类型查询 多个以,分割")
    @TableField(exist = false)
    private String queryType;
    @ApiModelProperty(value = "wms合同号")
    @TableField(exist = false)
    private String wmsContractNum;
    @ApiModelProperty(value = "电子锁状态:0=未上锁 1=部分上锁 2=全部上锁")
    @TableField(exist = false)
@@ -395,20 +453,24 @@
    private Integer worktimeOutAlarmTime;
    public void dealTime(){
        if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WAIT_CONFIRM.getKey())
                || Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WART_SIGN_IN.getKey())
         ){
                || Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WART_SIGN_IN.getKey()) ){
            return;
        }
        if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WAIT_CALL.getKey())){
            this.setOptTime(this.getSignDate().getTime());
            if(this.getSignDate()!=null)
                this.setOptTime(this.getSignDate().getTime());
        }else if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.IN_WAIT.getKey())){
            this.setOptTime(this.getInwaitDate().getTime());
            if(this.getInwaitDate()!=null)
                this.setOptTime(this.getInwaitDate().getTime());
        }else if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.CALLED.getKey())){
            this.setOptTime(this.getCallDate().getTime());
            if(this.getCallDate()!=null)
                this.setOptTime(this.getCallDate().getTime());
        }else if(Constants.equalsInteger(this.getStatus(),Constants.PlatformJobStatus.WORKING.getKey())){
            this.setOptTime(this.getStartDate().getTime());
            if(this.getStartDate()!=null)
                this.setOptTime(this.getStartDate().getTime());
        }
    }