| | |
| | | package com.zy.asrs.entity; |
| | | |
| | | import com.baomidou.mybatisplus.annotations.TableId; |
| | | import com.baomidou.mybatisplus.enums.IdType; |
| | | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| | | import com.core.common.Cools;import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.WrkMastService; |
| | | import com.zy.asrs.service.*; |
| | | import com.zy.asrs.entity.WrkMast; |
| | | import com.baomidou.mybatisplus.annotations.TableField; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWrkStatusService; |
| | | import com.zy.asrs.entity.BasWrkStatus; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWrkIotypeService; |
| | | import com.zy.asrs.entity.BasWrkIotype; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasCrnpService; |
| | | import com.zy.asrs.entity.BasCrnp; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.LocMastService; |
| | | import com.zy.asrs.entity.LocMast; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasDevpService; |
| | | import com.zy.asrs.entity.BasDevp; |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasDevpService; |
| | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | // @TableId(value = "id", type = IdType.AUTO) |
| | | private Long id; |
| | | |
| | | /** |
| | | * 任务类型: agv , crn |
| | | */ |
| | | @ApiModelProperty(value= "任务类型: agv , crn") |
| | | @TableField("task_type") |
| | | private String taskType; |
| | | |
| | | /** |
| | | * 工作号 |
| | |
| | | private Integer wrkNo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("log_id") |
| | | private Long logId; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("inv_wh") |
| | | private String invWh; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date ymd; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | */ |
| | | @ApiModelProperty(value= "工作状态") |
| | | @TableField("wrk_sts") |
| | | private Integer wrkSts; |
| | | private Long wrkSts; |
| | | |
| | | /** |
| | | * 入出库类型 |
| | |
| | | private Integer ioType; |
| | | |
| | | /** |
| | | * 堆垛机号 |
| | | * 堆垛机 |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机号") |
| | | @ApiModelProperty(value= "堆垛机") |
| | | @TableField("crn_no") |
| | | private Integer crnNo; |
| | | |
| | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("wrk_date") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date wrkDate; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "目标站") |
| | | @TableField("sta_no") |
| | | private Integer staNo; |
| | | private String staNo; |
| | | |
| | | /** |
| | | * 源站 |
| | | */ |
| | | @ApiModelProperty(value= "源站") |
| | | @TableField("source_sta_no") |
| | | private Integer sourceStaNo; |
| | | private String sourceStaNo; |
| | | |
| | | /** |
| | | * 源库位 |
| | |
| | | private String locSts; |
| | | |
| | | /** |
| | | * 拣料(checkBox) |
| | | * 拣料 |
| | | */ |
| | | @ApiModelProperty(value= "拣料(checkBox)") |
| | | @ApiModelProperty(value= "拣料") |
| | | private String picking; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | private String updMk; |
| | | |
| | | /** |
| | | * 退出(checkBox) |
| | | * 退出 |
| | | */ |
| | | @ApiModelProperty(value= "退出(checkBox)") |
| | | @ApiModelProperty(value= "退出") |
| | | @TableField("exit_mk") |
| | | private String exitMk; |
| | | |
| | |
| | | private Integer pltType; |
| | | |
| | | /** |
| | | * 空板(checkBox) |
| | | * 空板 |
| | | */ |
| | | @ApiModelProperty(value= "空板(checkBox)") |
| | | @ApiModelProperty(value= "空板") |
| | | @TableField("empty_mk") |
| | | private String emptyMk; |
| | | |
| | |
| | | */ |
| | | @ApiModelProperty(value= "工作时间") |
| | | @TableField("io_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date ioTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机启动时间") |
| | | @TableField("crn_str_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date crnStrTime; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "堆垛机停止时间") |
| | | @TableField("crn_end_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date crnEndTime; |
| | | |
| | | /** |
| | | * 拣料时间 |
| | | */ |
| | | @ApiModelProperty(value= "拣料时间") |
| | | @ApiModelProperty(value= "") |
| | | @TableField("plc_str_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date plcStrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("crn_pos_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date crnPosTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | @TableField("ref_wrkno") |
| | | private Double refWrkno; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | /** |
| | | * 拣料时间 |
| | | */ |
| | | @ApiModelProperty(value= "拣料时间") |
| | | @TableField("ref_iotime") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date refIotime; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "修改时间") |
| | | @TableField("modi_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date modiTime; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @ApiModelProperty(value= "添加时间") |
| | | @TableField("appe_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date appeTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("error_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date errorTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | @TableField("manu_type") |
| | | private String manuType; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("memo_m") |
| | | private String memoM; |
| | | /** |
| | | * 备注 |
| | | */ |
| | | @ApiModelProperty(value= "备注") |
| | | private String memo; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("sc_weight") |
| | |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("log_err_time") |
| | | @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss") |
| | | private Date logErrTime; |
| | | |
| | | @ApiModelProperty(value= "") |
| | |
| | | @ApiModelProperty(value= "条码") |
| | | private String barcode; |
| | | |
| | | // Y:销售订单出库任务 |
| | | @ApiModelProperty(value= "") |
| | | @TableField("Pdc_type") |
| | | private String PdcType; |
| | |
| | | private String ctnNo; |
| | | |
| | | /** |
| | | * 满板(checkBox) |
| | | * 满板 |
| | | */ |
| | | @ApiModelProperty(value= "满板(checkBox)") |
| | | @ApiModelProperty(value= "满板") |
| | | @TableField("full_plt") |
| | | private String fullPlt; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | /** |
| | | * 先入品 / 双重入库 |
| | | */ |
| | | @ApiModelProperty(value= "先入品") |
| | | @TableField("pre_have") |
| | | private String preHave; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | /** |
| | | * 空操作 / 取货无箱 |
| | | */ |
| | | @ApiModelProperty(value= "空操作") |
| | | @TableField("take_none") |
| | | private String takeNone; |
| | | |
| | | @ApiModelProperty(value= "") |
| | | @TableField("line_number") |
| | | private Long lineNumber; |
| | | /** |
| | | * 外部任务编号 |
| | | */ |
| | | @ApiModelProperty(value= "外部任务编号") |
| | | @TableField("task_no") |
| | | private String taskNo; |
| | | |
| | | public TaskLog() {} |
| | | |
| | | public TaskLog(Long id,Integer wrkNo,Long logId,String invWh,Date ymd,String mk,Integer whsType,Integer wrkSts,Integer ioType,Integer crnNo,String sheetNo,Double ioPri,Date wrkDate,String locNo,Integer staNo,Integer sourceStaNo,String sourceLocNo,String locSts,String picking,String linkMis,String onlineYn,String updMk,String exitMk,Integer pltType,String emptyMk,Date ioTime,Integer ctnType,String packed,String oveMk,Double mtnType,String userNo,Date crnStrTime,Date crnEndTime,Date plcStrTime,Date crnPosTime,Double loadTime,Double expTime,Double refWrkno,Date refIotime,Long modiUser,Date modiTime,Long appeUser,Date appeTime,String pauseMk,Date errorTime,String errorMemo,Integer ctnKind,String manuType,String memoM,Double scWeight,String logMk,Date logErrTime,String logErrMemo,String barcode,String PdcType,String ctnNo,String fullPlt,String preHave,String takeNone,Long lineNumber) { |
| | | this.id = id; |
| | | this.wrkNo = wrkNo; |
| | | this.logId = logId; |
| | | this.invWh = invWh; |
| | | this.ymd = ymd; |
| | | this.mk = mk; |
| | | this.whsType = whsType; |
| | | this.wrkSts = wrkSts; |
| | | this.ioType = ioType; |
| | | this.crnNo = crnNo; |
| | | this.sheetNo = sheetNo; |
| | | this.ioPri = ioPri; |
| | | this.wrkDate = wrkDate; |
| | | this.locNo = locNo; |
| | | this.staNo = staNo; |
| | | this.sourceStaNo = sourceStaNo; |
| | | this.sourceLocNo = sourceLocNo; |
| | | this.locSts = locSts; |
| | | this.picking = picking; |
| | | this.linkMis = linkMis; |
| | | this.onlineYn = onlineYn; |
| | | this.updMk = updMk; |
| | | this.exitMk = exitMk; |
| | | this.pltType = pltType; |
| | | this.emptyMk = emptyMk; |
| | | this.ioTime = ioTime; |
| | | this.ctnType = ctnType; |
| | | this.packed = packed; |
| | | this.oveMk = oveMk; |
| | | this.mtnType = mtnType; |
| | | this.userNo = userNo; |
| | | this.crnStrTime = crnStrTime; |
| | | this.crnEndTime = crnEndTime; |
| | | this.plcStrTime = plcStrTime; |
| | | this.crnPosTime = crnPosTime; |
| | | this.loadTime = loadTime; |
| | | this.expTime = expTime; |
| | | this.refWrkno = refWrkno; |
| | | this.refIotime = refIotime; |
| | | this.modiUser = modiUser; |
| | | this.modiTime = modiTime; |
| | | this.appeUser = appeUser; |
| | | this.appeTime = appeTime; |
| | | this.pauseMk = pauseMk; |
| | | this.errorTime = errorTime; |
| | | this.errorMemo = errorMemo; |
| | | this.ctnKind = ctnKind; |
| | | this.manuType = manuType; |
| | | this.memoM = memoM; |
| | | this.scWeight = scWeight; |
| | | this.logMk = logMk; |
| | | this.logErrTime = logErrTime; |
| | | this.logErrMemo = logErrMemo; |
| | | this.barcode = barcode; |
| | | this.PdcType = PdcType; |
| | | this.ctnNo = ctnNo; |
| | | this.fullPlt = fullPlt; |
| | | this.preHave = preHave; |
| | | this.takeNone = takeNone; |
| | | this.lineNumber = lineNumber; |
| | | } |
| | | |
| | | // TaskLog taskLog = new TaskLog( |
| | | // null, // |
| | | // null, // 工作号[非空] |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // 工作状态 |
| | | // null, // 入出库类型 |
| | | // null, // 堆垛机号 |
| | | // null, // |
| | | // null, // 优先级 |
| | | // null, // |
| | | // null, // 目标库位 |
| | | // null, // 目标站 |
| | | // null, // 源站 |
| | | // null, // 源库位 |
| | | // null, // |
| | | // null, // 拣料(checkBox) |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // 退出(checkBox) |
| | | // null, // |
| | | // null, // 空板(checkBox) |
| | | // null, // 工作时间 |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // 堆垛机启动时间 |
| | | // null, // 堆垛机停止时间 |
| | | // null, // 拣料时间 |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // 修改人员 |
| | | // null, // 修改时间 |
| | | // null, // 创建者 |
| | | // null, // 添加时间 |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // |
| | | // null, // 条码 |
| | | // null, // |
| | | // null, // |
| | | // null, // 满板(checkBox) |
| | | // null, // |
| | | // null, // |
| | | // null // |
| | | // ); |
| | | |
| | | public String getWrkNo$(){ |
| | | WrkMastService service = SpringUtils.getBean(WrkMastService.class); |
| | | WrkMast wrkMast = service.selectById(this.wrkNo); |
| | | if (!Cools.isEmpty(wrkMast)){ |
| | | return String.valueOf(wrkMast.getId()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getYmd$(){ |
| | | if (Cools.isEmpty(this.ymd)){ |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getTaskType$(){ |
| | | if (Cools.isEmpty(this.taskType)){return null;} |
| | | if (taskType.equals("AGV")) { |
| | | return "AGV任务"; |
| | | } else { |
| | | return "堆垛机任务"; |
| | | } |
| | | } |
| | | |
| | | |
| | | public String getStaNo$(){ |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.staNo); |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation basDevp = service.selectOne(new EntityWrapper<BasStation>().eq("dev_no", this.staNo)); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | |
| | | } |
| | | |
| | | public String getSourceStaNo$(){ |
| | | BasDevpService service = SpringUtils.getBean(BasDevpService.class); |
| | | BasDevp basDevp = service.selectById(this.sourceStaNo); |
| | | BasStationService service = SpringUtils.getBean(BasStationService.class); |
| | | BasStation basDevp = service.selectOne(new EntityWrapper<BasStation>().eq("dev_no", this.sourceStaNo)); |
| | | if (!Cools.isEmpty(basDevp)){ |
| | | return String.valueOf(basDevp.getDevNo()); |
| | | } |
| | |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.modiUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | UserService service = SpringUtils.getBean(UserService.class); |
| | | User user = service.selectById(this.appeUser); |
| | | if (!Cools.isEmpty(user)){ |
| | | return String.valueOf(user.getNickname()); |
| | | return String.valueOf(user.getUsername()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.errorTime); |
| | | } |
| | | |
| | | |
| | | public String getLogErrTime$(){ |
| | | if (Cools.isEmpty(this.logErrTime)){ |
| | | return ""; |
| | | } |
| | | return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.logErrTime); |
| | | } |
| | | |
| | | |
| | | } |
| | |
| | | } |
| | | TaskLog taskLog = new TaskLog(); |
| | | BeanUtils.copyProperties(task, taskLog); |
| | | taskLog.setLogId(task.getId()); |
| | | // taskLog.setLogId(task.getId()); |
| | | |
| | | this.insert(taskLog); |
| | | |
| | |
| | | toolbar: '#toolbar', |
| | | cellMinWidth: 50, |
| | | cols: [[ |
| | | {field: 'wrkNo', align: 'center', title: '工作号', event: 'wrkNo', sort: true} |
| | | , {field: 'ioTime$', align: 'center', title: '工作时间', width: 160, sort: true} |
| | | , {field: 'wrkSts$', align: 'center', title: '工作状态', width: 160} |
| | | , {field: 'ioType$', align: 'center', title: '入出库类型', width: 160} |
| | | , {field: 'ioPri', align: 'center', title: '优先级'} |
| | | , {field: 'crnNo$', align: 'center', title: '堆垛机号'} |
| | | , {field: 'sourceStaNo$', align: 'center', title: '源站'} |
| | | , {field: 'staNo$', align: 'center', title: '目标站'} |
| | | , {field: 'sourceLocNo$', align: 'center', title: '源库位'} |
| | | , {field: 'locNo$', align: 'center', title: '目标库位'} |
| | | {field: 'wrkNo', align: 'center', title: '工作号', sort: true} |
| | | , {field: 'taskNo', align: 'center', title: 'AGV任务号', sort: true} |
| | | // , {field: 'ioTime$', align: 'center', title: '工作时间', width: 160} |
| | | , {field: 'wrkSts$', align: 'center', title: '工作状态', width: 150} |
| | | , {field: 'ioType$', align: 'center', title: '入出库类型', width: 150} |
| | | , {field: 'ioPri', align: 'center', title: '优先级', width: 80} |
| | | , {field: 'taskType$', align: 'center', title: '任务类型'} |
| | | // , {field: 'crnNo$', align: 'center', title: '堆垛机', hide: true} |
| | | , {field: 'sourceStaNo', align: 'center', title: '源站'} |
| | | , {field: 'staNo', align: 'center', title: '目标站', width: 120} |
| | | // , {field: 'sourceLocNo', align: 'center', title: '源库位', width: 120} |
| | | // , {field: 'locNo', align: 'center', title: '目标库位', width: 120} |
| | | , {field: 'barcode', align: 'center', title: '条码', width: 110} |
| | | // , {field: 'preHave', align: 'center', title: '先入品', hide: true} |
| | | // , {field: 'takeNone', align: 'center', title: '空操作', hide: true} |
| | | , {field: 'modiUser$', align: 'center', title: '创建人员'} |
| | | , {field: 'appeTime$', align: 'center', title: '创建时间',width: 160} |
| | | , {field: 'modiUser$', align: 'center', title: '修改人员', hide: true} |
| | | , {field: 'modiTime$', align: 'center', title: '修改时间', hide: true} |
| | | , {field: 'barcode', align: 'center', title: '条码'} |
| | | , {fixed: 'right', title: '操作', align: 'center', toolbar: '#operate', width: 80} |
| | | , {field: 'modiTime$', align: 'center', title: '修改时间', width: 160} |
| | | , {fixed: 'right', title: '操作', align: 'center', toolbar: '#operate', width: 100} |
| | | ]], |
| | | request: { |
| | | pageName: 'curr', |