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