OrderRefundService.java 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. package com.kmall.admin.service;
  2. import com.kmall.admin.entity.OrderRefundEntity;
  3. import java.util.List;
  4. import java.util.Map;
  5. /**
  6. * 订单退款记录表Service接口
  7. *
  8. * @author huangyq
  9. * @email admin@qhdswl.com
  10. * @date 2018-11-01 10:16:41
  11. */
  12. public interface OrderRefundService {
  13. /**
  14. * 根据主键查询实体
  15. *
  16. * @param id 主键
  17. * @return 实体
  18. */
  19. OrderRefundEntity queryObject(Integer id);
  20. /**
  21. * 分页查询
  22. *
  23. * @param map 参数
  24. * @return list
  25. */
  26. List<OrderRefundEntity> queryList(Map<String, Object> map);
  27. /**
  28. * 分页统计总数
  29. *
  30. * @param map 参数
  31. * @return 总数
  32. */
  33. int queryTotal(Map<String, Object> map);
  34. /**
  35. * 保存实体
  36. *
  37. * @param orderRefund 实体
  38. * @return 保存条数
  39. */
  40. int save(OrderRefundEntity orderRefund);
  41. /**
  42. * 根据主键更新实体
  43. *
  44. * @param orderRefund 实体
  45. * @return 更新条数
  46. */
  47. int update(OrderRefundEntity orderRefund);
  48. /**
  49. * 根据主键删除
  50. *
  51. * @param id
  52. * @return 删除条数
  53. */
  54. int delete(Integer id);
  55. /**
  56. * 根据主键批量删除
  57. *
  58. * @param ids
  59. * @return 删除条数
  60. */
  61. int deleteBatch(Integer[] ids);
  62. OrderRefundEntity queryObjectByOrderId(Long orderId);
  63. int queryMainTotal();
  64. }