fix:子卷重量提示

This commit is contained in:
2025-01-07 17:22:43 +08:00
parent 35a550c039
commit 268d391098

View File

@@ -1872,15 +1872,18 @@ public class SlitterServiceImpl implements SlitterService {
@Override
public JSONObject doSubRollWeightBindingTip(JSONObject param) {
log.info("手持维护重量 - {}", param);
JSONObject res = new JSONObject();
res.put("status", HttpStatus.HTTP_OK);
//container_name: 子卷号
String containerName = param.getString("container_name");
Assert.notBlank(containerName, "子卷号不能为空!");
PdmBiSlittingproductionplan plan = slittingproductionplanService.getByContainerName(containerName);
if (ObjectUtil.isEmpty(plan)) {
res.put("tip", "子卷信息在系统中不存在,请核对子卷号!");
return res;
}
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;
}