|
@@ -151,16 +151,23 @@ public class ReportAnalysisController extends BaseController {
|
|
|
if (StringUtils.isEmpty(structureNo)){
|
|
|
return fail("组织编号不能为空");
|
|
|
}
|
|
|
+ //获取到计划下任务(目前只有一个)
|
|
|
+ TestPlanContendEntity contendEntity = planContendService.findOneByByTestPlanId(planId);
|
|
|
+ if (contendEntity == null){
|
|
|
+ return fail("内容不存在请确认,请联系管理员");
|
|
|
+ }
|
|
|
+ flag = contendEntity.getFlag();
|
|
|
//获取到子节点
|
|
|
List<StructureEntity> child = structureService.getChildByParent(structureNo,plan.getInstitutionNo());
|
|
|
if (CollectionUtils.isEmpty(child)){
|
|
|
return fail("不存在子节点,请重新选择");
|
|
|
}
|
|
|
+ String finalFlag = flag;
|
|
|
child.forEach(item->{
|
|
|
JSONObject org = new JSONObject();
|
|
|
org.put("name",item.getStructureName());
|
|
|
//获取到该量表规则
|
|
|
- List<ScaleMarksEntity> marksEntities = scaleMarksService.getScaleMarksByFlag(flag);
|
|
|
+ List<ScaleMarksEntity> marksEntities = scaleMarksService.getScaleMarksByFlag(finalFlag);
|
|
|
if (CollectionUtils.isEmpty(marksEntities)){
|
|
|
org.put("value",null);
|
|
|
}
|