管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-04-06 c4a9a6f3f5740f475068378a19f41d651635f1a3
src/main/java/com/lf/server/service/show/ApplyService.java
@@ -153,6 +153,7 @@
    private ApplyEntity getApplyEntity(UserEntity ue, DownloadReqEntity dr) throws Exception {
        // String dbPwd = Md5Helper.reverse(Md5Helper.generate(dr.getPwd()))
        String aesPwd = AesHelper.encrypt(dr.getPwd());
        String gids = null == dr.getIds() || dr.getIds().isEmpty() ? null : StringHelper.join(dr.getIds(), ",");
        ApplyEntity apply = new ApplyEntity();
        apply.setUserid(ue.getId());
@@ -167,7 +168,7 @@
        apply.setCreateUser(ue.getId());
        apply.setDepcode(dr.getDepcode());
        apply.setDircodes(dr.getDirs());
        apply.setGids(StringHelper.join(dr.getIds(), ","));
        apply.setGids(gids);
        apply.setFilters(dr.getFilter());
        return apply;
@@ -215,7 +216,11 @@
            dr.setIds(getIds(entity));
            dr.setFilter(entity.getFilters());
            dataLibService.downloadDbReq(ue, dr);
            String guid = dataLibService.downloadDbReq(ue, dr);
            if (!StringHelper.isEmpty(guid)){
                entity.setGuid(guid);
                update(entity);
            }
        } catch (Exception ex) {
            log.error(ex.getMessage(), ex);
        }
@@ -225,6 +230,10 @@
     * 获取ID集合
     */
    private List<Integer> getIds(ApplyEntity entity) {
        if (StringHelper.isEmpty(entity.getGids())) {
            return null;
        }
        List<Integer> list = new ArrayList<>();
        for (String str : entity.getGids().split(StaticData.COMMA)) {
            list.add(Integer.parseInt(str));