featip):(w优化工序出站逻辑与数据处理
- 调整 completeSplit 方法调用格式,保持代码整洁 - 宽度字段处理时增加空值判断并转换为米单位 - 批号字段增加非空校验并修改首字符为 A
This commit is contained in:
parent
ce5648f834
commit
25dedffd0d
@ -653,7 +653,7 @@ public class OperationOutServiceImpl extends ServiceImpl<OperationOutMapper, Ope
|
||||
operationOutListDTO.setLotSerial(lotState.getLotSerial());
|
||||
|
||||
// 拆分的条码完成上一工序
|
||||
this.completeSplit(operationOutListDTO, shopOrderObj, currentRouterStepBo, site, shopOrder, user,
|
||||
this.completeSplit(operationOutListDTO, shopOrderObj, currentRouterStepBo, site, shopOrder, user,
|
||||
operationOutDTO, lotState, resultZLotMaterialCompleteTransaction, isCreateInventory, finallyRouterStepBo, lotNoList);
|
||||
}
|
||||
}
|
||||
@ -2653,12 +2653,21 @@ public class OperationOutServiceImpl extends ServiceImpl<OperationOutMapper, Ope
|
||||
|
||||
// 将 operationOutDTO 的各个字段直接放入 dataJson
|
||||
dataJson.put("LOT_QTY", operationOutListDTO.getOutMeter());
|
||||
dataJson.put("WIDTH", operationOutListDTO.getWidth());
|
||||
if (operationOutListDTO.getWidth() != null) {
|
||||
String width = operationOutListDTO.getWidth();
|
||||
BigDecimal result = new BigDecimal(width).divide(new BigDecimal(1000), 2, BigDecimal.ROUND_DOWN);
|
||||
String resultString = result.toString();
|
||||
dataJson.put("WIDTH", resultString);
|
||||
}
|
||||
dataJson.put("JM_THICKNESS", operationOutListDTO.getThickness());
|
||||
dataJson.put("JM_WEIGHT", operationOutListDTO.getOutWeight());
|
||||
dataJson.put("LXM_THICKNESS", operationOutListDTO.getLxmThickness());
|
||||
dataJson.put("INSPECTION_LEVEL", operationOutListDTO.getQcResult());
|
||||
dataJson.put("LOT_NO", operationOutListDTO.getLotNo());
|
||||
String lotNo = operationOutListDTO.getLotNo();
|
||||
if (StrUtil.isNotBlank(lotNo)) {
|
||||
lotNo = "A" + lotNo.substring(1);
|
||||
}
|
||||
dataJson.put("LOT_NO", lotNo);
|
||||
|
||||
// 将 dataJson 放入 jsonObject
|
||||
jsonObject.put("data", dataJson);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user