| | |
| | | return null; |
| | | |
| | | JSONObject result = new JSONObject(); |
| | | result.put("名称", node.getName()); |
| | | var name = node.getName(); |
| | | result.put("名称", name); |
| | | result.put("问题清单标题", buildProblemListTitle(name)); |
| | | buildNode(result, node); |
| | | |
| | | var cfuzzyNode = getFuzzyNodeByPath(node.getPath()); |
| | |
| | | return result; |
| | | } |
| | | |
| | | private String buildProblemListTitle(String name) { |
| | | if (name == null || name.isBlank()) { |
| | | return "问题清单"; |
| | | } |
| | | if ("安全检查".equals(name)) { |
| | | return "安全问题清单"; |
| | | } |
| | | return name + "问题清单"; |
| | | } |
| | | |
| | | /** |
| | | * 构建错误信息 |
| | | * @param nodePath 节点路径 |
| | |
| | | long fileSize = wordFile.length(); |
| | | long maxSize = 1000L * 1024L * 1024L; |
| | | if (fileSize > maxSize) { |
| | | throw new IllegalArgumentException("File is too large: " + (fileSize / 1024 / 1024) + "MB, max is 100MB"); |
| | | throw new IllegalArgumentException("File is too large: " + (fileSize / 1024 / 1024) + "MB, max is 1000MB"); |
| | | } |
| | | } |
| | | |
| | |
| | | |
| | | servlet: |
| | | multipart: |
| | | max-file-size: 100MB |
| | | max-request-size: 100MB |
| | | max-file-size: 1000MB |
| | | max-request-size: 1000MB |
| | | |
| | | datasource: |
| | | url: jdbc:mysql://localhost:3306/estate_new?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull |
| | |
| | | |
| | | servlet: |
| | | multipart: |
| | | max-file-size: 100MB |
| | | max-request-size: 100MB |
| | | max-file-size: 1000MB |
| | | max-request-size: 1000MB |
| | | |
| | | datasource: |
| | | url: jdbc:mysql://localhost:3306/estate_new?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true |
| | |
| | | |
| | | servlet: |
| | | multipart: |
| | | max-file-size: 100MB |
| | | max-request-size: 100MB |
| | | max-file-size: 1000MB |
| | | max-request-size: 1000MB |
| | | |
| | | datasource: |
| | | url: jdbc:mysql://localhost:3306/daping1?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true |
| | | username: root |
| | | password: 123456 |
| | | url: jdbc:mysql://localhost:3306/estate_new?useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull&allowPublicKeyRetrieval=true |
| | | username: admin |
| | | password: ZXtzbsMuCIFbmBW4HtOjRd |
| | | driver-class-name: com.mysql.jdbc.Driver |
| | | hikari: |
| | | auto-commit: true |