DepotService.java 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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. List<Depot> getDepot()throws Exception;
  20. List<Depot> getAllList()throws Exception;
  21. List<DepotEx> select(String name, Integer type, String remark)throws Exception;
  22. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  23. int insertDepot(JSONObject obj, HttpServletRequest request)throws Exception;
  24. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  25. int updateDepot(JSONObject obj, HttpServletRequest request) throws Exception;
  26. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  27. int deleteDepot(Long id, HttpServletRequest request)throws Exception;
  28. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  29. int batchDeleteDepot(String ids, HttpServletRequest request) throws Exception;
  30. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  31. int batchDeleteDepotByIds(String ids)throws Exception;
  32. int checkIsNameExist(Long id, String name)throws Exception;
  33. List<Depot> findUserDepot()throws Exception;
  34. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  35. int updateIsDefault(Long depotId) throws Exception;
  36. Long getIdByName(String name);
  37. List<Long> parseDepotList(Long depotId) throws Exception;
  38. JSONArray findDepotByCurrentUser() throws Exception;
  39. String findDepotStrByCurrentUser() throws Exception;
  40. @Transactional(value = "transactionManager", rollbackFor = Exception.class)
  41. int batchSetStatus(Boolean status, String ids)throws Exception;
  42. }