| | |
| | | import com.core.common.SpringUtils; |
| | | import com.zy.asrs.service.BasWrkIotypeService; |
| | | import com.zy.asrs.service.BasWrkStatusService; |
| | | import com.zy.core.model.command.CrnCommand; |
| | | import com.zy.system.entity.User; |
| | | import com.zy.system.service.UserService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | this.memo = memo; |
| | | } |
| | | |
| | | |
| | | public BasErrLog(CrnCommand command,String error,String memo) { |
| | | Date now = new Date(); |
| | | this.uuid = now.toString(); |
| | | this.wrkNo = command.getTaskNo().intValue(); |
| | | this.startTime = now; |
| | | this.endTime = now; |
| | | this.wrkSts = 0L; |
| | | this.ioType = 0; |
| | | this.crnNo = command.getLaneNo(); |
| | | this.plcNo = command.getCrnNo(); |
| | | this.locNo = command.getSourcePosX()+"排"+command.getSourcePosY()+"列"+command.getSourcePosZ()+"层"; |
| | | this.staNo = 0; |
| | | this.sourceStaNo = 0; |
| | | this.sourceLocNo = command.getDestinationPosX()+"排"+command.getDestinationPosY()+"列"+command.getDestinationPosY()+"层"; |
| | | this.barcode = ""; |
| | | this.errCode = 0; |
| | | this.error = error; |
| | | this.status = 0; |
| | | this.createTime = now; |
| | | this.createBy = null; |
| | | this.updateTime = now; |
| | | this.updateBy = null; |
| | | this.memo = memo; |
| | | } |
| | | |
| | | // BasErrLog basErrLog = new BasErrLog( |
| | | // null, // 编号 |
| | | // null, // 工作号 |