|
|
|
@ -6,7 +6,9 @@ import cn.hutool.core.date.DateUtil; |
|
|
|
import cn.hutool.core.util.IdUtil; |
|
|
|
import cn.hutool.core.util.ObjectUtil; |
|
|
|
import cn.hutool.core.util.StrUtil; |
|
|
|
import cn.hutool.http.HtmlUtil; |
|
|
|
import com.ccsens.client.persist.dao.AmsDao; |
|
|
|
import com.ccsens.client.persist.dao.ClientEvaDao; |
|
|
|
import com.ccsens.client.service.AmsReportService; |
|
|
|
import com.ccsens.client.service.IReportInfoService; |
|
|
|
import com.ccsens.client.service.IRmsService; |
|
|
|
@ -72,6 +74,8 @@ public class AmsReportServiceImpl implements AmsReportService { |
|
|
|
private HmsDoctorSignMapper hmsDoctorSignMapper; |
|
|
|
@Resource |
|
|
|
private HmsVersionMapper hmsVersionMapper; |
|
|
|
@Resource |
|
|
|
private ClientEvaDao clientEvaDao; |
|
|
|
@Value("${file.grPath}") |
|
|
|
private String grPath; |
|
|
|
@Value("${file.ysPath}") |
|
|
|
@ -723,7 +727,7 @@ public class AmsReportServiceImpl implements AmsReportService { |
|
|
|
row1 = Rows.of( |
|
|
|
scores.get(i).getName(), |
|
|
|
scores.get(i).getScore() == null ? "" : scores.get(i).getScore() + "", |
|
|
|
StrUtil.isEmpty(impression) ? qmsScaleAssConf == null ? null : qmsScaleAssConf.getResult() : impression |
|
|
|
StrUtil.isEmpty(impression) ? qmsScaleAssConf == null ? StrUtil.isEmpty(scores.get(i).getImpression()) ? null : scores.get(i).getImpression() : qmsScaleAssConf.getResult() : impression |
|
|
|
).create(); |
|
|
|
} |
|
|
|
//查询类型
|
|
|
|
@ -823,6 +827,22 @@ public class AmsReportServiceImpl implements AmsReportService { |
|
|
|
params.put("fzjyFlag" + i, true); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//添加中医体质辨识防治建议
|
|
|
|
if ("TZBS_BZ".equals(scores.get(i).getCode()) || "TZBS_LN".equals(scores.get(i).getCode())) { |
|
|
|
//查询防治建议
|
|
|
|
List<String> list1 = clientEvaDao.queryYsfaList(scores.get(i).getCode()); |
|
|
|
if (CollUtil.isNotEmpty(list1)) { |
|
|
|
String ysfas = list1.get(0); |
|
|
|
for (String ysfa : list1) { |
|
|
|
ysfas += HtmlUtil.unescape(ysfa); |
|
|
|
} |
|
|
|
params.put("fzjy_" + i, ysfas); |
|
|
|
params.put("fzjyFlag" + i, true); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
params.put("table_" + i, tableData); |
|
|
|
params.put("flag" + i, true); |
|
|
|
} |
|
|
|
@ -1069,8 +1089,8 @@ public class AmsReportServiceImpl implements AmsReportService { |
|
|
|
TextRenderData textStr = Texts.of(str).bold().create(); |
|
|
|
TextRenderData textName = Texts.of(scores.get(i).getName()).bold().create(); |
|
|
|
TextRenderData textScore = Texts.of(scores.get(i).getScore() == null ? "" : scores.get(i).getScore() + "").bold().create(); |
|
|
|
TextRenderData textImpression = Texts.of(qmsScaleAssConf == null ? null : qmsScaleAssConf.getResult()).bold().create(); |
|
|
|
|
|
|
|
//中医体质辨识添加结论 结论为初步印象
|
|
|
|
TextRenderData textImpression = Texts.of(qmsScaleAssConf == null ? "TZBS_LN".equals(scores.get(i).getCode()) || "TZBS_BZ".equals(scores.get(i).getCode()) ? scores.get(i).getImpression() : null : qmsScaleAssConf.getResult()).bold().create(); |
|
|
|
//查询一二级套餐
|
|
|
|
RowRenderData row1 = Rows.of( |
|
|
|
textStr, |
|
|
|
|