BasicWarehouseService.java 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. package com.chinaitop.depot.basic.service;
  2. import java.util.List;
  3. import java.util.Map;
  4. import com.chinaitop.depot.Object.HwObj;
  5. import com.chinaitop.depot.basic.model.BasicStorehouse;
  6. import com.chinaitop.depot.basic.model.BasicWarehouse;
  7. import com.chinaitop.depot.basic.model.BasicWarehouseExample;
  8. import com.chinaitop.depot.basic.model.BasicWarehouseVO;
  9. public interface BasicWarehouseService {
  10. /**
  11. * 新增
  12. * @param basicWarehouse
  13. */
  14. void add(BasicWarehouse basicWarehouse);
  15. /**
  16. * @param warehouseJson 货位数据
  17. * @param userInfo 当前登录的用户数据
  18. * @param orgInfoJson 当前的粮库数据
  19. * @throws Exception
  20. */
  21. void edit(String warehouseJson, String userInfo, String orgInfoJson) throws Exception;
  22. /**
  23. * 修改
  24. * @param basicWarehouse
  25. */
  26. void update(BasicWarehouse basicWarehouse);
  27. /**
  28. * 删除
  29. * @param id
  30. */
  31. void delete(Integer id);
  32. /**
  33. * 按ID查询一条数据
  34. * @param id
  35. * @return
  36. */
  37. BasicWarehouse findByParmaryKey(Integer id);
  38. /**
  39. * 按条件查询一组数据
  40. * @param example
  41. * @return
  42. */
  43. List<BasicWarehouse> findCondition(BasicWarehouseExample example);
  44. /**
  45. * 查询空的货位和油罐
  46. * @param warehouseId
  47. * @param houseId
  48. * @param example
  49. * @return
  50. */
  51. List<Map<String, Object>> selectWareAndTank(Integer orgId, Integer houseId, Integer warehouseId) throws Exception;
  52. /**
  53. * 货位信息对外接口
  54. * @param unitId 单位ID
  55. * @param storehouseId 仓房ID
  56. * @param libraryType 库类型(0主粮库,1代储库)
  57. * @return
  58. */
  59. Map<String, Object> getWarehouse(Integer unitId, Integer storehouseId, String libraryType);
  60. /**
  61. * 按仓房ID删除货位数据
  62. *
  63. * @param storehouseId 仓房ID
  64. */
  65. void deletEexample(Integer storehouseId);
  66. BasicWarehouseVO getWareDataByHwbm(String hwbm);
  67. /**
  68. * 修改货位出入库状态
  69. *
  70. * @param param
  71. */
  72. void updateWareStatus(Map<String, Object> param);
  73. /**
  74. * 更新货位数据
  75. *
  76. * @param basicStorehouse
  77. * @param warehouseJson
  78. */
  79. void saveOrUpdate(BasicStorehouse basicStorehouse, String warehouseJson) throws Exception;
  80. /**
  81. * 出入库状态修改规则
  82. * @param hwObjs
  83. */
  84. void editRuleMethod(List<HwObj> hwObjs) throws Exception;
  85. /**
  86. * 根据市平台货位主键ID查询一条货位数据
  87. * @param sptDataId
  88. * @return
  89. */
  90. Map<String, Object> getWareOrTank(String sptDataId) throws Exception;
  91. /**
  92. * 按条件查询某种货位状态的数据
  93. * @param lylx 粮油类型(0:原粮,1:成品粮)
  94. * @param crkStatus 货位状态值1空仓,2入库中,3封仓,4出库中
  95. * @param orgId 库ID
  96. * @return
  97. */
  98. List<BasicWarehouse> getCrkStatusList(String lylx, String crkStatus, Integer orgId);
  99. }