| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.List; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 根据仓库类型获取库区下仓库列表 |
| | | * @param deptId |
| | | * @param depotTypes 类型多个,用逗号隔开 |
| | | * @return |
| | | */ |
| | | public List<Depot> listAllDepot(String deptId, String depotTypes) { |
| | | |
| | | List<Depot> depots = this.listDepotByDeptId(deptId); |
| | | if(null == depots || depots.isEmpty()){ |
| | | return null; |
| | | } |
| | | |
| | | List<Depot> result = new ArrayList<>(); |
| | | for (Depot depot : depots) { |
| | | if (depotTypes.contains(depot.getDepotType())) { |
| | | result.add(depot); |
| | | } |
| | | } |
| | | return result; |
| | | } |
| | | |
| | | /** |
| | | * @return |
| | | */ |
| | | public List<SysDictData> getInoutType() { |