体检报告下载优化

This commit is contained in:
xiezhijun 2021-03-16 18:40:09 +08:00
parent b65f9534e1
commit 85050259c9
3 changed files with 14 additions and 19 deletions

Binary file not shown.

View File

@ -381,14 +381,17 @@ public class HealthyDetailRequest implements Serializable {
private String otherPhysicalSigns; private String otherPhysicalSigns;
/** 气血数据 */ /** 气血数据 */
private String bloodData; private String[] bloodData;
private String bloodDataString;
//备注 //备注
private String remark; private String remark;
/** 湿气数据 */ /** 湿气数据 */
private String moistureDate; private String[] moistureDate;
private String moistureDateString;
/** 减脂指导 **/ /** 减脂指导 **/
private String guidance; private String guidance;

View File

@ -180,7 +180,7 @@ public class SysCustomerHealthyServiceImpl implements ISysCustomerHealthyService
"secondSmoke","workIndustry","workType","defecationNum","defecationTime","defecationShape", "secondSmoke","workIndustry","workType","defecationNum","defecationTime","defecationShape",
"defecationSmell","defecationSpeed","defecationColor","motionNum","motionDuration","motionTime", "defecationSmell","defecationSpeed","defecationColor","motionNum","motionDuration","motionTime",
"motion","motionField","sleepTime","sleepQuality","sleepDrugFlag","sleepDrug","stayupLateFlag","stayupLateWeekNum", "motion","motionField","sleepTime","sleepQuality","sleepDrugFlag","sleepDrug","stayupLateFlag","stayupLateWeekNum",
"physicalSigns","moistureDate","bloodData","familyIllnessHistory","operationHistory","nearOperationFlag", "physicalSigns","moistureDateString","bloodDataString","familyIllnessHistory","operationHistory","nearOperationFlag",
"recoveryeSituation","longEatDrugFlag","longEatDrugClassify","allergyFlag","allergySituation","allergen" "recoveryeSituation","longEatDrugFlag","longEatDrugClassify","allergyFlag","allergySituation","allergen"
}; };
@ -191,27 +191,19 @@ public class SysCustomerHealthyServiceImpl implements ISysCustomerHealthyService
}; };
private Map<String,String> getReportData(SysCustomerHealthy sysCustomerHealthy, HealthyDetailRequest healthyDetailRequest){ private Map<String,String> getReportData(SysCustomerHealthy sysCustomerHealthy, HealthyDetailRequest healthyDetailRequest){
if(StringUtils.isNotEmpty(sysCustomerHealthy.getBloodData())){ if(healthyDetailRequest.getBloodData() != null){
SysDictData param = new SysDictData();
param.setDictType("sys_moisture_data");
param.setDictValueList(Arrays.asList(sysCustomerHealthy.getBloodData().split(",")));
List<SysDictData> bloodData = selectDictDataByTypeAndValue(param);
String bloodString = ""; String bloodString = "";
for (SysDictData blood : bloodData) { for (String value : healthyDetailRequest.getBloodData()) {
bloodString += blood.getDictValue() + "" +blood.getDictLabel() + "\n"; bloodString += value + "\n";
} }
healthyDetailRequest.setBloodData(bloodString); healthyDetailRequest.setBloodDataString(bloodString);
} }
if(StringUtils.isNotEmpty(sysCustomerHealthy.getMoistureDate())){ if(healthyDetailRequest.getMoistureDate() != null){
SysDictData param = new SysDictData();
param.setDictType("sys_blood_data");
param.setDictValueList(Arrays.asList(sysCustomerHealthy.getBloodData().split(",")));
List<SysDictData> moistureData = selectDictDataByTypeAndValue(param);
String moistureString = ""; String moistureString = "";
for (SysDictData moisture : moistureData) { for (String value : healthyDetailRequest.getMoistureDate()) {
moistureString += moisture.getDictValue() + "" + moisture.getDictLabel() + "\n"; moistureString += value + "\n";
} }
healthyDetailRequest.setMoistureDate(moistureString); healthyDetailRequest.setMoistureDateString(moistureString);
} }
Map<String,String> data = new HashMap<>(); Map<String,String> data = new HashMap<>();
for (String key : healthyAttrNameAray) { for (String key : healthyAttrNameAray) {