|
|
|
@ -21,10 +21,15 @@ import com.hchbox.module.entity.RechargeOrder;
|
|
|
|
|
import com.hchbox.module.entity.SellerAccount;
|
|
|
|
|
import com.hchbox.exception.TaoMiCommException;
|
|
|
|
|
import com.hchbox.model.param.CommonResult;
|
|
|
|
|
import com.hchbox.module.entity.vo.PayTwoOrderVo;
|
|
|
|
|
import com.hchbox.module.service.AccountRechargeService;
|
|
|
|
|
import com.hchbox.util.GenerateIdUtils;
|
|
|
|
|
import com.hchbox.util.PageUtil;
|
|
|
|
|
import com.hchbox.util.QueryHelp;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.data.domain.Page;
|
|
|
|
|
import org.springframework.data.domain.Pageable;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
import com.alipay.easysdk.factory.Factory;
|
|
|
|
@ -39,6 +44,7 @@ import java.nio.charset.StandardCharsets;
|
|
|
|
|
import java.time.LocalTime;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.Objects;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author wjt
|
|
|
|
@ -227,6 +233,19 @@ public class AccountRechargeServiceImpl implements AccountRechargeService {
|
|
|
|
|
return new CommonResult<String>().forbidden(StatusEnum.PAYMENT_FAILED.getDesc());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public CommonResult<Page<PayTwoOrder>> getOrderSnAll(String nickName, Pageable pageable) {
|
|
|
|
|
PayTwoOrderVo payTwoOrderVo = new PayTwoOrderVo();
|
|
|
|
|
if (!Objects.equals(nickName, "") && nickName != null) {
|
|
|
|
|
payTwoOrderVo.setNickname(nickName);
|
|
|
|
|
}
|
|
|
|
|
Page<PayTwoOrder> payTwoOrders = payTwoOrderRepository.findAll(
|
|
|
|
|
((root, criteriaQuery, cb) ->
|
|
|
|
|
QueryHelp.getPredicate(root, payTwoOrderVo, cb)), pageable);
|
|
|
|
|
return new CommonResult<Page<PayTwoOrder>>().success(
|
|
|
|
|
PageUtil.toPage(payTwoOrders.getContent(), payTwoOrders.getTotalElements()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public CommonResult<String> pcTwoNotifyResponse(HttpServletRequest request) {
|
|
|
|
|
int i = 0;
|
|
|
|
|