AccountFreezdServiceImpl.java 958 B

123456789101112131415161718192021222324252627282930313233
  1. package com.txz.cif.service.impl;
  2. import com.txz.cif.dao.AccountFreezdMapper;
  3. import com.txz.cif.model.AccountFreezd;
  4. import com.txz.cif.service.AccountFreezdService;
  5. import com.txz.cif.core.AbstractService;
  6. import org.springframework.stereotype.Service;
  7. import org.springframework.transaction.annotation.Transactional;
  8. import javax.annotation.Resource;
  9. import java.math.BigDecimal;
  10. /**
  11. * Created by CodeGenerator on 2022/11/19.
  12. */
  13. @Service
  14. @Transactional
  15. public class AccountFreezdServiceImpl extends AbstractService<AccountFreezd> implements AccountFreezdService {
  16. @Resource
  17. private AccountFreezdMapper cAccountFreezdMapper;
  18. @Override
  19. public BigDecimal sumFreezdForRefundByUserId(Long userId) {
  20. return cAccountFreezdMapper.sumFreezdForRefundByUserId(userId);
  21. }
  22. @Override
  23. public BigDecimal sumFreezdForWithdraw(Long userId) {
  24. return cAccountFreezdMapper.sumFreezdForWithdraw(userId);
  25. }
  26. }