Mall2PointsRulesService.java 2.0 KB

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