|
@@ -12,20 +12,18 @@ import com.ym.mec.biz.service.StudentRegistrationService;
|
|
|
import com.ym.mec.biz.service.VipGroupService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.thirdparty.adapay.Pay;
|
|
|
-import com.ym.mec.thirdparty.union.NotifyMsg;
|
|
|
import com.ym.mec.thirdparty.yqpay.Msg;
|
|
|
import com.ym.mec.thirdparty.yqpay.YqPayUtil;
|
|
|
-import com.ym.mec.thirdparty.yqpay.YqQueryService;
|
|
|
+import com.ym.mec.thirdparty.yqpay.YqPayFeignService;
|
|
|
+import com.ym.mec.thirdparty.yqpay.RsqMsg;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.apache.commons.lang.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
-import org.snaker.engine.core.OrderService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.scheduling.annotation.EnableScheduling;
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
-import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
@@ -47,7 +45,7 @@ public class StudentOrderController extends BaseController {
|
|
|
@Autowired
|
|
|
private MusicGroupService musicGroupService;
|
|
|
@Autowired
|
|
|
- private YqQueryService yqQueryService;
|
|
|
+ private YqPayFeignService yqQueryService;
|
|
|
|
|
|
// @PostMapping("/notify")
|
|
|
// public String notify(@ModelAttribute NotifyMsg notifyMsg) {
|
|
@@ -148,7 +146,7 @@ public class StudentOrderController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- //@Scheduled(cron = "0/5 * * * * ?")
|
|
|
+ @Scheduled(cron = "0/5 * * * * ?")
|
|
|
public void getOrderStatus() throws Exception {
|
|
|
List<StudentPaymentOrder> payingOrders = studentPaymentOrderService.findOrdersByStatus(DealStatusEnum.ING, "YQPAY");
|
|
|
String merOrderNos = ""; //
|
|
@@ -168,8 +166,11 @@ public class StudentOrderController extends BaseController {
|
|
|
Map<String, Object> resultMap = new LinkedHashMap<>();
|
|
|
resultMap.put("merOrderNoList", merOrderNos);
|
|
|
Map<String, Object> requestMap = YqPayUtil.getRequestMap(notifyUrl, resultMap);
|
|
|
- Msg queryRs = yqQueryService.orderQuery(requestMap);
|
|
|
- // = yqQueryService.orderQuery(requestMap);
|
|
|
+
|
|
|
+ RsqMsg rsqMsg = new RsqMsg(requestMap);
|
|
|
+
|
|
|
+ Msg queryRs = yqQueryService.orderQuery(rsqMsg);
|
|
|
+
|
|
|
logger.info("查询易乾结果" +queryRs.toString());
|
|
|
//logger.info("查询易乾结果" + queryRs.toString());
|
|
|
if (queryRs.getCode().equals("88")) {
|