opt:优化日志
This commit is contained in:
@@ -109,6 +109,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
if(ObjectUtil.isEmpty(param.getString("create_mode"))){
|
||||
param.put("create_mode","3");
|
||||
}
|
||||
log.info("ACS请求pdaApply参数: {}", param);
|
||||
try {
|
||||
result = this.apply(param);
|
||||
} catch (Exception e) {
|
||||
@@ -147,6 +148,7 @@ public class AcsToWmsServiceImpl implements AcsToWmsService {
|
||||
if(ObjectUtil.isNull(task)){
|
||||
throw new BadRequestException("任务类型不正确!requestMethodCode:"+requestMethodName+",device_code:"+device_code);
|
||||
}
|
||||
log.info("ACS请求apply参数: {}", param);
|
||||
// 执行创建任务
|
||||
String task_code = task.apply(param);
|
||||
Map<String, String> parameters = new HashMap();
|
||||
|
||||
@@ -193,6 +193,7 @@ public class SchBaseTaskServiceImpl extends ServiceImpl<SchBaseTaskMapper, SchBa
|
||||
entity.setCreate_time(now);
|
||||
entity.setUpdate_time(now);
|
||||
schBaseTaskMapper.insert(entity);
|
||||
log.info("SchBaseTaskServiceImpl请求create参数: {}", entity);
|
||||
return entity.getTask_code();
|
||||
}
|
||||
|
||||
|
||||
@@ -141,7 +141,7 @@ public class KJRKTask extends AbstractTask {
|
||||
&& StringUtils.isEmpty(schBasePoint.getIng_task_code())
|
||||
&& schBasePoint.getVehicle_qty() ==0
|
||||
&& ObjectUtil.isEmpty(schBasePoint.getVehicle_code2())) {
|
||||
log.info("空架入库找到当前符合条件的点位{}", schBasePoint.getPoint_code());
|
||||
log.info("空架入库找到当前符合条件的点位{}", schBasePoint);
|
||||
return schBasePoint;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -144,10 +144,6 @@ public class SSXBKJTask extends AbstractTask {
|
||||
if (taskObj.getTask_status().equals(TaskStatus.CANCELED.getCode())) {
|
||||
throw new BadRequestException("该任务已取消!");
|
||||
}
|
||||
// 获取参数
|
||||
JSONObject extGroupData = ObjectUtil.isNotEmpty(taskObj.getExt_group_data())
|
||||
? JSONObject.parseObject(taskObj.getExt_group_data())
|
||||
: null;
|
||||
String startPoint = taskObj.getPoint_code1(); // 获取起点
|
||||
String endPoint = taskObj.getPoint_code2(); // 获取终点
|
||||
SchBasePoint startPointObj = pointService.getById(startPoint);
|
||||
|
||||
@@ -37,7 +37,6 @@ public class PointUtils {
|
||||
*/
|
||||
public static void clearPoint(SchBasePoint point) {
|
||||
SchBasePointServiceImpl pointService = SpringContextHolder.getBean(SchBasePointServiceImpl.class);
|
||||
// point.setPoint_status(PointStatusEnum.EMPTY_POINT.getCode());
|
||||
point.setVehicle_type("");
|
||||
point.setVehicle_code("");
|
||||
point.setIng_task_code("");
|
||||
@@ -46,6 +45,6 @@ public class PointUtils {
|
||||
point.setVehicle_qty(0);
|
||||
}
|
||||
point.setUpdate_time(DateUtil.now());
|
||||
pointService.updateById(point);
|
||||
pointService.update(point);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user