From 5aa831dffdfb0ca524362e8d649c28babc681ece Mon Sep 17 00:00:00 2001 From: cpT <1@123> Date: 星期一, 30 六月 2025 16:43:18 +0800 Subject: [PATCH] #改造 --- src/main/java/com/zy/asrs/entity/BasErrLog.java | 27 +++++++++++++++++++++++++++ 1 files changed, 27 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/asrs/entity/BasErrLog.java b/src/main/java/com/zy/asrs/entity/BasErrLog.java index 218fd43..3bb2ac0 100644 --- a/src/main/java/com/zy/asrs/entity/BasErrLog.java +++ b/src/main/java/com/zy/asrs/entity/BasErrLog.java @@ -8,6 +8,7 @@ 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; @@ -202,6 +203,32 @@ 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, // 宸ヤ綔鍙� -- Gitblit v1.9.1