Mall2PointsRulesService.java 2.0 KB

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