| | |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.Date; |
| | | |
| | | import com.zy.asrs.wcs.core.entity.DeviceCtg; |
| | | import com.zy.asrs.wcs.core.service.DeviceCtgService; |
| | | import com.zy.asrs.wcs.rcs.service.DeviceTypeService; |
| | | import com.zy.asrs.wcs.rcs.service.MotionCtgService; |
| | | import com.zy.asrs.wcs.rcs.service.MotionStsService; |
| | |
| | | * 设备类型 |
| | | */ |
| | | @ApiModelProperty(value= "设备类型") |
| | | private Long deviceType; |
| | | private Long deviceCtg; |
| | | |
| | | /** |
| | | * 设备 |
| | |
| | | |
| | | public Motion() {} |
| | | |
| | | public Motion(String uuid,Integer wrkNo,String serialNo,String title,Integer priority,Integer sync,Long motionCtg,Long motionSts,Long deviceType,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 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) { |
| | | this.uuid = uuid; |
| | | this.wrkNo = wrkNo; |
| | | this.serialNo = serialNo; |
| | |
| | | this.sync = sync; |
| | | this.motionCtg = motionCtg; |
| | | this.motionSts = motionSts; |
| | | this.deviceType = deviceType; |
| | | this.deviceCtg = deviceCtg; |
| | | this.device = device; |
| | | this.origin = origin; |
| | | this.oriDrt = oriDrt; |
| | |
| | | } |
| | | |
| | | public String getDeviceType$(){ |
| | | DeviceTypeService service = SpringUtils.getBean(DeviceTypeService.class); |
| | | DeviceType deviceType = service.getById(this.deviceType); |
| | | if (!Cools.isEmpty(deviceType)){ |
| | | return String.valueOf(deviceType.getName()); |
| | | DeviceCtgService service = SpringUtils.getBean(DeviceCtgService.class); |
| | | DeviceCtg deviceCtg = service.getById(this.deviceCtg); |
| | | if (!Cools.isEmpty(deviceCtg)){ |
| | | return String.valueOf(deviceCtg.getName()); |
| | | } |
| | | return null; |
| | | } |
| | |
| | | return null; |
| | | } |
| | | |
| | | public String getMotionCtgEl(){ |
| | | MotionCtgService service = SpringUtils.getBean(MotionCtgService.class); |
| | | MotionCtg entity = service.getById(this.motionCtg); |
| | | if (!Cools.isEmpty(entity)){ |
| | | return String.valueOf(entity.getFlag()); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | |
| | | } |