| | |
| | | if (StringHelper.isEmpty(dr.getPwd())) { |
| | | return fail("密码不能为空"); |
| | | } |
| | | if (!DownloadService.decryptPwd(dr)) { |
| | | return fail("密码解密失败", null); |
| | | } |
| | | dr.setPwd(AesHelper.decrypt(dr.getPwd())); |
| | | if (StringHelper.isPwdInvalid(dr.getPwd())) { |
| | | return fail("密码不符合要求"); |
| | | } |
| | |
| | | * 创建查询包装器 |
| | | */ |
| | | private <T> QueryWrapper<T> createQueryWrapper(BasicMapper baseMapper, List<String> ids) { |
| | | QueryWrapper<T> wrapper = new QueryWrapper<T>(); |
| | | for (int i = 0, c = ids.size(); i < c; i++) { |
| | | ids.set(i, "'" + ids.get(i) + "'"); |
| | | } |
| | | String filter = String.format("parentid in (%s)", StringHelper.join(ids, ",")); |
| | | |
| | | QueryWrapper<T> wrapper = new QueryWrapper<T>(); |
| | | wrapper.apply(filter); |
| | | |
| | | return wrapper; |
| | | } |
| | |
| | | } |
| | | |
| | | List<FlowEntity> list = getFlowEntities(apply.getId(), ue, dr); |
| | | rows = flowService.inserts(list); |
| | | if (list.isEmpty()) { |
| | | applyMapper.delete(apply.getId()); |
| | | throw new Exception("找不到待审核人"); |
| | | } |
| | | |
| | | return rows; |
| | | return flowService.inserts(list); |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | for (String id : ids) { |
| | | if (StringHelper.isEmpty(id)) { |
| | | if (StringHelper.isEmpty(id) || "00".equals(id)) { |
| | | continue; |
| | | } |
| | | if (!rs.contains(id)) { |