DepotService.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. package com.jsh.erp.service;
  2. import com.alibaba.fastjson.JSONArray;
  3. import com.alibaba.fastjson.JSONObject;
  4. import com.baomidou.mybatisplus.extension.service.IService;
  5. import com.jsh.erp.datasource.entities.Depot;
  6. import com.jsh.erp.datasource.entities.DepotEx;
  7. import com.jsh.erp.datasource.vo.SpinnerVO;
  8. import org.springframework.transaction.annotation.Transactional;
  9. import javax.servlet.http.HttpServletRequest;
  10. import java.util.List;
  11. public interface DepotService extends IService<Depot> {
  12. /**
  13. * 获取下拉框
  14. * @return
  15. */
  16. List<SpinnerVO> depotSpinnerList();
  17. Depot getDepot(long id)throws Exception;
  18. List<Depot> getDepotListByIds(String ids)throws Exception;
  19. /**
  20. * 获取所有仓库
  21. */
  22. List<Depot> getDepot()throws Exception;
  23. List<Depot> getAllList()throws Exception;
  24. List<DepotEx> select(String name, Integer type, String remark)throws Exception;
  25. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  26. int insertDepot(JSONObject obj, HttpServletRequest request)throws Exception;
  27. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  28. int updateDepot(JSONObject obj, HttpServletRequest request) throws Exception;
  29. /**
  30. * 删除仓库
  31. * @param id 仓库id
  32. */
  33. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  34. int deleteDepot(Long id, HttpServletRequest request)throws Exception;
  35. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  36. int batchDeleteDepot(String ids, HttpServletRequest request) throws Exception;
  37. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  38. int batchDeleteDepotByIds(String ids)throws Exception;
  39. int checkIsNameExist(Long id, String name)throws Exception;
  40. List<Depot> findUserDepot()throws Exception;
  41. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  42. int updateIsDefault(Long depotId) throws Exception;
  43. Long getIdByName(String name);
  44. List<Long> parseDepotList(Long depotId) throws Exception;
  45. JSONArray findDepotByCurrentUser() throws Exception;
  46. String findDepotStrByCurrentUser() throws Exception;
  47. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  48. int batchSetStatus(Boolean status, String ids)throws Exception;
  49. }