|
@@ -10,6 +10,7 @@ import com.keao.edu.thirdparty.yqpay.RsqMsg;
|
|
|
import com.keao.edu.thirdparty.yqpay.YqPayFeignService;
|
|
|
import com.keao.edu.thirdparty.yqpay.YqPayUtil;
|
|
|
import com.keao.edu.user.dao.ExamRegistrationPaymentDao;
|
|
|
+import com.keao.edu.user.dto.StudentExamPaymentDto;
|
|
|
import com.keao.edu.user.entity.ExamRegistration;
|
|
|
import com.keao.edu.user.entity.ExamRegistrationPayment;
|
|
|
import com.keao.edu.user.enums.StudentRegistrationStatusEnum;
|
|
@@ -49,8 +50,13 @@ public class ExamRegistrationPaymentServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public StudentExamPaymentDto getExamOrderInfo(String orderNo) {
|
|
|
+ return examRegistrationPaymentDao.getOrderInfo(orderNo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
@Transactional(rollbackFor = Exception.class)
|
|
|
- public ExamRegistrationPayment updateOrder(Map<String,String> rpMap) {
|
|
|
+ public ExamRegistrationPayment updateOrder(Map<String, String> rpMap) {
|
|
|
ExamRegistrationPayment order = examRegistrationPaymentDao.getByOrderNo(rpMap.get("orderNo"));
|
|
|
if (order == null || !order.getTransStatus().equals(TransStatusEnum.ING)) {
|
|
|
return order;
|
|
@@ -123,10 +129,10 @@ public class ExamRegistrationPaymentServiceImpl extends BaseServiceImpl<Long, Ex
|
|
|
String transNo = rpMap.get("orderNo");
|
|
|
|
|
|
rpMap.put("channelType", channelType);
|
|
|
- rpMap.put("memo",memo);
|
|
|
- rpMap.put("transStatus",status.getCode());
|
|
|
- rpMap.put("orderNo",orderNo);
|
|
|
- rpMap.put("transNo",transNo);
|
|
|
+ rpMap.put("memo", memo);
|
|
|
+ rpMap.put("transStatus", status.getCode());
|
|
|
+ rpMap.put("orderNo", orderNo);
|
|
|
+ rpMap.put("transNo", transNo);
|
|
|
|
|
|
if (orderNoList.contains(orderNo)) {
|
|
|
orderNoList.remove(orderNo);
|