|
@@ -12,6 +12,8 @@ import com.keao.edu.thirdparty.yqpay.YqPayFeignService;
|
|
|
import com.keao.edu.thirdparty.yqpay.YqPayUtil;
|
|
|
import com.keao.edu.user.dao.ExamOrganizationRelationDao;
|
|
|
import com.keao.edu.user.dao.ExamRegistrationPaymentDao;
|
|
|
+import com.keao.edu.user.dto.ExamPaymentInfo;
|
|
|
+import com.keao.edu.user.dto.ExamRegistrationDto;
|
|
|
import com.keao.edu.user.dto.ExamRegistrationPaymentDto;
|
|
|
import com.keao.edu.user.dto.StudentExamPaymentDto;
|
|
|
import com.keao.edu.user.entity.ExamOrganizationRelation;
|
|
@@ -59,13 +61,18 @@ public class ExamRegistrationPaymentServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ExamRegistrationPayment getByOrderNo(String OrderNo) {
|
|
|
- return examRegistrationPaymentDao.getByOrderNo(OrderNo);
|
|
|
+ public ExamRegistrationPayment getByOrderNo(String orderNo) {
|
|
|
+ return examRegistrationPaymentDao.getByOrderNo(orderNo);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public StudentExamPaymentDto getExamOrderInfo(String orderNo) {
|
|
|
- return examRegistrationPaymentDao.getOrderInfo(orderNo);
|
|
|
+ public ExamPaymentInfo getExamOrderInfo(String orderNo) {
|
|
|
+ ExamPaymentInfo examPaymentInfo = new ExamPaymentInfo();
|
|
|
+ ExamRegistrationPayment order = examRegistrationPaymentDao.getByOrderNo(orderNo);
|
|
|
+ ExamRegistrationDto examRegistration = examRegistrationService.getExamRegistration(order.getExamRegistrationId());
|
|
|
+ examPaymentInfo.setExamRegistrationPayment(order);
|
|
|
+ examPaymentInfo.setExamRegistrationDto(examRegistration);
|
|
|
+ return examPaymentInfo;
|
|
|
}
|
|
|
|
|
|
@Override
|