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