Commit f6be6fa0 by jianan

新单跟进36

parent 2e2f69e6
...@@ -525,13 +525,13 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService { ...@@ -525,13 +525,13 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
// 当前登录用户 // 当前登录用户
AuthUserDto currentLoginUser = SecurityUtil.getCurrentLoginUser(); AuthUserDto currentLoginUser = SecurityUtil.getCurrentLoginUser();
// 远程调用-问卷-答题提交接口 // 远程调用-问卷-答题提交接口
ApiAnswerSaveRequest answerSaveRequest = new ApiAnswerSaveRequest(); ApiObjectSaveRequest apiObjectSaveRequest = new ApiObjectSaveRequest();
answerSaveRequest.setObjectBizId(policyBizId); apiObjectSaveRequest.setObjectBizId(policyBizId);
answerSaveRequest.setQuestionnaireBizId("questionnaires_1001"); apiObjectSaveRequest.setQuestionnaireBizId("questionnaires_1001");
Result<ApiAnswerSaveResponse> apiAnswerSaveResponseResult = apiQuestionnairesFeignClient.answerSave(answerSaveRequest); log.info("新单跟进-问卷-答题提交接口-请求参数: {}", apiObjectSaveRequest.toString());
if (!Objects.isNull(apiAnswerSaveResponseResult.getData())) { Result objectSaveResult = apiQuestionnairesFeignClient.objectSave(apiObjectSaveRequest);
ApiAnswerSaveResponse apiAnswerSaveResponse = apiAnswerSaveResponseResult.getData(); if (!Objects.isNull(objectSaveResult.getData())) {
log.info("新单跟进-问卷-答题提交接口-返回结果: {}", apiAnswerSaveResponse.toString()); log.info("新单跟进-问卷-答题提交接口-返回结果: {}", objectSaveResult.toString());
} }
// 查询问卷答案 // 查询问卷答案
ApiBatchSaveAnswerRequest batchSaveAnswerRequest = new ApiBatchSaveAnswerRequest(); ApiBatchSaveAnswerRequest batchSaveAnswerRequest = new ApiBatchSaveAnswerRequest();
...@@ -539,6 +539,7 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService { ...@@ -539,6 +539,7 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
batchSaveAnswerRequest.setNewObjectBizId(policyBizId); batchSaveAnswerRequest.setNewObjectBizId(policyBizId);
batchSaveAnswerRequest.setQuestionnaireBizId("questionnaires_1001"); batchSaveAnswerRequest.setQuestionnaireBizId("questionnaires_1001");
batchSaveAnswerRequest.setCreatorId(currentLoginUser.getUserBizId()); batchSaveAnswerRequest.setCreatorId(currentLoginUser.getUserBizId());
log.info("新单跟进-问卷-批量保存答案接口-请求参数: {}", batchSaveAnswerRequest.toString());
Result batchSaveAnswer = apiQuestionnairesFeignClient.batchSaveAnswer(batchSaveAnswerRequest); Result batchSaveAnswer = apiQuestionnairesFeignClient.batchSaveAnswer(batchSaveAnswerRequest);
if (!Objects.isNull(batchSaveAnswer.getData())) { if (!Objects.isNull(batchSaveAnswer.getData())) {
log.info("新单跟进-问卷-批量保存答案接口-返回结果: {}", batchSaveAnswer.toString()); log.info("新单跟进-问卷-批量保存答案接口-返回结果: {}", batchSaveAnswer.toString());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment