| | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.*; |
| | | import java.util.*; |
| | | import java.util.function.Consumer; |
| | | |
| | | /** |
| | | * 附件管理 Service实现 |
| | |
| | | } |
| | | if (StringUtils.isNotBlank(vo.getEntryType())) { |
| | | queryWrapper.in("a.entryType", vo.getEntryType().split(",")); |
| | | } if (StringUtils.isNotBlank(vo.getCertificateList())) { |
| | | String[] certificates = vo.getCertificateList().split(","); |
| | | Consumer<QueryWrapper<EmpAccessoryVO>> consumer = new Consumer<QueryWrapper<EmpAccessoryVO>>() { |
| | | @Override |
| | | public void accept(QueryWrapper<EmpAccessoryVO> wrapper) { |
| | | for (int i = 0; i < certificates.length; i++) { |
| | | String ageBtn = certificates[i]; |
| | | wrapper.or().like("a.certificateList", ageBtn); |
| | | } |
| | | } |
| | | }; |
| | | queryWrapper.and(consumer); |
| | | } |
| | | queryWrapper.inSql("c.dept_Id", remoteDeptService.userRightDepts()); |
| | | if (StrUtil.isNotBlank(vo.getFileName())){ |
| | |
| | | queryWrapper.orderByAsc("a.certificateNumb"); |
| | | } |
| | | } |
| | | |
| | | queryWrapper.groupBy(" a.delFlag,a.empName,a.empStatus,a.empId,a.certificateNumb,a.empNumb,deptName,a.jobName"); |
| | | Page<EmpAccessory> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | // String querySql = empAccessoryMapper.getQuerySql(); |