物料接口 工艺接口
This commit is contained in:
parent
2f3f0f5916
commit
eb7bab9964
@ -511,7 +511,7 @@ public class ProcessRouteServiceImpl implements IProcessRouteService {
|
||||
bomDetails.setMaterial(productionOrderVo.getMaterial());
|
||||
|
||||
// 判断外购或自制
|
||||
if (isOutsourced(productionOrderVo.getDrawingNo())|| productionOrderVo.getRemark().contains("外购")) {
|
||||
if (isOutsourced(productionOrderVo.getDrawingNo())) {
|
||||
bomDetails.setStats("外购");
|
||||
} else {
|
||||
bomDetails.setStats("自制");
|
||||
@ -905,9 +905,9 @@ public class ProcessRouteServiceImpl implements IProcessRouteService {
|
||||
LoadBomResult result = loadBillOfMaterialsPreservation(processRouteXuDTO);
|
||||
// 处理返回结果
|
||||
if (result.isSuccess()) {
|
||||
System.out.println("工艺路线保存保存成功: " + result.getResultData());
|
||||
System.out.println("工艺路线保存保存成功: "+processRouteXuDTO.getMaterialCode() + result.getResultData());
|
||||
} else {
|
||||
System.out.println("工艺路线保存保存失败: " + result.getMessage());
|
||||
System.out.println("工艺路线保存保存失败: "+processRouteXuDTO.getMaterialCode() + result.getMessage());
|
||||
}
|
||||
}
|
||||
return rawBomList; //
|
||||
@ -1102,7 +1102,6 @@ public class ProcessRouteServiceImpl implements IProcessRouteService {
|
||||
RepoRet repoRet = gson.fromJson(resultJson, RepoRet.class);
|
||||
if (repoRet.getResult().getResponseStatus().isIsSuccess()) {
|
||||
String result = gson.toJson(repoRet.getResult());
|
||||
System.out.printf("接口返回结果: %s%n", result);
|
||||
return new LoadBomResult(true, "工艺路线保存接口调用成功", result);
|
||||
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user