| | |
| | | private CoreCommonService commonService; |
| | | |
| | | private static final String KEY_API_PHONE_TOKEN = "KEY_API_PHONE_TOKEN"; |
| | | |
| | | /** |
| | | * 创建缓存Key |
| | | * |
| | | * @param token |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 获取出入库流程名称 |
| | | * |
| | | * @param companyId |
| | | * @param progress |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 获取仓库名称 |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @return |
| | |
| | | } |
| | | return depotName; |
| | | } |
| | | |
| | | /** |
| | | * 获取指定仓库的信息 |
| | | * |
| | | * @param companyId |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | public Depot getDepot(String companyId, String depotId) { |
| | | List<Depot> depotList = commonService.getCacheDepotList(companyId); |
| | | Depot depots = new Depot(); |
| | | if (depotList != null && depotList.size() > 0) { |
| | | for (Depot depot : depotList) { |
| | | if (depot.getId().equals(depotId)) { |
| | | depots = depot; |
| | | break; |
| | | } |
| | | } |
| | | } |
| | | return depots; |
| | | } |
| | | } |