opt: 添加套拔轴业务的日志
This commit is contained in:
@@ -108,4 +108,11 @@ public class SlitterPdaController {
|
|||||||
public ResponseEntity<Object> toShaftBinding(@RequestBody JSONObject param) {
|
public ResponseEntity<Object> toShaftBinding(@RequestBody JSONObject param) {
|
||||||
return new ResponseEntity<>(slitterDevices.toShaftBinding(param), HttpStatus.OK);
|
return new ResponseEntity<>(slitterDevices.toShaftBinding(param), HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/querySlitterSubVolumeInfo")
|
||||||
|
@Log("查询分切机上的子卷信息")
|
||||||
|
@SaIgnore
|
||||||
|
public ResponseEntity<Object> querySlitterSubVolumeInfo(@RequestBody JSONObject param) {
|
||||||
|
return new ResponseEntity<>(slitterDevices.querySlitterSubVolumeInfo(param), HttpStatus.OK);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,6 +149,7 @@ public class AutoCallAirShaftTask {
|
|||||||
if (planDto == null) {
|
if (planDto == null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
log.info("此时获取的分切计划dto: {}", planDto);
|
||||||
// 获取分切计划dto中对应的需要套轴的分切计划 最多两个计划
|
// 获取分切计划dto中对应的需要套轴的分切计划 最多两个计划
|
||||||
List<PdmBiSlittingproductionplan> needPlans = slittingproductionplanService.list(new LambdaQueryWrapper<PdmBiSlittingproductionplan>()
|
List<PdmBiSlittingproductionplan> needPlans = slittingproductionplanService.list(new LambdaQueryWrapper<PdmBiSlittingproductionplan>()
|
||||||
.eq(PdmBiSlittingproductionplan::getResource_name, planDto.getResource_name())
|
.eq(PdmBiSlittingproductionplan::getResource_name, planDto.getResource_name())
|
||||||
@@ -167,6 +168,7 @@ public class AutoCallAirShaftTask {
|
|||||||
.eq(PdmBiSlittingproductionplan::getIs_delete, SlitterConstant.SLITTER_NO)
|
.eq(PdmBiSlittingproductionplan::getIs_delete, SlitterConstant.SLITTER_NO)
|
||||||
.eq(PdmBiSlittingproductionplan::getIs_paper_ok, SlitterConstant.SLITTER_YES));
|
.eq(PdmBiSlittingproductionplan::getIs_paper_ok, SlitterConstant.SLITTER_YES));
|
||||||
}
|
}
|
||||||
|
log.info("通过dto获取的分切计划:{}", needPlans);
|
||||||
// 获取其中一条
|
// 获取其中一条
|
||||||
PdmBiSlittingproductionplan needPlan = needPlans.get(0);
|
PdmBiSlittingproductionplan needPlan = needPlans.get(0);
|
||||||
String qzzSize = needPlan.getQzz_size();
|
String qzzSize = needPlan.getQzz_size();
|
||||||
@@ -370,7 +372,8 @@ public class AutoCallAirShaftTask {
|
|||||||
acsQzz.put("value", "1");
|
acsQzz.put("value", "1");
|
||||||
acsQzz.put("product_area", SlitterConstant.SLITTER_TASK_AREA);
|
acsQzz.put("product_area", SlitterConstant.SLITTER_TASK_AREA);
|
||||||
acsParam.add(acsQzz);
|
acsParam.add(acsQzz);
|
||||||
wmsToAcsService.action(acsParam);
|
JSONObject action = wmsToAcsService.action(acsParam);
|
||||||
|
log.info("下发给ACS写信号出气涨轴返回参数:{}", action);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -530,7 +533,7 @@ public class AutoCallAirShaftTask {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log.info("检查是否有同母卷不允许套轴:{}", dto);
|
log.info("检查有同母卷不允许套轴:{}", dto);
|
||||||
// 有就返回true
|
// 有就返回true
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -193,4 +193,11 @@ public interface SlitterService {
|
|||||||
* @return /
|
* @return /
|
||||||
*/
|
*/
|
||||||
JSONObject toShaftBinding(JSONObject param);
|
JSONObject toShaftBinding(JSONObject param);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询分切机上的子卷信息
|
||||||
|
* @param param /
|
||||||
|
* @return /
|
||||||
|
*/
|
||||||
|
JSONObject querySlitterSubVolumeInfo(JSONObject param);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -974,6 +974,10 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
// 如果是没货
|
// 如果是没货
|
||||||
throw new BadRequestException("点位:" + point.getPoint_code() + "检测无货,请确保任务执行完毕后触发!");
|
throw new BadRequestException("点位:" + point.getPoint_code() + "检测无货,请确保任务执行完毕后触发!");
|
||||||
}
|
}
|
||||||
|
if (ObjectUtil.equals(point.getPoint_status(), "2")) {
|
||||||
|
// 如果是没货
|
||||||
|
throw new BadRequestException("点位:" + point.getPoint_code() + "检测空气胀轴,请确保下卷任务是否完毕后触发!");
|
||||||
|
}
|
||||||
List<BstIvtCutpointivt> areaEmptyNotTaskPoint = bcutpointivtService.getAreaNotTaskPointByStatus("1",
|
List<BstIvtCutpointivt> areaEmptyNotTaskPoint = bcutpointivtService.getAreaNotTaskPointByStatus("1",
|
||||||
"1", "0", "2");
|
"1", "0", "2");
|
||||||
if (areaEmptyNotTaskPoint.size() == 0) {
|
if (areaEmptyNotTaskPoint.size() == 0) {
|
||||||
@@ -1213,4 +1217,20 @@ public class SlitterServiceImpl implements SlitterService {
|
|||||||
res.put("message", "气胀轴绑定成功!");
|
res.put("message", "气胀轴绑定成功!");
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public JSONObject querySlitterSubVolumeInfo(JSONObject param) {
|
||||||
|
// param: point_code, container_name(多个用','隔开)
|
||||||
|
String containerName = param.getString("container_name");
|
||||||
|
String pointCode1 = param.getString("point_code");
|
||||||
|
if (ObjectUtil.isEmpty(containerName)) {
|
||||||
|
throw new BadRequestException("子卷号不能为空!");
|
||||||
|
}
|
||||||
|
List<String> collect = Arrays.stream(containerName.split(",")).collect(Collectors.toList());
|
||||||
|
List<PdmBiSlittingproductionplan> plans = slittingproductionplanService.getByContainerNames(collect);
|
||||||
|
if (plans.size() == 0) {
|
||||||
|
throw new BadRequestException("子卷号:[" + containerName + "] 的分切计划没找到,检查是否推送或者子卷号是否正确!");
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user