fix: 懒加载bug修复
This commit is contained in:
@@ -29,6 +29,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.hibernate.Hibernate;
|
||||||
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
@@ -128,13 +129,8 @@ public class TbPayServiceImpl implements TbPayService {
|
|||||||
for (TbCashierCart cashierCart : cashierCarts) {
|
for (TbCashierCart cashierCart : cashierCarts) {
|
||||||
body.append(cashierCart.getName());
|
body.append(cashierCart.getName());
|
||||||
}
|
}
|
||||||
|
TbMerchantThirdApply thirdApply = merchantThirdApplyRepository.findById(merchantId)
|
||||||
|
.orElseThrow(() -> new BadRequestException("三方支付信息不存在"));
|
||||||
TbMerchantThirdApply thirdApply = merchantThirdApplyRepository.getById(merchantId);
|
|
||||||
if (ObjectUtil.isEmpty(thirdApply) || ObjectUtil.isNull(thirdApply)) {
|
|
||||||
throw new BadRequestException("三方支付信息不存在");
|
|
||||||
}
|
|
||||||
|
|
||||||
String payType;
|
String payType;
|
||||||
String payName;
|
String payName;
|
||||||
String qpay;
|
String qpay;
|
||||||
|
|||||||
Reference in New Issue
Block a user