FreightService.java 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. package com.kmall.admin.service;
  2. import com.kmall.admin.dto.CopyFreightDto;
  3. import com.kmall.admin.entity.FreightEntity;
  4. import java.util.List;
  5. import java.util.Map;
  6. /**
  7. * Service接口
  8. *
  9. * @author huangyq
  10. * @email admin@qhdswl.com
  11. * @date 2018-10-22 15:18:16
  12. */
  13. public interface FreightService {
  14. /**
  15. * 根据主键查询实体
  16. *
  17. * @param id 主键
  18. * @return 实体
  19. */
  20. FreightEntity queryObject(Integer id);
  21. /**
  22. * 分页查询
  23. *
  24. * @param map 参数
  25. * @return list
  26. */
  27. List<FreightEntity> queryList(Map<String, Object> map);
  28. /**
  29. * 名称相同的模版
  30. *
  31. * @param map 参数
  32. * @return list
  33. */
  34. List<FreightEntity> queryEntity(Map<String, Object> map);
  35. /**
  36. * 分页统计总数
  37. *
  38. * @param map 参数
  39. * @return 总数
  40. */
  41. int queryTotal(Map<String, Object> map);
  42. /**
  43. * 保存实体
  44. *
  45. * @param freight 实体
  46. * @return 保存条数
  47. */
  48. int save(FreightEntity freight);
  49. /**
  50. * 根据主键更新实体
  51. *
  52. * @param freight 实体
  53. * @return 更新条数
  54. */
  55. int update(FreightEntity freight);
  56. /**
  57. * 根据主键删除
  58. *
  59. * @param id
  60. * @return 删除条数
  61. */
  62. int delete(Integer id);
  63. /**
  64. * 根据主键批量删除
  65. *
  66. * @param ids
  67. * @return 删除条数
  68. */
  69. int deleteBatch(Integer[] ids);
  70. int saveCopyFreight(CopyFreightDto copyFreightDto);
  71. }