|
|
|
@ -1023,7 +1023,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
private boolean rulePlateThickness(StatementVO statementVO) { |
|
|
|
private boolean rulePlateThickness(StatementVO statementVO) { |
|
|
|
List<PriceSheetVO> priceSheetList = statementVO.getPriceSheetList(); |
|
|
|
List<PriceSheetVO> priceSheetList = statementVO.getPriceSheetList(); |
|
|
|
//结算单的镀层厚度维度分匹配报价的物料号,
|
|
|
|
//结算单的镀层厚度维度分匹配报价的物料号,
|
|
|
|
String plateThickness = statementVO.getPlateThickness(); |
|
|
|
String plateThickness = statementVO.getRosThickness(); |
|
|
|
if (StringUtils.isEmpty(plateThickness)) { |
|
|
|
if (StringUtils.isEmpty(plateThickness)) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -1433,7 +1433,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
} |
|
|
|
} |
|
|
|
// ====================== 规则3:仅【工序+镀层厚度】,其他null ======================
|
|
|
|
// ====================== 规则3:仅【工序+镀层厚度】,其他null ======================
|
|
|
|
for (OemStandardProcessEntity s : allStandardList) { |
|
|
|
for (OemStandardProcessEntity s : allStandardList) { |
|
|
|
boolean rule3 = Objects.equals(s.getProcessId(), statementVO.getPpsId()) && StringUtils.isEmpty(s.getPlate()) && StringUtils.equals(s.getPlateThickness(), statementVO.getPlateThickness()) && StringUtils.isEmpty(s.getPartName()); |
|
|
|
boolean rule3 = Objects.equals(s.getProcessId(), statementVO.getPpsId()) && StringUtils.isEmpty(s.getPlate()) && StringUtils.equals(s.getPlateThickness(), statementVO.getRosThickness()) && StringUtils.isEmpty(s.getPartName()); |
|
|
|
if (rule3) return s; |
|
|
|
if (rule3) return s; |
|
|
|
} |
|
|
|
} |
|
|
|
// ====================== 规则4:仅【工序+零件名】,其他null ======================
|
|
|
|
// ====================== 规则4:仅【工序+零件名】,其他null ======================
|
|
|
|
@ -1445,7 +1445,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
|
|
|
|
|
|
|
|
// ====================== 规则5:【工序+镀层厚度+零件名】,镀种null ======================
|
|
|
|
// ====================== 规则5:【工序+镀层厚度+零件名】,镀种null ======================
|
|
|
|
for (OemStandardProcessEntity s : allStandardList) { |
|
|
|
for (OemStandardProcessEntity s : allStandardList) { |
|
|
|
boolean rule5 = Objects.equals(s.getProcessId(), statementVO.getPpsId()) && StringUtils.isEmpty(s.getPlate()) && StringUtils.equals(s.getPlateThickness(), statementVO.getPlateThickness()) && StringUtils.equals(s.getPartName(), statementVO.getPartName()); |
|
|
|
boolean rule5 = Objects.equals(s.getProcessId(), statementVO.getPpsId()) && StringUtils.isEmpty(s.getPlate()) && StringUtils.equals(s.getPlateThickness(), statementVO.getRosThickness()) && StringUtils.equals(s.getPartName(), statementVO.getPartName()); |
|
|
|
if (rule5) return s; |
|
|
|
if (rule5) return s; |
|
|
|
} |
|
|
|
} |
|
|
|
return null; |
|
|
|
return null; |
|
|
|
@ -2184,7 +2184,7 @@ public class OemStatementServiceImpl extends BaseServiceImpl<OemStatementMapper, |
|
|
|
// 镀种
|
|
|
|
// 镀种
|
|
|
|
entity.setPlate(vo.getPlate()); |
|
|
|
entity.setPlate(vo.getPlate()); |
|
|
|
// 镀层厚度1
|
|
|
|
// 镀层厚度1
|
|
|
|
entity.setRosThickness(new BigDecimal(vo.getPlateThickness() != null ? vo.getPlateThickness() : "0")); |
|
|
|
entity.setRosThickness(vo.getRosThickness()); |
|
|
|
// 单件面积
|
|
|
|
// 单件面积
|
|
|
|
entity.setYpArea(vo.getYpArea() != null ? vo.getYpArea() : BigDecimal.ZERO); |
|
|
|
entity.setYpArea(vo.getYpArea() != null ? vo.getYpArea() : BigDecimal.ZERO); |
|
|
|
|
|
|
|
|
|
|
|
|