| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper; |
| | | import com.fzzy.igds.constant.Constant; |
| | | import com.fzzy.igds.constant.RedisConst; |
| | | import com.fzzy.igds.domain.Depot; |
| | | import com.fzzy.igds.domain.DepotConf; |
| | | import com.fzzy.igds.mapper.DepotConfMapper; |
| | | import com.fzzy.igds.utils.ContextUtil; |
| | | import com.ruoyi.common.core.domain.entity.SysUser; |
| | | import com.ruoyi.common.core.redis.RedisCache; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | queryWrapper.eq("dept_id", deptId); |
| | | } |
| | | return depotConfMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | | /** |
| | | * 根据用户类型查询配置信息 |
| | | * @return |
| | | */ |
| | | public List<DepotConf> getConfListByUserType() { |
| | | //获取当前登录人 |
| | | SysUser user = ContextUtil.getLoginUser(); |
| | | |
| | | QueryWrapper<DepotConf> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("company_id", user.getCompanyId()); |
| | | |
| | | //监管用户-默认查看所有信息不增加条件 |
| | | if (Constant.USER_TYPE_10.equals(user.getUserType())) { |
| | | //不增加条件 |
| | | } |
| | | |
| | | //银行用户,根据合同查询银行下所有库区 |
| | | if (Constant.USER_TYPE_20.equals(user.getUserType())) { |
| | | |
| | | return this.getDeptByContract(user.getUserData()); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | return null; |
| | | } |
| | | |
| | | private List<DepotConf> getDeptByContract(String userData) { |
| | | |
| | | //TODO |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | |
| | | updateWrapper.eq("dept_id", ContextUtil.subDeptId(null)).set("pos_x", freq); |
| | | depotConfMapper.update(null, updateWrapper); |
| | | } |
| | | |
| | | |
| | | } |