RefundVoucherServiceImpl.java 1.1 KB

123456789101112131415161718192021222324252627282930
  1. package com.ylx.massage.service.impl;
  2. import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
  3. import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4. import com.ylx.massage.mapper.RefundVoucherMapper;
  5. import com.ylx.massage.domain.RefundVoucher;
  6. import com.ylx.massage.service.RefundVoucherService;
  7. import org.springframework.stereotype.Service;
  8. import org.springframework.transaction.annotation.Transactional;
  9. /**
  10. * 退款单(RefundVoucher)表服务实现类
  11. *
  12. * @author makejava
  13. * @since 2024-07-02 17:42:10
  14. */
  15. @Service("refundVoucherService")
  16. public class RefundVoucherServiceImpl extends ServiceImpl<RefundVoucherMapper, RefundVoucher> implements RefundVoucherService {
  17. @Override
  18. @Transactional(rollbackFor = Exception.class)
  19. public void refundWechatCallback(String refundNo) {
  20. LambdaQueryWrapper<RefundVoucher> objectLambdaQueryWrapper = new LambdaQueryWrapper<>();
  21. objectLambdaQueryWrapper.eq(RefundVoucher::getRefundNo,refundNo);
  22. RefundVoucher one = this.getOne(objectLambdaQueryWrapper);
  23. one.setReStatus(1);
  24. this.updateById(one);
  25. }
  26. }