| | |
| | | package com.fzzy.sys.manager.common; |
| | | |
| | | import com.fzzy.igds.constant.DepotType; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.domain.Dept; |
| | | import com.fzzy.igds.service.CoreDeptService; |
| | | import com.fzzy.igds.service.DepotService; |
| | | import com.fzzy.igds.service.DicService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | |
| | | private DepotService depotService; |
| | | @Resource |
| | | private DicService dicService; |
| | | @Resource |
| | | private CoreDeptService coreDeptService; |
| | | |
| | | /** |
| | | * 根据字典类型获取字典列表 |
| | |
| | | |
| | | return depotService.getCacheDepotList(ContextUtil.getCompanyId(), deptId); |
| | | } |
| | | |
| | | /** |
| | | * @return |
| | | */ |
| | | public List<SysDictData> getInoutType() { |
| | | return dicService.getInoutType(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取分库列表 |
| | | * |
| | | * @author sgj |
| | | * @date 2025/12/12 |
| | | |
| | | */ |
| | | public List<Dept> listDeptData() { |
| | | return coreDeptService.getDeptData(); |
| | | } |
| | | |
| | | /** |
| | | * 根据仓库编码获取仓库类型 |
| | | * @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; |
| | | } |
| | | } |