| | |
| | | |
| | | @Override |
| | | public Integer selectCount(String uname, Integer status, Timestamp start, Timestamp end) { |
| | | uname = StringHelper.getLikeStr(uname); |
| | | uname = StringHelper.getLikeUpperStr(uname); |
| | | |
| | | return applyMapper.selectCount(uname, status, start, end); |
| | | } |
| | | |
| | | @Override |
| | | public List<ApplyEntity> selectByPage(Integer userid, String uname, Integer status, Timestamp start, Timestamp end, Integer limit, Integer offset) { |
| | | uname = StringHelper.getLikeStr(uname); |
| | | uname = StringHelper.getLikeUpperStr(uname); |
| | | |
| | | return applyMapper.selectByPage(userid, uname, status, start, end, limit, offset); |
| | | } |
| | |
| | | |
| | | ApplyEntity apply = new ApplyEntity(); |
| | | apply.setUserid(ue.getId()); |
| | | apply.setDepids(StringHelper.join(dr.getIds(), ",")); |
| | | apply.setDepids(StringHelper.join(dr.getDepcodes(), ",")); |
| | | apply.setTabs(StringHelper.join(dr.getTabs(), ",")); |
| | | apply.setEntities(StringHelper.join(dr.getEntities(), ",")); |
| | | apply.setWkt(dr.getWkt()); |
| | | apply.setPwd(aesPwd); |
| | | apply.setStatus(0); |
| | | apply.setCount(dr.getIds().size()); |
| | | apply.setCount(dr.getDepcodes().size()); |
| | | apply.setDescr(dr.getDescr()); |
| | | apply.setCreateUser(ue.getId()); |
| | | |
| | |
| | | List<String> entities = Arrays.asList(entity.getEntities().split(",")); |
| | | String pwd = AesHelper.decrypt(entity.getPwd()); |
| | | |
| | | dataLibService.createZipFile(ue, entities, entity.getWkt(), pwd); |
| | | dataLibService.createZipFile(ue, entities, null, null, entity.getWkt(), pwd); |
| | | } catch (Exception ex) { |
| | | log.error(ex.getMessage(), ex); |
| | | } |