| | |
| | | package com.fzzy.sys.manager.common; |
| | | |
| | | import com.fzzy.igds.constant.DepotType; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.service.DepotService; |
| | | import com.fzzy.igds.service.DicService; |
| | |
| | | |
| | | return depotService.getCacheDepotList(ContextUtil.getCompanyId(), deptId); |
| | | } |
| | | |
| | | /** |
| | | * @return |
| | | */ |
| | | public List<SysDictData> getInoutType() { |
| | | return dicService.getInoutType(); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 根据仓库编码获取仓库类型 |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | | public String getDepotTypeById(String depotId) { |
| | | String depotType = DepotType.TYPE_01.getCode(); |
| | | |
| | | Depot depot = depotService.getCacheDepot(ContextUtil.getCompanyId(), depotId); |
| | | if (null != depot && StringUtils.isNotEmpty(depot.getDepotType())) { |
| | | depotType = depot.getDepotType(); |
| | | } |
| | | |
| | | return depotType; |
| | | } |
| | | } |