计划异常状态修改

master
yinq 2 years ago
parent 7c4e8c4e3e
commit f65bc0e7e6

@ -627,7 +627,7 @@ public class AbnormalBillController {
abnormalBillOld.setStatus(Constants.SHUT_DOWN); abnormalBillOld.setStatus(Constants.SHUT_DOWN);
String local = LocaleContextHolder.getLocale().getLanguage(); String local = LocaleContextHolder.getLocale().getLanguage();
AbnormalBillDisposeDto abnormalBillDisposeDto = abnormalBillDisposeMapper.findAllByAbnormalNo(abnormalBill, local); AbnormalBillDisposeDto abnormalBillDisposeDto = abnormalBillDisposeMapper.findAllByAbnormalNo(abnormalBill, local);
abnormalPlanService.saveAbnormalPlan(abnormalBillDisposeDto,now); abnormalPlanService.saveAbnormalPlan(abnormalBillDisposeDto,now,"false");
abnormalBillService.saveOrUpdate(abnormalBillOld); abnormalBillService.saveOrUpdate(abnormalBillOld);
abnormalBillDisposes.get(0).setClosedUser(abnormalBillDispose.getClosedUser()); abnormalBillDisposes.get(0).setClosedUser(abnormalBillDispose.getClosedUser());
abnormalBillDisposes.get(0).setClosedDateTime(now); abnormalBillDisposes.get(0).setClosedDateTime(now);

@ -31,7 +31,7 @@ public interface AbnormalPlanService extends IService<AbnormalPlan> {
List<AbnormalPlan> selectList(AbnormalPlan abnormalPlan); List<AbnormalPlan> selectList(AbnormalPlan abnormalPlan);
void saveAbnormalPlan(AbnormalBillDisposeDto abnormalBillDisposeDto, LocalDateTime now); void saveAbnormalPlan(AbnormalBillDisposeDto abnormalBillDisposeDto, LocalDateTime now, String check);
void saveAbnormalPlan(AbnormalBill abnormalBill, AbnormalBillDispose abnormalBillDispose, LocalDateTime now); void saveAbnormalPlan(AbnormalBill abnormalBill, AbnormalBillDispose abnormalBillDispose, LocalDateTime now);

@ -786,7 +786,7 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
//保存到异常计划表 //保存到异常计划表
if(Constants.ABNORMAL_QUALITY.equals(abnormalBill.getType())){ if(Constants.ABNORMAL_QUALITY.equals(abnormalBill.getType())){
AbnormalBillDisposeDto abnormalBillDisposeDto = abnormalBillDisposeMapper.findAllByAbnormalNo(abnormalBill, local); AbnormalBillDisposeDto abnormalBillDisposeDto = abnormalBillDisposeMapper.findAllByAbnormalNo(abnormalBill, local);
abnormalPlanService.saveAbnormalPlan(abnormalBillDisposeDto,now); abnormalPlanService.saveAbnormalPlan(abnormalBillDisposeDto,now,"false");
} }
this.saveOrUpdate(abnormalBill); this.saveOrUpdate(abnormalBill);
abnormalBillDisposeService.saveOrUpdate(abnormalBillDispose); abnormalBillDisposeService.saveOrUpdate(abnormalBillDispose);

@ -130,7 +130,7 @@ public class AbnormalPlanServiceImpl extends ServiceImpl<AbnormalPlanMapper, Abn
@Override @Override
public void saveAbnormalPlan(AbnormalBillDisposeDto abnormalBillDisposeDto, LocalDateTime now) { public void saveAbnormalPlan(AbnormalBillDisposeDto abnormalBillDisposeDto, LocalDateTime now, String check) {
String site = CommonMethods.getSite(); String site = CommonMethods.getSite();
AbnormalPlan abnormalPlan = new AbnormalPlan(); AbnormalPlan abnormalPlan = new AbnormalPlan();
String user = CommonMethods.getUser(); String user = CommonMethods.getUser();
@ -139,7 +139,9 @@ public class AbnormalPlanServiceImpl extends ServiceImpl<AbnormalPlanMapper, Abn
abnormalPlan.setSite(site); abnormalPlan.setSite(site);
abnormalPlan.setAbnormalNo(abnormalBillDisposeDto.getAbnormalNo()); abnormalPlan.setAbnormalNo(abnormalBillDisposeDto.getAbnormalNo());
//未处理 //未处理
// abnormalPlan.setStatus(Constants.UNTREATED); if (check.equals("true")){
abnormalPlan.setStatus(Constants.UNTREATED);
}
abnormalPlan.setWorkCenter(abnormalBillDisposeDto.getWorkCenter()); abnormalPlan.setWorkCenter(abnormalBillDisposeDto.getWorkCenter());
abnormalPlan.setAbnormalMethod(abnormalBillDisposeDto.getAbnormalMethod()); abnormalPlan.setAbnormalMethod(abnormalBillDisposeDto.getAbnormalMethod());
abnormalPlan.setShopOrder(abnormalBillDisposeDto.getShopOrder()); abnormalPlan.setShopOrder(abnormalBillDisposeDto.getShopOrder());
@ -170,7 +172,7 @@ public class AbnormalPlanServiceImpl extends ServiceImpl<AbnormalPlanMapper, Abn
abnormalBillDisposeDto.setResrce(abnormalBill.getResrce()); abnormalBillDisposeDto.setResrce(abnormalBill.getResrce());
abnormalBillDisposeDto.setItemBo(abnormalBill.getItemBo()); abnormalBillDisposeDto.setItemBo(abnormalBill.getItemBo());
abnormalBillDisposeDto.setNcQty(abnormalBill.getNcQty()); abnormalBillDisposeDto.setNcQty(abnormalBill.getNcQty());
this.saveAbnormalPlan(abnormalBillDisposeDto,now); this.saveAbnormalPlan(abnormalBillDisposeDto,now,"true");
} }
@Override @Override

Loading…
Cancel
Save