Mall2PointsRulesService.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. package com.kmall.admin.service.vip;
  2. import com.kmall.admin.dto.Mall2RulesDto;
  3. import com.kmall.admin.entity.vip.Mall2DetilEntity;
  4. import com.kmall.admin.entity.vip.Mall2PointsRulesEntity;
  5. import com.kmall.common.utils.Query;
  6. import java.util.List;
  7. import java.util.Map;
  8. /**
  9. * 积分规则表Service接口
  10. *
  11. * @author emato
  12. * @email admin@qhdswl.com
  13. * @date 2020-06-15 10:44:07
  14. */
  15. public interface Mall2PointsRulesService {
  16. /**
  17. * 根据主键查询实体
  18. *
  19. * @param mprId 主键
  20. * @return 实体
  21. */
  22. Mall2PointsRulesEntity queryObject(Integer mprId);
  23. /**
  24. * 分页查询
  25. *
  26. * @param map 参数
  27. * @return list
  28. */
  29. List<Mall2PointsRulesEntity> queryList(Map<String, Object> map);
  30. /**
  31. * 分页统计总数
  32. *
  33. * @param map 参数
  34. * @return 总数
  35. */
  36. int queryTotal(Map<String, Object> map);
  37. /**
  38. * 保存实体
  39. *
  40. * @param mall2PointsRules 实体
  41. * @return 保存条数
  42. */
  43. int save(Mall2PointsRulesEntity mall2PointsRules);
  44. /**
  45. * 根据主键更新实体
  46. *
  47. * @param mall2PointsRules 实体
  48. * @return 更新条数
  49. */
  50. int update(Mall2PointsRulesEntity mall2PointsRules);
  51. /**
  52. * 根据主键删除
  53. *
  54. * @param mprId
  55. * @return 删除条数
  56. */
  57. int delete(Integer mprId);
  58. /**
  59. * 根据主键批量删除
  60. *
  61. * @param mprIds
  62. * @return 删除条数
  63. */
  64. int deleteBatch(Integer[] mprIds);
  65. void rulesUploadDetil(List<Mall2RulesDto> pointsRulesList, Long mkaId);
  66. /**
  67. * 查询积分明细数据
  68. * @param query
  69. * @return
  70. */
  71. Map<String,Object> queryDetilList(Query query);
  72. void deleteDetil(Integer[] mprIds,Long typeId);
  73. }