|
|
@ -256,8 +256,10 @@ public class DmsBillsInspectInstanceServiceImpl implements IDmsBillsInspectInsta
|
|
|
|
|
|
|
|
|
|
|
|
dmsInspectInstanceDetail.setDmsInspectInstanceDetailProjectList(dmsInspectInstanceDetailProjects);
|
|
|
|
dmsInspectInstanceDetail.setDmsInspectInstanceDetailProjectList(dmsInspectInstanceDetailProjects);
|
|
|
|
DmsBillsInspectInstance dmsBillsInspectInstance = new DmsBillsInspectInstance();
|
|
|
|
DmsBillsInspectInstance dmsBillsInspectInstance = new DmsBillsInspectInstance();
|
|
|
|
|
|
|
|
|
|
|
|
dmsBillsInspectInstance.setInspectInstanceId(dmsBillsInspectInstanceScanVo.getInspectInstanceId());
|
|
|
|
dmsBillsInspectInstance.setInspectInstanceId(dmsBillsInspectInstanceScanVo.getInspectInstanceId());
|
|
|
|
dmsBillsInspectInstance.setRealBeginTime(new Date());
|
|
|
|
dmsBillsInspectInstance.setRealBeginTime(new Date());
|
|
|
|
|
|
|
|
// dmsBillsInspectInstance.setInspectStatus("2");
|
|
|
|
int i = dmsBillsInspectInstanceMapper.updateDmsBillsInspectInstance(dmsBillsInspectInstance);
|
|
|
|
int i = dmsBillsInspectInstanceMapper.updateDmsBillsInspectInstance(dmsBillsInspectInstance);
|
|
|
|
return dmsInspectInstanceDetail;
|
|
|
|
return dmsInspectInstanceDetail;
|
|
|
|
|
|
|
|
|
|
|
@ -276,13 +278,21 @@ public class DmsBillsInspectInstanceServiceImpl implements IDmsBillsInspectInsta
|
|
|
|
DmsRecordInspect dmsRecordInspect = dmsBillsInspectInstanceMapper.selectRecord(dmsInspectInstanceDetail.getInstanceDetailId());
|
|
|
|
DmsRecordInspect dmsRecordInspect = dmsBillsInspectInstanceMapper.selectRecord(dmsInspectInstanceDetail.getInstanceDetailId());
|
|
|
|
|
|
|
|
|
|
|
|
List<DmsRecordInspect> recordInspect = dmsBillsInspectInstanceMapper.selectRecordByInstainceId(dmsRecordInspect.getInspectInstanceId());
|
|
|
|
List<DmsRecordInspect> recordInspect = dmsBillsInspectInstanceMapper.selectRecordByInstainceId(dmsRecordInspect.getInspectInstanceId());
|
|
|
|
if (recordInspect!=null&&recordInspect.size()>0){
|
|
|
|
// if (recordInspect!=null&&recordInspect.size()>0){
|
|
|
|
dmsRecordInspect.setInspectStatus(2l);
|
|
|
|
// dmsRecordInspect.setInspectStatus(2l);
|
|
|
|
}else {
|
|
|
|
// }else {
|
|
|
|
dmsRecordInspect.setInspectStatus(3l);
|
|
|
|
// dmsRecordInspect.setInspectStatus(3l);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
dmsRecordInspect.setInspectStatus(3l);
|
|
|
|
int i1 = dmsBillsInspectInstanceMapper.insertRecord(dmsRecordInspect);
|
|
|
|
int i1 = dmsBillsInspectInstanceMapper.insertRecord(dmsRecordInspect);
|
|
|
|
|
|
|
|
int count = dmsBillsInspectInstanceMapper.selectUnCompletedInstance(dmsRecordInspect.getInspectInstanceId());
|
|
|
|
|
|
|
|
// int count1 = dmsBillsInspectInstanceMapper.selectAllInstance(dmsRecordInspect.getInspectInstanceId());
|
|
|
|
DmsBillsInspectInstance dmsBillsInspectInstance = new DmsBillsInspectInstance();
|
|
|
|
DmsBillsInspectInstance dmsBillsInspectInstance = new DmsBillsInspectInstance();
|
|
|
|
|
|
|
|
if (count==0||count==1){
|
|
|
|
|
|
|
|
dmsBillsInspectInstance.setInspectStatus("3");
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
dmsBillsInspectInstance.setInspectStatus("2");
|
|
|
|
|
|
|
|
}
|
|
|
|
dmsBillsInspectInstance.setInspectInstanceId(dmsInspectInstanceDetail.getInspectInstanceId());
|
|
|
|
dmsBillsInspectInstance.setInspectInstanceId(dmsInspectInstanceDetail.getInspectInstanceId());
|
|
|
|
dmsBillsInspectInstance.setRealEndTime(new Date());
|
|
|
|
dmsBillsInspectInstance.setRealEndTime(new Date());
|
|
|
|
int i = dmsBillsInspectInstanceMapper.updateDmsBillsInspectInstance(dmsBillsInspectInstance);
|
|
|
|
int i = dmsBillsInspectInstanceMapper.updateDmsBillsInspectInstance(dmsBillsInspectInstance);
|
|
|
|