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