管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-13 7d536d24aa867e9dd4304db39f267373679a6480
src/main/java/com/lf/server/service/show/OneMapService.java
@@ -418,26 +418,28 @@
     */
    public String calcData() {
        Integer rows = selectLineBuffer();
        List<Map<String, Object>> list = selectMetaByType();
        if (null != list && list.size() > 0) {
            HttpServletRequest req = WebHelper.getRequest();
            String rootPath = pathHelper.getUploadFullPath();
            for (Map<String, Object> map : list) {
                String sjfl = map.get("type").toString();
                String id = map.get("id").toString();
                String wjlj = rootPath + File.separator + map.get("path").toString();
            try {
                String rootPath = pathHelper.getConfig().getUploadPath();
                for (Map<String, Object> map : list) {
                    String sjfl = map.get("type").toString();
                    String id = map.get("id").toString();
                    String wjlj = rootPath + File.separator + map.get("path").toString();
                File file = new File(wjlj);
                if (!file.exists() || file.isDirectory()) {
                    continue;
                }
                    File file = new File(wjlj);
                    if (!file.exists() || file.isDirectory()) {
                        continue;
                    }
                String str = fmeService.calcArea(sjfl, id, wjlj, req);
                if (null != str) {
                    System.out.println(str);
                    String str = fmeService.calcArea(sjfl, id, wjlj);
                    if (null != str) {
                        System.out.println(str);
                    }
                    rows++;
                }
                rows++;
            } catch (Exception ex) {
                log.error(ex.getMessage(), ex);
            }
        }