| | |
| | | @Override |
| | | public IPage<EmpLaborTrouble> findEmpLabortroubles(QueryRequest request, EmpLaborTrouble empLabortrouble) { |
| | | LambdaQueryWrapper<EmpLaborTrouble> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(EmpLaborTrouble::getDelFlag, 0); |
| | | queryWrapper.eq(EmpLaborTrouble::getDelFlag, empLabortrouble.getDelFlag()); |
| | | Page<EmpLaborTrouble> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | return this.page(page, queryWrapper); |
| | | } |
| | |
| | | @Override |
| | | public List<EmpLaborTrouble> findEmpLabortroubles(EmpLaborTrouble empLabortrouble) { |
| | | LambdaQueryWrapper<EmpLaborTrouble> queryWrapper = new LambdaQueryWrapper<>(); |
| | | queryWrapper.eq(EmpLaborTrouble::getDelFlag, 0); |
| | | queryWrapper.eq(EmpLaborTrouble::getDelFlag, empLabortrouble.getDelFlag()); |
| | | return this.baseMapper.selectList(queryWrapper); |
| | | } |
| | | |
| | |
| | | List<String> list = new ArrayList<>(Arrays.asList(str)); |
| | | empLabortroubleMapper.logicDeleteByIds(list, operatorId); |
| | | } |
| | | |
| | | @Override |
| | | public boolean momentToNormal(String ids) { |
| | | String[] str = ids.split(","); |
| | | List<String> list = new ArrayList<>(Arrays.asList(str)); |
| | | return empLabortroubleMapper.momentToNormal(list, operatorId)>0; |
| | | } |
| | | } |