| | |
| | | import com.fzzy.igds.service.DicService; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysDictData; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | |
| | | @Slf4j |
| | | @Component |
| | | public class CommonManager { |
| | | |
| | | @Resource |
| | | private DepotService depotService; |
| | | @Resource |
| | |
| | | @Resource |
| | | private CoreDeptService coreDeptService; |
| | | |
| | | @Autowired |
| | | private ISysUserService userService; |
| | | |
| | | /** |
| | | * 根据字典类型获取字典列表 |
| | | * |
| | | * @param parentCode |
| | | * @param companyId |
| | | * @return |
| | |
| | | * |
| | | * @author sgj |
| | | * @date 2025/12/12 |
| | | |
| | | */ |
| | | public List<Dept> listDeptData() { |
| | | return coreDeptService.getDeptData(); |
| | |
| | | |
| | | /** |
| | | * 根据仓库编码获取仓库类型 |
| | | * |
| | | * @param depotId |
| | | * @return |
| | | */ |
| | |
| | | |
| | | return depotType; |
| | | } |
| | | |
| | | /** |
| | | * 获取用户列表 |
| | | * |
| | | * @author sgj |
| | | * @date 2025/12/12 |
| | | */ |
| | | public List<SysUser> listUserData() { |
| | | SysUser user = new SysUser() ; |
| | | user.setCompanyId(ContextUtil.getCompanyId()); |
| | | user.setDeptId(Long.valueOf(ContextUtil.subDeptId(null))); |
| | | return userService.selectUserList(user); |
| | | } |
| | | } |