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