ShippingService.java 1.3 KB

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