现场问题修复

This commit is contained in:
psh
2023-12-19 10:13:30 +08:00
parent b4344185f1
commit f54b358bde
9 changed files with 19 additions and 5 deletions

View File

@@ -35,6 +35,7 @@ import org.nl.wms.sch.task_manage.task.tasks.mapper.PointMapper;
import org.nl.wms.util.PointUtils;
import org.nl.wms.util.TaskUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@@ -54,6 +55,7 @@ import java.util.concurrent.TimeUnit;
*/
@Slf4j
@Service
@Lazy
public class AcsToWmsServiceImpl implements AcsToWmsService {
// 反射类方法的缓存
@@ -150,9 +152,9 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
AbstractTask abstractTask = taskFactory.getTask(processingClass);
// 更新任务
try {
abstractTask.updateTaskStatus(taskId, status);
abstractTask.updateTaskStatus(taskObj.getTask_id(), status);
} catch (Exception e) {
log.error("任务状态更新失败: {}", message);
log.error("任务状态更新失败: {}{}", e,e.getMessage());
return BaseResponse.responseError(requestNo, "任务:[" + taskId + "]状态更新失败," + message);
}
return BaseResponse.responseOk(requestNo, "任务状态反馈成功!");

View File

@@ -18,6 +18,7 @@ import org.nl.wms.sch.task.service.ISchBaseTaskService;
import org.nl.wms.sch.task_manage.GeneralDefinition;
import org.nl.wms.sch.task_manage.enums.GroupBindMaterialStatusEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
/**
@@ -27,6 +28,7 @@ import org.springframework.stereotype.Service;
*/
@Slf4j
@Service
@Lazy
public class PdaServiceImpl implements PdaService {
@Autowired
private PdaMapper pdaMapper;

View File

@@ -12,6 +12,7 @@ import org.nl.common.logging.annotation.Log;
import org.nl.wms.sch.task.service.ISchBaseTaskService;
import org.nl.wms.sch.task.service.dao.SchBaseTask;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.validation.annotation.Validated;
@@ -28,6 +29,7 @@ import java.util.Set;
@RestController
@Api(tags = "任务管理管理")
@RequestMapping("/api/schBaseTask")
public class SchBaseTaskController {
@Autowired

View File

@@ -22,6 +22,7 @@ import org.nl.wms.sch.task_manage.AbstractTask;
import org.nl.wms.sch.task_manage.task.TaskFactory;
import org.nl.wms.sch.task_manage.task.core.TaskStatus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import java.util.Arrays;
@@ -37,6 +38,7 @@ import java.util.stream.Collectors;
**/
@Slf4j
@Service
@Lazy
public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBaseTask> implements ISchBaseTaskService {
@Autowired

View File

@@ -224,7 +224,11 @@ public class MJXLTask extends AbstractTask {
param.put("device_code",device_code);
param.put("request_medthod_code","TBXBKJTask");
param.put("request_medthod_name","涂板线补空架");
acsToWmsService.acsApply(param);
try {
acsToWmsService.acsApply(param);
}catch (Exception e){
log.error("涂板线下料任务自动创建涂板线补空架任务失败{}",e.getMessage());
}
}
if (status.equals(TaskStatus.CANCELED)) { // 取消
// 终点解锁

View File

@@ -37,7 +37,7 @@ https://juejin.cn/post/6844903775631572999
<!--日志文件保留天数-->
<maxHistory>15</maxHistory>
<!--单个日志最大容量 至少10MB才能看得出来-->
<maxFileSize>200MB</maxFileSize>
<maxFileSize>20MB</maxFileSize>
<!--所有日志最多占多大容量-->
<totalSizeCap>20GB</totalSizeCap>
</rollingPolicy>