|
|
@ -228,6 +228,7 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS
|
|
|
|
DmsFaultInstanceActivity dmsFaultInstanceActivity;
|
|
|
|
DmsFaultInstanceActivity dmsFaultInstanceActivity;
|
|
|
|
if (dmsBillsFaultInstanceActivityList.size() == 1) {
|
|
|
|
if (dmsBillsFaultInstanceActivityList.size() == 1) {
|
|
|
|
dmsFaultInstanceActivity = firstStepActivity;
|
|
|
|
dmsFaultInstanceActivity = firstStepActivity;
|
|
|
|
|
|
|
|
dmsBillsFaultInstance.setInstanceActivityId(firstStepActivity.getInstanceActivityId());
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
dmsFaultInstanceActivity = dmsBillsFaultInstanceActivityList.get(1);
|
|
|
|
dmsFaultInstanceActivity = dmsBillsFaultInstanceActivityList.get(1);
|
|
|
|
dmsBillsFaultInstance.setInstanceActivityId(dmsFaultInstanceActivity.getInstanceActivityId());
|
|
|
|
dmsBillsFaultInstance.setInstanceActivityId(dmsFaultInstanceActivity.getInstanceActivityId());
|
|
|
@ -236,12 +237,23 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS
|
|
|
|
DmsFaultInstanceActivity instanceActivity = dmsFaultInstanceActivityMapper.selectDmsFaultInstanceActivityByInstanceActivityId(activity.getInstanceActivityId());
|
|
|
|
DmsFaultInstanceActivity instanceActivity = dmsFaultInstanceActivityMapper.selectDmsFaultInstanceActivityByInstanceActivityId(activity.getInstanceActivityId());
|
|
|
|
if (instanceActivity.getProcessActivityId()==1021l){
|
|
|
|
if (instanceActivity.getProcessActivityId()==1021l){
|
|
|
|
dmsBillsFaultInstance.setCheckedFault(instanceActivity.getCheckedFault());
|
|
|
|
dmsBillsFaultInstance.setCheckedFault(instanceActivity.getCheckedFault());
|
|
|
|
}else {
|
|
|
|
DmsInstanceFile queryInstanceFile = new DmsInstanceFile();
|
|
|
|
|
|
|
|
// queryInstanceFile.setTargetType(DmsConstants.DMS_INSTANCE_FILE_TARGET_TYPE_FAULT_INSTANCE_ACTIVITY);
|
|
|
|
|
|
|
|
queryInstanceFile.setTargetId(activity.getInstanceActivityId());
|
|
|
|
|
|
|
|
queryInstanceFile.setTargetType("1");
|
|
|
|
|
|
|
|
List<DmsInstanceFile> dmsInstanceFiles = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile);
|
|
|
|
|
|
|
|
dmsBillsFaultInstance.setDmsInstanceFiles(dmsInstanceFiles);
|
|
|
|
dmsBillsFaultInstance.setConfirmTime(instanceActivity.getConfirmTime());
|
|
|
|
dmsBillsFaultInstance.setConfirmTime(instanceActivity.getConfirmTime());
|
|
|
|
dmsBillsFaultInstance.setRepairContent(instanceActivity.getRepairContent());
|
|
|
|
dmsBillsFaultInstance.setRepairContent(instanceActivity.getRepairContent());
|
|
|
|
dmsBillsFaultInstance.setProtectedMethod(instanceActivity.getProtectedMethod());
|
|
|
|
dmsBillsFaultInstance.setProtectedMethod(instanceActivity.getProtectedMethod());
|
|
|
|
dmsBillsFaultInstance.setRepairer(instanceActivity.getRepairer());
|
|
|
|
dmsBillsFaultInstance.setRepairer(instanceActivity.getRepairer());
|
|
|
|
dmsBillsFaultInstance.setRepairConfirm(instanceActivity.getRepairConfirm());
|
|
|
|
dmsBillsFaultInstance.setRepairConfirm(instanceActivity.getRepairConfirm());
|
|
|
|
|
|
|
|
dmsBillsFaultInstance.setProcessHandleResolution(instanceActivity.getProcessHandleResolution());
|
|
|
|
|
|
|
|
DmsInstanceFile queryInstanceFile1 = new DmsInstanceFile();
|
|
|
|
|
|
|
|
queryInstanceFile1.setTargetId(activity.getInstanceActivityId());
|
|
|
|
|
|
|
|
queryInstanceFile1.setTargetType("2");
|
|
|
|
|
|
|
|
List<DmsInstanceFile> dmsInstanceFiles1 = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile1);
|
|
|
|
|
|
|
|
dmsBillsFaultInstance.setDmsInstanceFiles1(dmsInstanceFiles1);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
dmsBillsFaultInstance.setFaultType(dmsFaultInstanceActivity.getFaultType());
|
|
|
|
dmsBillsFaultInstance.setFaultType(dmsFaultInstanceActivity.getFaultType());
|
|
|
@ -250,19 +262,19 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS
|
|
|
|
dmsBillsFaultInstance.setDeviceId(dmsFaultInstanceActivity.getDeviceId());
|
|
|
|
dmsBillsFaultInstance.setDeviceId(dmsFaultInstanceActivity.getDeviceId());
|
|
|
|
dmsBillsFaultInstance.setRepairType(dmsFaultInstanceActivity.getRepairType());
|
|
|
|
dmsBillsFaultInstance.setRepairType(dmsFaultInstanceActivity.getRepairType());
|
|
|
|
dmsBillsFaultInstance.setOutsrcId(dmsFaultInstanceActivity.getOutsrcId());
|
|
|
|
dmsBillsFaultInstance.setOutsrcId(dmsFaultInstanceActivity.getOutsrcId());
|
|
|
|
dmsBillsFaultInstance.setProcessHandleResolution(dmsFaultInstanceActivity.getProcessHandleResolution());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dmsBillsFaultInstance.setDmsFaultInstanceActivityList(null);
|
|
|
|
dmsBillsFaultInstance.setDmsFaultInstanceActivityList(null);
|
|
|
|
|
|
|
|
|
|
|
|
DmsInstanceFile queryInstanceFile = new DmsInstanceFile();
|
|
|
|
// DmsInstanceFile queryInstanceFile = new DmsInstanceFile();
|
|
|
|
// queryInstanceFile.setTargetType(DmsConstants.DMS_INSTANCE_FILE_TARGET_TYPE_FAULT_INSTANCE_ACTIVITY);
|
|
|
|
//// queryInstanceFile.setTargetType(DmsConstants.DMS_INSTANCE_FILE_TARGET_TYPE_FAULT_INSTANCE_ACTIVITY);
|
|
|
|
queryInstanceFile.setTargetId(dmsBillsFaultInstanceActivityList.get(0).getInstanceActivityId());
|
|
|
|
// queryInstanceFile.setTargetId(dmsBillsFaultInstanceActivityList.get(0).getInstanceActivityId());
|
|
|
|
queryInstanceFile.setTargetType("1");
|
|
|
|
// queryInstanceFile.setTargetType("1");
|
|
|
|
List<DmsInstanceFile> dmsInstanceFiles = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile);
|
|
|
|
// List<DmsInstanceFile> dmsInstanceFiles = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile);
|
|
|
|
// queryInstanceFile.setTargetId(dmsBillsFaultInstanceActivityList.get(1).getInstanceActivityId());
|
|
|
|
// queryInstanceFile.setTargetId(dmsBillsFaultInstanceActivityList.get(1).getInstanceActivityId());
|
|
|
|
// queryInstanceFile.setTargetType("2");
|
|
|
|
// queryInstanceFile.setTargetType("2");
|
|
|
|
// List<DmsInstanceFile> dmsInstanceFiles1 = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile);
|
|
|
|
// List<DmsInstanceFile> dmsInstanceFiles1 = dmsInstanceFileMapper.selectDmsInstanceFileList(queryInstanceFile);
|
|
|
|
dmsBillsFaultInstance.setDmsInstanceFiles(dmsInstanceFiles);
|
|
|
|
// dmsBillsFaultInstance.setDmsInstanceFiles(dmsInstanceFiles);
|
|
|
|
// dmsBillsFaultInstance.setDmsInstanceFiles1(dmsInstanceFiles1);
|
|
|
|
// dmsBillsFaultInstance.setDmsInstanceFiles1(dmsInstanceFiles1);
|
|
|
|
return dmsBillsFaultInstance;
|
|
|
|
return dmsBillsFaultInstance;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -377,8 +389,8 @@ public class DmsBillsFaultInstanceServiceImpl implements IDmsBillsFaultInstanceS
|
|
|
|
List<DmsFaultInstanceActivity> list = dmsBillsFaultInstanceMapper.selectFaults(repairInstanceId);
|
|
|
|
List<DmsFaultInstanceActivity> list = dmsBillsFaultInstanceMapper.selectFaults(repairInstanceId);
|
|
|
|
List<DmsFaultCompentsParts> parts = dmsBillsFaultInstanceMapper.selectParts(repairInstanceId);
|
|
|
|
List<DmsFaultCompentsParts> parts = dmsBillsFaultInstanceMapper.selectParts(repairInstanceId);
|
|
|
|
DmsFaultInstanceActivity activity = new DmsFaultInstanceActivity();
|
|
|
|
DmsFaultInstanceActivity activity = new DmsFaultInstanceActivity();
|
|
|
|
BeanUtils.copyProperties(list.get(1),activity);
|
|
|
|
BeanUtils.copyProperties(list.get(0),activity);
|
|
|
|
activity.setCheckedFault(list.get(0).getCheckedFault());
|
|
|
|
// activity.setCheckedFault(list.get(0).getCheckedFault());
|
|
|
|
activity.setParts(parts);
|
|
|
|
activity.setParts(parts);
|
|
|
|
return activity;
|
|
|
|
return activity;
|
|
|
|
}
|
|
|
|
}
|
|
|
|