| | |
| | | return this.baseMapper.queryProductionIdsByUserId(userId); |
| | | } |
| | | |
| | | /** |
| | | * 根据一组车间id查询用户产线信息 |
| | | * @param productionIds |
| | | */ |
| | | @Override |
| | | public List<MdcUserProduction> queryByProductionIds(List<String> productionIds){ |
| | | if (!productionIds.isEmpty()){ |
| | | return super.list(new LambdaQueryWrapper<MdcUserProduction>().in(MdcUserProduction::getProId, productionIds)); |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = {Exception.class}) |
| | | public boolean removeByCollection(List<MdcUserProduction> mdcUserProductions) { |
| | |
| | | return super.getBaseMapper().getUserPermsByDeviceId(proId); |
| | | } |
| | | |
| | | /** |
| | | * 通过车间id与岗位id筛选用户 |
| | | * @param post |
| | | * @param proId |
| | | * @return |
| | | */ |
| | | @Override |
| | | public List<SysUser> queryByPostAndProId(String post, String proId){ |
| | | return super.getBaseMapper().queryByPostAndProId(post, proId); |
| | | } |
| | | |
| | | @Override |
| | | public MdcUserProduction getByUserIdAndGroupId(String userId, String proId){ |
| | | if(StrUtil.isNotEmpty(userId) || !StrUtil.isNotEmpty(proId)) |
| | | if(StrUtil.isEmpty(userId) || StrUtil.isEmpty(proId)) |
| | | return null; |
| | | List<MdcUserProduction> list = super.lambdaQuery().eq(MdcUserProduction::getUserId, userId).eq(MdcUserProduction::getProId, proId).list(); |
| | | if(list == null || list.isEmpty()) |