feat:子卷重量提示

This commit is contained in:
2025-01-07 17:18:33 +08:00
parent 8f47bed08e
commit 35a550c039
3 changed files with 28 additions and 0 deletions

View File

@@ -163,6 +163,12 @@ public class SlitterPdaController {
public ResponseEntity<Object> doSubRollWeightBinding(@RequestBody JSONObject param) {
return new ResponseEntity<>(slitterDevices.doSubRollWeightBinding(param), HttpStatus.OK);
}
@PostMapping("/doSubRollWeightBindingTip")
@Log("手持子卷重量绑定提示")
@SaIgnore
public ResponseEntity<Object> doSubRollWeightBindingTip(@RequestBody JSONObject param) {
return new ResponseEntity<>(slitterDevices.doSubRollWeightBindingTip(param), HttpStatus.OK);
}
@PostMapping("/doUpShaftToSlitter")
@Log("手持分切机上气胀轴")
@SaIgnore

View File

@@ -291,4 +291,11 @@ public interface SlitterService {
* @return
*/
JSONObject doUpShaftToSlitterByDeviceTip(JSONObject param);
/**
* 子卷维护重量提示
* @param param
* @return
*/
JSONObject doSubRollWeightBindingTip(JSONObject param);
}

View File

@@ -1869,4 +1869,19 @@ public class SlitterServiceImpl implements SlitterService {
res.put("tip", tips.stream().collect(Collectors.joining(",")));
return res;
}
@Override
public JSONObject doSubRollWeightBindingTip(JSONObject param) {
log.info("手持维护重量 - {}", param);
//container_name: 子卷号
String containerName = param.getString("container_name");
Assert.notBlank(containerName, "子卷号不能为空!");
PdmBiSlittingproductionplan plan = slittingproductionplanService.getByContainerName(containerName);
String rollWeight = "子卷毛重:【" + plan.getWeight() + "";
String paperWeight = "纸管重量:【" + plan.getPaper_weight() + "";
JSONObject res = new JSONObject();
res.put("status", HttpStatus.HTTP_OK);
res.put("tip", "系统记录的重量数值:" + rollWeight + ", " + paperWeight);
return res;
}
}