TradeMapper.java 1009 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.dk.oauth.mapper;
  2. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  3. import com.dk.oauth.entity.Trade;
  4. import com.dk.oauth.entity.TradeResponse;
  5. import org.apache.ibatis.annotations.Param;
  6. import java.util.List;
  7. /**
  8. * @author : 姜永辉
  9. * @desc : CompanyMapper
  10. * @date : 2024-2-18 15:39
  11. */
  12. public interface TradeMapper extends BaseMapper<Trade> {
  13. /**
  14. * @desc : 通过ID查询
  15. * @author : 洪旭东
  16. * @date : 2024-02-18 15:21
  17. */
  18. TradeResponse getByCpId(@Param("cpId") Integer cpId);
  19. int insertBatch(@Param("list") List<Trade> list);
  20. List<Trade> selectByCond(Trade t);
  21. Long countByCond(Trade t);
  22. /**
  23. * @desc : 通过ID查询
  24. * @author : 洪旭东
  25. * @date : 2024-02-18 15:21
  26. */
  27. Trade selectById(@Param("cpId") Integer cpId);
  28. /**
  29. * @desc : 获取商户的地址服务
  30. * @author : 姜永辉
  31. * @date : 2024-02-18 15:21
  32. */
  33. String selectServiceAllot(@Param("gradeCode") String gradeCode);
  34. }