|
|
|
@ -9,10 +9,7 @@ import com.foreverwin.mesnac.anomaly.model.AbnormalBill;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.model.AbnormalBillDispose;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.model.AbnormalBillLog;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.model.AbnormalNcCode;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.service.AbnormalBillDisposeService;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.service.AbnormalBillLogService;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.service.AbnormalBillService;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.service.AbnormalNcCodeService;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.service.*;
|
|
|
|
|
import com.foreverwin.mesnac.common.constant.Constants;
|
|
|
|
|
import com.foreverwin.mesnac.common.enums.HandleEnum;
|
|
|
|
|
import com.foreverwin.mesnac.common.util.StringUtil;
|
|
|
|
@ -69,6 +66,9 @@ public class AbnormalBillLogServiceImpl extends ServiceImpl<AbnormalBillLogMappe
|
|
|
|
|
@Autowired
|
|
|
|
|
private ShopOrderMapper shopOrderMapper;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private AbnormalPlanService abnormalPlanService;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public IPage<AbnormalBillLog> selectPage(FrontPage<AbnormalBillLog> frontPage, AbnormalBillLog abnormalBillLog) {
|
|
|
|
|
QueryWrapper<AbnormalBillLog> queryWrapper = new QueryWrapper<>();
|
|
|
|
@ -163,6 +163,7 @@ public class AbnormalBillLogServiceImpl extends ServiceImpl<AbnormalBillLogMappe
|
|
|
|
|
abnormalBillLog.setCreatedDataTime(now);
|
|
|
|
|
abnormalBillLog.setModifiedUser(user);
|
|
|
|
|
abnormalBillLog.setModifiedDateTime(now);
|
|
|
|
|
|
|
|
|
|
this.save(abnormalBillLog);;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -170,6 +171,7 @@ public class AbnormalBillLogServiceImpl extends ServiceImpl<AbnormalBillLogMappe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(Constants.ABNORMAL_QUALITY.equals(abnormalBill.getType())){
|
|
|
|
|
abnormalPlanService.saveAbnormalPlan(abnormalBill,abnormalBillDispose,now);
|
|
|
|
|
abnormalBillService.anomalyReport(abnormalBill,abnormalBillDispose,ncGroupAndNcCodes,dutyCauseType,dutyType);
|
|
|
|
|
}else if(Constants.ABNORMAL_OTHER.equals(abnormalBill.getType())){
|
|
|
|
|
abnormalBillService.anomalyReportOther(abnormalBill,abnormalBillDispose,dutyCauseType,dutyType);
|
|
|
|
|