This commit is contained in:
2023-09-01 10:46:54 +08:00
parent 554b1482ee
commit 3fd71220de
4 changed files with 26 additions and 16 deletions

View File

@@ -24,6 +24,7 @@ import com.jsowell.wxpay.service.WxAppletRemoteService;
import org.apache.commons.collections4.CollectionUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import javax.annotation.Resource;
@@ -35,7 +36,7 @@ import java.util.Map;
/**
* 描述订单逻辑
*/
public abstract class AbstractOrderLogic {
public abstract class AbstractOrderLogic implements InitializingBean {
protected Logger logger = LoggerFactory.getLogger(this.getClass());
@Resource

View File

@@ -39,6 +39,11 @@ import java.util.stream.Collectors;
@Service
public class DelayMerchantOrderLogic extends AbstractOrderLogic {
@Override
public void afterPropertiesSet() throws Exception {
}
/**
* 余额支付订单
*/

View File

@@ -38,6 +38,10 @@ import java.util.stream.Collectors;
@Service
public class NotDelayMerchantOrderLogic extends AbstractOrderLogic{
@Override
public void afterPropertiesSet() throws Exception {
}
/**
* 余额支付订单

View File

@@ -505,21 +505,21 @@ export default {
return [this.lastMonitorData];
},
retryRefundFlag() {
if (this.orderInfo == null || this.orderInfo.orderStatus !== "6") {
return false;
}
if (this.payDetail[0] == null || this.payDetail[0].payMode !== "4") {
return false;
}
if (
this.payDetail[0].refundAmount == null ||
this.payDetail[0].refundAmount <= 0.0
) {
return false;
}
if (this.orderRefundInfoList.length === 0) {
return false;
}
// if (this.orderInfo == null || this.orderInfo.orderStatus !== "6") {
// return false;
// }
// if (this.payDetail[0] == null || this.payDetail[0].payMode !== "4") {
// return false;
// }
// if (
// this.payDetail[0].refundAmount == null ||
// this.payDetail[0].refundAmount <= 0.0
// ) {
// return false;
// }
// if (this.orderRefundInfoList.length === 0) {
// return false;
// }
return true;
},
},