From 22d199559342c1ccb3a0a8a5b5ee50e973819e16 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期五, 19 一月 2024 11:31:19 +0800 Subject: [PATCH] Merge branch 'master-prod-new' into chenjiahe-再生俱乐部 --- phi_platform_user/src/main/java/com/hx/phip/service/questionnaire/impl/QuestionnaireServiceImpl.java | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/phi_platform_user/src/main/java/com/hx/phip/service/questionnaire/impl/QuestionnaireServiceImpl.java b/phi_platform_user/src/main/java/com/hx/phip/service/questionnaire/impl/QuestionnaireServiceImpl.java index f12b304..f9a3062 100644 --- a/phi_platform_user/src/main/java/com/hx/phip/service/questionnaire/impl/QuestionnaireServiceImpl.java +++ b/phi_platform_user/src/main/java/com/hx/phip/service/questionnaire/impl/QuestionnaireServiceImpl.java @@ -446,6 +446,7 @@ StringBuilder proposal = new StringBuilder(); StringBuilder nurse = new StringBuilder(); StringBuilder doctor = new StringBuilder(); + StringBuilder reception = new StringBuilder(); //List<String> clozeIds = Arrays.asList(questionInvestigateConfig.getNewProposal(), questionInvestigateConfig.getOldProposal()); Integer isHighQuality = 0; QuestionTitle questionTitle = null; @@ -489,6 +490,13 @@ doctor.append(","); } } + }else if (QuestionTitle.SPECIAL_TYPE_RECEPTION.equals(questionTitle.getSpecialType())){ + for (int s = 0; s < answerDto.getAnswer().length; s++) { + reception.append(answerDto.getAnswer()[s]); + if (s != answerDto.getAnswer().length - 1) { + reception.append(","); + } + } } } } @@ -507,7 +515,9 @@ if (doctor.length() > 0){ data.setDoctorScore(doctor.toString()); } - + if (reception.length() > 0){ + data.setReceptionScore(reception.toString()); + } data.setIsHighQuality(isHighQuality); int i = investigateDataMapper.insert(data); if (i != 1) { -- Gitblit v1.8.0