|
@@ -16,7 +16,10 @@ import com.ym.mec.biz.dal.entity.*;
|
|
import com.ym.mec.biz.dal.enums.*;
|
|
import com.ym.mec.biz.dal.enums.*;
|
|
import com.ym.mec.biz.service.*;
|
|
import com.ym.mec.biz.service.*;
|
|
|
|
|
|
|
|
+import com.ym.mec.util.excel.POIUtil;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
|
+import org.slf4j.Logger;
|
|
|
|
+import org.slf4j.LoggerFactory;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -114,6 +117,8 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
return studentPaymentOrderDao;
|
|
return studentPaymentOrderDao;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ private final static Logger LOGGER = LoggerFactory.getLogger(StudentPaymentOrderServiceImpl.class);
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public StudentPaymentOrder findByUserAndActive(Integer userId, Integer activeRemark, String remark,String status) {
|
|
public StudentPaymentOrder findByUserAndActive(Integer userId, Integer activeRemark, String remark,String status) {
|
|
return studentPaymentOrderDao.findByUserAndActive(userId,activeRemark,remark,status);
|
|
return studentPaymentOrderDao.findByUserAndActive(userId,activeRemark,remark,status);
|
|
@@ -315,7 +320,7 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
}
|
|
}
|
|
|
|
|
|
if (status.equals("succeeded") ||
|
|
if (status.equals("succeeded") ||
|
|
- (status.equals("failed") && payingOrder.getCreateTime().before(DateUtil.addMinutes(new Date(), -35)))) {
|
|
|
|
|
|
+ (status.equals("failed") || payingOrder.getCreateTime().before(DateUtil.addMinutes(new Date(), -35)))) {
|
|
try {
|
|
try {
|
|
updateOrder(rpMap); //更新订单
|
|
updateOrder(rpMap); //更新订单
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
@@ -403,7 +408,8 @@ public class StudentPaymentOrderServiceImpl extends BaseServiceImpl<Long, Studen
|
|
confirm.put("confirm_amt", routeOrder.getRouteAmount());
|
|
confirm.put("confirm_amt", routeOrder.getRouteAmount());
|
|
confirm.put("div_members", divMembers);
|
|
confirm.put("div_members", divMembers);
|
|
try {
|
|
try {
|
|
- Payment.createConfirm(confirm);
|
|
|
|
|
|
+ Map<String, Object> map = Payment.createConfirm(confirm);
|
|
|
|
+ LOGGER.info("分账信息返回:",map);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|