|
|
@ -546,7 +546,11 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
List<BomComponentVo> list = fetchBomComponentDetails(inData.getSite(), inData.getCodeNo()); |
|
|
List<BomComponentVo> list = fetchBomComponentDetails(inData.getSite(), inData.getCodeNo()); |
|
|
//List<BomComponentVo> list = bomManagementMapper.queryBomComponent(bomDetailEntity.get(0)); |
|
|
//List<BomComponentVo> list = bomManagementMapper.queryBomComponent(bomDetailEntity.get(0)); |
|
|
map.put("rows", list); |
|
|
map.put("rows", list); |
|
|
map.put("row", list.get(0)); |
|
|
|
|
|
|
|
|
if (list.isEmpty()) { |
|
|
|
|
|
map.put("row", new BomComponentVo()); |
|
|
|
|
|
} else { |
|
|
|
|
|
map.put("row", list.get(0)); |
|
|
|
|
|
} |
|
|
return map; |
|
|
return map; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -556,6 +560,10 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
params.add(codeNo); |
|
|
params.add(codeNo); |
|
|
List<Map<String, Object>> resultList = procedureDao.getProcedureData("get_BM_BOMDetail", params); |
|
|
List<Map<String, Object>> resultList = procedureDao.getProcedureData("get_BM_BOMDetail", params); |
|
|
|
|
|
|
|
|
|
|
|
if (resultList.isEmpty()) { |
|
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
String code = String.valueOf(resultList.get(0).get("code")); |
|
|
String code = String.valueOf(resultList.get(0).get("code")); |
|
|
if ("400".equalsIgnoreCase(code)) { |
|
|
if ("400".equalsIgnoreCase(code)) { |
|
|
String msg = String.valueOf(resultList.get(0).get("message")); |
|
|
String msg = String.valueOf(resultList.get(0).get("message")); |
|
|
@ -566,6 +574,7 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
.map(a -> { |
|
|
.map(a -> { |
|
|
BomComponentVo bomComponentVo = new BomComponentVo(); |
|
|
BomComponentVo bomComponentVo = new BomComponentVo(); |
|
|
bomComponentVo.setSite(String.valueOf(a.get("site"))); |
|
|
bomComponentVo.setSite(String.valueOf(a.get("site"))); |
|
|
|
|
|
bomComponentVo.setCodeNo(codeNo); |
|
|
bomComponentVo.setPartNo(String.valueOf(a.get("part_no"))); |
|
|
bomComponentVo.setPartNo(String.valueOf(a.get("part_no"))); |
|
|
bomComponentVo.setEngChgLevel(Integer.valueOf(String.valueOf(a.get("eng_chg_level")))); |
|
|
bomComponentVo.setEngChgLevel(Integer.valueOf(String.valueOf(a.get("eng_chg_level")))); |
|
|
bomComponentVo.setBomType(String.valueOf(a.get("bom_type"))); |
|
|
bomComponentVo.setBomType(String.valueOf(a.get("bom_type"))); |
|
|
@ -2110,18 +2119,6 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
@Override |
|
|
@Override |
|
|
@Transactional |
|
|
@Transactional |
|
|
public void bmStatusToFinish(PlmTechnicalSpecificationSheetData data) { |
|
|
public void bmStatusToFinish(PlmTechnicalSpecificationSheetData data) { |
|
|
// // 将状态改为"已完成" |
|
|
|
|
|
// data.setStatus("已完成"); |
|
|
|
|
|
// // 更新单据状态和节点 |
|
|
|
|
|
// technicalSpecificationMapper.updateStatus(data); |
|
|
|
|
|
// // 2025-05-28 归档操作要更改step_id = NULL |
|
|
|
|
|
// data.setStepId(null); |
|
|
|
|
|
// technicalSpecificationMapper.updateBMStepId(data); |
|
|
|
|
|
// 2025-07-08 点击归档后将stage改为Mass Production 合并上述修改 |
|
|
|
|
|
data.setStatus("已完成"); |
|
|
|
|
|
data.setStepId(null); |
|
|
|
|
|
data.setStage("Mass Production"); |
|
|
|
|
|
technicalSpecificationMapper.updateBMInfo(data); |
|
|
|
|
|
|
|
|
|
|
|
// 2025-07-17 修改技术参数卡的状态为已完成后,重新获取bom和工艺路线 |
|
|
// 2025-07-17 修改技术参数卡的状态为已完成后,重新获取bom和工艺路线 |
|
|
List<BomComponentVo> bomList = fetchBomComponentDetails(data.getSite(), data.getCodeNo()); |
|
|
List<BomComponentVo> bomList = fetchBomComponentDetails(data.getSite(), data.getCodeNo()); |
|
|
@ -2138,9 +2135,15 @@ public class TechnicalSpecificationServiceImpl implements TechnicalSpecification |
|
|
if (!RoutingDetailEntity.isEmpty()) { |
|
|
if (!RoutingDetailEntity.isEmpty()) { |
|
|
RoutingDetailEntity routing = RoutingDetailEntity.get(0); |
|
|
RoutingDetailEntity routing = RoutingDetailEntity.get(0); |
|
|
technicalSpecificationMapper.deleteBmRouting(data.getSite(), data.getCodeNo()); |
|
|
technicalSpecificationMapper.deleteBmRouting(data.getSite(), data.getCodeNo()); |
|
|
technicalSpecificationMapper.saveBmRouting(data.getSite(), data.getCodeNo(), routing.getPartNo(), routing.getRoutingRevision(), routing.getRoutingType(), routing.getAlternativeNo()); |
|
|
|
|
|
|
|
|
technicalSpecificationMapper.saveBmRouting(data.getSite(), data.getCodeNo(), routing.getPartNo(), routing.getRoutingRevision(), routing.getRoutingType(), routing.getAlternativeNo(), data.getUsername()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 2025-07-08 点击归档后将stage改为Mass Production 合并上述修改 |
|
|
|
|
|
data.setStatus("已完成"); |
|
|
|
|
|
data.setStepId(null); |
|
|
|
|
|
data.setStage("Mass Production"); |
|
|
|
|
|
technicalSpecificationMapper.updateBMInfo(data); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
|