|
@@ -204,9 +204,9 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
*
|
|
*
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public void initRelationOutSide() {
|
|
|
|
|
|
+ public void initRelationOutSide(String projectId) {
|
|
//外部报验单
|
|
//外部报验单
|
|
- List<RelactionNodeStateBo> nodeStaeList = initNodeStatusOutside();
|
|
|
|
|
|
+ List<RelactionNodeStateBo> nodeStaeList = initNodeStatusOutside(projectId);
|
|
|
|
|
|
SysUserVo user = zhcxCommon.getCurrentUser();
|
|
SysUserVo user = zhcxCommon.getCurrentUser();
|
|
OperDto oper = new OperDto();
|
|
OperDto oper = new OperDto();
|
|
@@ -222,9 +222,9 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
* 初始化-内部报验单
|
|
* 初始化-内部报验单
|
|
*/
|
|
*/
|
|
@Override
|
|
@Override
|
|
- public void initRelationInSide() {
|
|
|
|
|
|
+ public void initRelationInSide(String projectId) {
|
|
//内部报验单
|
|
//内部报验单
|
|
- List<RelactionNodeStateBo> nodeStateInsideList = initNodeStatusInside();
|
|
|
|
|
|
+ List<RelactionNodeStateBo> nodeStateInsideList = initNodeStatusInside(projectId);
|
|
|
|
|
|
SysUserVo user = zhcxCommon.getCurrentUser();
|
|
SysUserVo user = zhcxCommon.getCurrentUser();
|
|
OperDto oper = new OperDto();
|
|
OperDto oper = new OperDto();
|
|
@@ -238,8 +238,13 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
/**
|
|
/**
|
|
* 保存外部报验单
|
|
* 保存外部报验单
|
|
*/
|
|
*/
|
|
- private List<RelactionNodeStateBo> initNodeStatusInside() {
|
|
|
|
- List<JSONObject> inspectionList = insideInspectionService.getInitNodeStateInspection();
|
|
|
|
|
|
+ private List<RelactionNodeStateBo> initNodeStatusInside(String projectId) {
|
|
|
|
+ List<JSONObject> inspectionList;
|
|
|
|
+ if(ObjectUtil.isEmpty(projectId)) {
|
|
|
|
+ inspectionList = insideInspectionService.getInitNodeStateInspection();
|
|
|
|
+ } else {
|
|
|
|
+ inspectionList = insideInspectionService.getInitNodeStateInspectionByProjectId(projectId);
|
|
|
|
+ }
|
|
|
|
|
|
return assembleInitNodeStatusList(inspectionList, "inside");
|
|
return assembleInitNodeStatusList(inspectionList, "inside");
|
|
}
|
|
}
|
|
@@ -247,8 +252,13 @@ public class ZhcxItpProjectNodeStateServiceImpl extends ServiceImpl<ZhcxItpProje
|
|
/**
|
|
/**
|
|
* 保存外部报验单
|
|
* 保存外部报验单
|
|
*/
|
|
*/
|
|
- private List<RelactionNodeStateBo> initNodeStatusOutside() {
|
|
|
|
- List<JSONObject> inspectionList = outsideInspectionItpService.getInitNodeStateInspection();
|
|
|
|
|
|
+ private List<RelactionNodeStateBo> initNodeStatusOutside(String projectId) {
|
|
|
|
+ List<JSONObject> inspectionList;
|
|
|
|
+ if(ObjectUtil.isEmpty(projectId)) {
|
|
|
|
+ inspectionList = outsideInspectionItpService.getInitNodeStateInspection();
|
|
|
|
+ } else {
|
|
|
|
+ inspectionList = outsideInspectionItpService.getInitNodeStateInspectionByProjectId(projectId);
|
|
|
|
+ }
|
|
|
|
|
|
return assembleInitNodeStatusList(inspectionList, "outside");
|
|
return assembleInitNodeStatusList(inspectionList, "outside");
|
|
}
|
|
}
|