ComMenuMapper.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package com.dk.mdm.mapper.mst;
  2. import com.dk.mdm.model.pojo.mst.ComMenu;
  3. import com.dk.common.mapper.BaseMapper;
  4. import com.dk.mdm.model.pojo.mst.MenuFrequency;
  5. import com.dk.mdm.model.query.mst.ComMenuQuery;
  6. import com.dk.mdm.model.query.mst.StaffQuery;
  7. import com.dk.mdm.model.response.mst.ComMenuResponse;
  8. import com.dk.mdm.model.vo.mst.ComMenuVO;
  9. import org.apache.ibatis.annotations.Param;
  10. import org.springframework.stereotype.Repository;
  11. import java.util.List;
  12. /**
  13. * 常用功能 Mapper
  14. */
  15. @Repository
  16. public interface ComMenuMapper extends BaseMapper<ComMenu>{
  17. /**
  18. * @desc : 根据条件进行查询
  19. * @author : 周兴
  20. * @date : 2024/3/29 10:42
  21. */
  22. List<ComMenuResponse> selectByCond(ComMenuQuery comMenuQuery);
  23. /**
  24. * @desc : 保存常用功能
  25. * @author : 周兴
  26. * @date : 2024-03-28 10:30
  27. */
  28. int save(List<ComMenu> comMenuList);
  29. /**
  30. * @desc : 保存常用功能(建户使用)
  31. * @author : 周兴
  32. * @date : 2024-05-08 10:30
  33. */
  34. int saveByCompany(ComMenuVO comMenuVO);
  35. /**
  36. * @desc : 删除该员工的功能
  37. * @author : 周兴
  38. * @date : 2024-03-29 10:30
  39. */
  40. int deleteMenuByStaff(@Param("staffId") String staffId);
  41. /**
  42. * @desc : 删除该公司的常用功能
  43. * @author : 周兴
  44. * @date : 2024-03-29 10:30
  45. */
  46. int deleteMenuByCpId(Integer cpId);
  47. /**
  48. * @desc : 插入常用菜单
  49. * @author : 周兴
  50. * @date : 2024/6/14 10:42
  51. */
  52. void insertComMenu(ComMenuVO comMenuVO);
  53. }