Commit e298b547 by zhangxingmin

push

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