|
|
|
|
@ -132,8 +132,14 @@ public class ProdPlanErpInfoServiceImpl implements IProdPlanErpInfoService {
|
|
|
|
|
prodPlanInfo.setPlanCode(seqNo);
|
|
|
|
|
List<ProdPlanInfo> planInfoList = prodPlanInfoService.selectProdPlanInfoList(prodPlanInfo);
|
|
|
|
|
ProdPlanInfo planInfo = planInfoList.get(0);
|
|
|
|
|
if (planInfo.getUploadFlag().equals(MesConstants.MES_IS_ERP_YES) || planInfo.getPlanStatus().equals(MesConstants.MES_PLAN_STATUS_FINISH)
|
|
|
|
|
|| planInfo.getPlanStatus().equals(MesConstants.MES_PLAN_STATUS_IN) || planInfo.getPlanStatus().equals(MesConstants.MES_PLAN_STATUS_DELETE)) {
|
|
|
|
|
if (planInfo.getPlanStatus().equals(MesConstants.MES_PLAN_STATUS_FINISH)){
|
|
|
|
|
ProdPlanErpInfo erpInfo = new ProdPlanErpInfo();
|
|
|
|
|
erpInfo.setObjId(infoList.get(0).getObjId());
|
|
|
|
|
erpInfo.setTaskProgress(planErpInfo.getTaskProgress());
|
|
|
|
|
this.updateProdPlanErpInfo(erpInfo);
|
|
|
|
|
}
|
|
|
|
|
if (planInfo.getUploadFlag().equals(MesConstants.MES_IS_ERP_YES) || planInfo.getPlanStatus().equals(MesConstants.MES_PLAN_STATUS_IN)
|
|
|
|
|
|| planInfo.getPlanStatus().equals(MesConstants.MES_PLAN_STATUS_DELETE)) {
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
planInfo.setPlanCode(seqNo);
|
|
|
|
|
|