Commit e298b547 by zhangxingmin

push

parent 470b2d7a
...@@ -1129,9 +1129,9 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService { ...@@ -1129,9 +1129,9 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
public Result objectSaveJkQuestion(String appointmentBizId, public Result objectSaveJkQuestion(String appointmentBizId,
ApiAnswerSaveRequest apiAnswerSaveRequest) { ApiAnswerSaveRequest apiAnswerSaveRequest) {
if (Objects.isNull(apiAnswerSaveRequest)) { // if (Objects.isNull(apiAnswerSaveRequest)) {
throw new BusinessException("问卷-答题提交对象不能为空"); // throw new BusinessException("问卷-答题提交对象不能为空");
} // }
ApiObjectSaveRequest apiObjectSaveRequest = new ApiObjectSaveRequest(); ApiObjectSaveRequest apiObjectSaveRequest = new ApiObjectSaveRequest();
apiObjectSaveRequest.setObjectBizId(appointmentBizId); apiObjectSaveRequest.setObjectBizId(appointmentBizId);
apiObjectSaveRequest.setObjectName("预约"); apiObjectSaveRequest.setObjectName("预约");
...@@ -1139,9 +1139,11 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService { ...@@ -1139,9 +1139,11 @@ public class ApiAppointmentServiceImpl implements ApiAppointmentService {
apiObjectSaveRequest.setQuestionnaireBizId("questionnaires_1001"); apiObjectSaveRequest.setQuestionnaireBizId("questionnaires_1001");
apiQuestionnairesFeignClient.objectSave(apiObjectSaveRequest); apiQuestionnairesFeignClient.objectSave(apiObjectSaveRequest);
//问卷-答题提交接口 //问卷-答题提交接口
if (!Objects.isNull(apiAnswerSaveRequest)) {
apiAnswerSaveRequest.setObjectBizId(appointmentBizId); apiAnswerSaveRequest.setObjectBizId(appointmentBizId);
apiAnswerSaveRequest.setQuestionnaireBizId("questionnaires_1001"); apiAnswerSaveRequest.setQuestionnaireBizId("questionnaires_1001");
apiQuestionnairesFeignClient.answerSave(apiAnswerSaveRequest); apiQuestionnairesFeignClient.answerSave(apiAnswerSaveRequest);
}
return Result.success(); return Result.success();
} }
......
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