ActivityMapper.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. package com.dk.mdm.mapper.mst;
  2. import com.dk.common.model.response.mst.StaffResponse;
  3. import com.dk.mdm.model.pojo.mst.Activity;
  4. import com.dk.common.mapper.BaseMapper;
  5. import com.dk.mdm.model.query.mst.ActivityQuery;
  6. import com.dk.mdm.model.response.mst.ActivityResponse;
  7. import com.dk.mdm.model.response.mst.UnitResponse;
  8. import org.apache.ibatis.annotations.Param;
  9. import org.springframework.stereotype.Repository;
  10. import java.util.List;
  11. /**
  12. * 活动管理 Mapper
  13. */
  14. @Repository
  15. public interface ActivityMapper extends BaseMapper<Activity>{
  16. /**
  17. * @desc : 根据条件进行查询
  18. * @author : 常皓宁
  19. * @date : 2024/2/26 10:36
  20. */
  21. List<ActivityResponse> selectByCond(ActivityQuery activityQuery);
  22. /**
  23. * @desc : 根据条件进行查询(数量)
  24. * @author : 常皓宁
  25. * @date : 2024/2/26 10:36
  26. */
  27. Long countByCond(ActivityQuery activityQuery);
  28. /**
  29. * @desc : 根据Id查询
  30. * @author : 常皓宁
  31. * @date : 2024/4/16 15:33
  32. */
  33. ActivityResponse selectById(@Param("activityId") String activityId);
  34. }