| | |
| | | |
| | | import com.zy.asrs.wcs.core.BuildSupport; |
| | | import com.zy.asrs.wcs.core.model.enums.MotionStsType; |
| | | import com.zy.asrs.wcs.core.service.DeviceCtgService; |
| | | import com.zy.asrs.wcs.core.service.MotionCtgService; |
| | | import com.zy.asrs.wcs.core.service.MotionStsService; |
| | | import com.zy.asrs.wcs.rcs.entity.DeviceType; |
| | | import com.zy.asrs.wcs.rcs.service.DeviceTypeService; |
| | | import com.zy.asrs.wcs.system.entity.Host; |
| | | import com.zy.asrs.wcs.system.entity.User; |
| | | import org.springframework.format.annotation.DateTimeFormat; |
| | |
| | | * 任务号 |
| | | */ |
| | | @ApiModelProperty(value= "任务号") |
| | | private Integer wrkNo; |
| | | private Integer taskNo; |
| | | |
| | | /** |
| | | * 序列号 |
| | |
| | | |
| | | public Motion() {} |
| | | |
| | | public Motion(String uuid,Integer wrkNo,String serialNo,String title,Integer priority,Integer sync,Long motionCtg,Long motionSts,Long deviceCtg,String device,String origin,Integer oriDrt,String target,Integer tarDrt,String dockNo,Date ioTime,Date startTime,Date endTime,Date errTime,Long errCode,String errDesc,String temp,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Integer deleted,Long hostId) { |
| | | public Motion(String uuid,Integer taskNo,String serialNo,String title,Integer priority,Integer sync,Long motionCtg,Long motionSts,Long deviceCtg,String device,String origin,Integer oriDrt,String target,Integer tarDrt,String dockNo,Date ioTime,Date startTime,Date endTime,Date errTime,Long errCode,String errDesc,String temp,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo,Integer deleted,Long hostId) { |
| | | this.uuid = uuid; |
| | | this.wrkNo = wrkNo; |
| | | this.taskNo = taskNo; |
| | | this.serialNo = serialNo; |
| | | this.title = title; |
| | | this.priority = priority; |
| | |
| | | } |
| | | |
| | | public String getDeviceType$(){ |
| | | DeviceCtgService service = SpringUtils.getBean(DeviceCtgService.class); |
| | | DeviceCtg deviceCtg = service.getById(this.deviceCtg); |
| | | DeviceTypeService service = SpringUtils.getBean(DeviceTypeService.class); |
| | | DeviceType deviceCtg = service.getById(this.deviceCtg); |
| | | if (!Cools.isEmpty(deviceCtg)){ |
| | | return String.valueOf(deviceCtg.getName()); |
| | | } |
| | |
| | | } |
| | | |
| | | public String getDeviceCtgEl(){ |
| | | DeviceCtgService service = SpringUtils.getBean(DeviceCtgService.class); |
| | | DeviceCtg entity = service.getById(this.deviceCtg); |
| | | DeviceTypeService service = SpringUtils.getBean(DeviceTypeService.class); |
| | | DeviceType entity = service.getById(this.deviceCtg); |
| | | if (!Cools.isEmpty(entity)){ |
| | | return String.valueOf(entity.getFlag()); |
| | | } |