店铺流水调用售后模块直接船渡wrapper调整
This commit is contained in:
parent
af52a68abc
commit
613a808cec
@ -160,7 +160,7 @@ public class StoreFlowServiceImpl extends ServiceImpl<StoreFlowMapper, StoreFlow
|
||||
//最终结算金额
|
||||
storeFlow.setBillPrice(CurrencyUtil.add(CurrencyUtil.add(storeFlow.getFinalPrice(), storeFlow.getDistributionRebate()), storeFlow.getCommissionPrice()));
|
||||
//获取第三方支付流水号
|
||||
RefundLog refundLog = refundLogService.getOne(new LambdaQueryWrapper<RefundLog>().eq(RefundLog::getAfterSaleNo, afterSale.getSn()));
|
||||
RefundLog refundLog = refundLogService.queryByAfterSaleSn(afterSale.getSn());
|
||||
storeFlow.setTransactionId(refundLog.getReceivableNo());
|
||||
storeFlow.setPaymentName(refundLog.getPaymentName());
|
||||
this.save(storeFlow);
|
||||
|
@ -10,4 +10,10 @@ import com.baomidou.mybatisplus.extension.service.IService;
|
||||
* @since 2020-12-19 09:25
|
||||
*/
|
||||
public interface RefundLogService extends IService<RefundLog> {
|
||||
/**
|
||||
* 根据售后sn查询退款日志
|
||||
* @param sn
|
||||
* @return
|
||||
*/
|
||||
RefundLog queryByAfterSaleSn(String sn);
|
||||
}
|
||||
|
@ -3,9 +3,8 @@ package cn.lili.modules.payment.serviceimpl;
|
||||
import cn.lili.modules.payment.entity.RefundLog;
|
||||
import cn.lili.modules.payment.mapper.RefundLogMapper;
|
||||
import cn.lili.modules.payment.service.RefundLogService;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
@ -19,5 +18,8 @@ import org.springframework.transaction.annotation.Transactional;
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public class RefundLogServiceImpl extends ServiceImpl<RefundLogMapper, RefundLog> implements RefundLogService {
|
||||
|
||||
|
||||
@Override
|
||||
public RefundLog queryByAfterSaleSn(String sn) {
|
||||
return this.getOne(new LambdaUpdateWrapper<RefundLog>().eq(RefundLog::getAfterSaleNo, sn));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user