|
|
|
@ -1,9 +1,8 @@
|
|
|
|
|
package com.supervision.manage.controller.diseasemanage;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
|
|
import com.supervision.manage.service.DiseaseTreatmentPlanManageService;
|
|
|
|
|
import com.supervision.model.ConfigTreatmentPlan;
|
|
|
|
|
import com.supervision.model.DiseaseTreatmentPlan;
|
|
|
|
|
import com.supervision.vo.manage.*;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
@ -47,7 +46,11 @@ public class DiseaseTreatmentPlanManageController {
|
|
|
|
|
|
|
|
|
|
List<DiseaseTreatmentPlanResVo> diseaseTreatmentPlanResVos = diseaseTreatmentPlanManageService.queryListByDiseaseId(diseaseId);
|
|
|
|
|
// 前端大哥强烈要求把treatmentPlanId 转换为 firstMeasuresId
|
|
|
|
|
diseaseTreatmentPlanResVos.forEach(vo -> vo.setFirstMeasuresId(vo.getTreatmentPlanId()));
|
|
|
|
|
diseaseTreatmentPlanResVos.forEach(vo -> {
|
|
|
|
|
if (CollUtil.isEmpty(vo.getDrugIds())) {
|
|
|
|
|
vo.setFirstMeasuresId(vo.getTreatmentPlanId());
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
return diseaseTreatmentPlanResVos;
|
|
|
|
|
|
|
|
|
|