管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-07-15 bc5e5cd30efa1a06a56a958959874aba3e90034f
src/main/java/com/lf/server/service/data/PublishService.java
@@ -133,6 +133,27 @@
        return publishMapper.selectMetasByPage(depcode, dircode, verid, types, name, limit, offset);
    }
    public List<Integer> selectLasCs(PubEntity entity, String method, HttpServletRequest req) {
        Map<String, Object> map = getMapData(entity);
        String str = RestHelper.postForRest(exportServer + method, map);
        if (StringHelper.isEmpty(str)) {
            return null;
        }
        ResponseMsg<String> msg = JSON.parseObject(str, ResponseMsg.class);
        if (msg == null || msg.getCode() != StaticData.TWO_HUNDRED) {
            return null;
        }
        String rs = msg.getResult();
        if (StringHelper.isEmpty(rs)) {
            return null;
        }
        return StringHelper.strToIntegers(rs);
    }
    /**
     * 发送发布请求
     */
@@ -263,13 +284,13 @@
     * 删除发布文件
     */
    public void deleteFiles(List<PublishEntity> list) {
        String uploadPath = pathHelper.getConfig().getUploadPath();
        String lfData = pathHelper.getConfig().getLfData();
        for (PublishEntity pub : list) {
            if (null != pub.getUrl() && pub.getUrl().contains("/SG/")) {
                continue;
            }
            String path = uploadPath + File.separator + pub.getPath().replace("\\tileset.json", "");
            String path = lfData + pub.getPath().replace("\\tileset.json", "");
            File file = new File(path);
            if (!file.exists() || !file.isDirectory()) {
                continue;