init project
This commit is contained in:
commit
207abfe9d3
28
build.gradle
Normal file
28
build.gradle
Normal file
@ -0,0 +1,28 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
group 'cn.rainss'
|
||||
version '1.0-SNAPSHOT'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
|
||||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
|
||||
// https://mvnrepository.com/artifact/com.alibaba/fastjson
|
||||
implementation group: 'com.alibaba', name: 'fastjson', version: '1.2.76'
|
||||
// https://mvnrepository.com/artifact/org.projectlombok/lombok
|
||||
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
|
||||
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.20'
|
||||
// https://mvnrepository.com/artifact/com.google.guava/guava
|
||||
implementation group: 'com.google.guava', name: 'guava', version: '30.1.1-jre'
|
||||
// https://mvnrepository.com/artifact/commons-collections/commons-collections
|
||||
implementation group: 'commons-collections', name: 'commons-collections', version: '3.2.2'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Normal file
Binary file not shown.
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
5
gradle/wrapper/gradle-wrapper.properties
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-bin.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
185
gradlew
vendored
Normal file
185
gradlew
vendored
Normal file
@ -0,0 +1,185 @@
|
||||
#!/usr/bin/env sh
|
||||
|
||||
#
|
||||
# Copyright 2015 the original author or authors.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# https://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
##############################################################################
|
||||
##
|
||||
## Gradle start up script for UN*X
|
||||
##
|
||||
##############################################################################
|
||||
|
||||
# Attempt to set APP_HOME
|
||||
# Resolve links: $0 may be a link
|
||||
PRG="$0"
|
||||
# Need this for relative symlinks.
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG=`dirname "$PRG"`"/$link"
|
||||
fi
|
||||
done
|
||||
SAVED="`pwd`"
|
||||
cd "`dirname \"$PRG\"`/" >/dev/null
|
||||
APP_HOME="`pwd -P`"
|
||||
cd "$SAVED" >/dev/null
|
||||
|
||||
APP_NAME="Gradle"
|
||||
APP_BASE_NAME=`basename "$0"`
|
||||
|
||||
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
|
||||
|
||||
# Use the maximum available, or set MAX_FD != -1 to use that value.
|
||||
MAX_FD="maximum"
|
||||
|
||||
warn () {
|
||||
echo "$*"
|
||||
}
|
||||
|
||||
die () {
|
||||
echo
|
||||
echo "$*"
|
||||
echo
|
||||
exit 1
|
||||
}
|
||||
|
||||
# OS specific support (must be 'true' or 'false').
|
||||
cygwin=false
|
||||
msys=false
|
||||
darwin=false
|
||||
nonstop=false
|
||||
case "`uname`" in
|
||||
CYGWIN* )
|
||||
cygwin=true
|
||||
;;
|
||||
Darwin* )
|
||||
darwin=true
|
||||
;;
|
||||
MINGW* )
|
||||
msys=true
|
||||
;;
|
||||
NONSTOP* )
|
||||
nonstop=true
|
||||
;;
|
||||
esac
|
||||
|
||||
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
|
||||
|
||||
|
||||
# Determine the Java command to use to start the JVM.
|
||||
if [ -n "$JAVA_HOME" ] ; then
|
||||
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
|
||||
# IBM's JDK on AIX uses strange locations for the executables
|
||||
JAVACMD="$JAVA_HOME/jre/sh/java"
|
||||
else
|
||||
JAVACMD="$JAVA_HOME/bin/java"
|
||||
fi
|
||||
if [ ! -x "$JAVACMD" ] ; then
|
||||
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
else
|
||||
JAVACMD="java"
|
||||
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
|
||||
Please set the JAVA_HOME variable in your environment to match the
|
||||
location of your Java installation."
|
||||
fi
|
||||
|
||||
# Increase the maximum file descriptors if we can.
|
||||
if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
|
||||
MAX_FD_LIMIT=`ulimit -H -n`
|
||||
if [ $? -eq 0 ] ; then
|
||||
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
|
||||
MAX_FD="$MAX_FD_LIMIT"
|
||||
fi
|
||||
ulimit -n $MAX_FD
|
||||
if [ $? -ne 0 ] ; then
|
||||
warn "Could not set maximum file descriptor limit: $MAX_FD"
|
||||
fi
|
||||
else
|
||||
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
|
||||
fi
|
||||
fi
|
||||
|
||||
# For Darwin, add options to specify how the application appears in the dock
|
||||
if $darwin; then
|
||||
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
|
||||
fi
|
||||
|
||||
# For Cygwin or MSYS, switch paths to Windows format before running java
|
||||
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
|
||||
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
|
||||
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
|
||||
|
||||
JAVACMD=`cygpath --unix "$JAVACMD"`
|
||||
|
||||
# We build the pattern for arguments to be converted via cygpath
|
||||
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
|
||||
SEP=""
|
||||
for dir in $ROOTDIRSRAW ; do
|
||||
ROOTDIRS="$ROOTDIRS$SEP$dir"
|
||||
SEP="|"
|
||||
done
|
||||
OURCYGPATTERN="(^($ROOTDIRS))"
|
||||
# Add a user-defined pattern to the cygpath arguments
|
||||
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
|
||||
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
|
||||
fi
|
||||
# Now convert the arguments - kludge to limit ourselves to /bin/sh
|
||||
i=0
|
||||
for arg in "$@" ; do
|
||||
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
|
||||
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
|
||||
|
||||
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
|
||||
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
|
||||
else
|
||||
eval `echo args$i`="\"$arg\""
|
||||
fi
|
||||
i=`expr $i + 1`
|
||||
done
|
||||
case $i in
|
||||
0) set -- ;;
|
||||
1) set -- "$args0" ;;
|
||||
2) set -- "$args0" "$args1" ;;
|
||||
3) set -- "$args0" "$args1" "$args2" ;;
|
||||
4) set -- "$args0" "$args1" "$args2" "$args3" ;;
|
||||
5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
|
||||
6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
|
||||
7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
|
||||
8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
|
||||
9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# Escape application args
|
||||
save () {
|
||||
for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
|
||||
echo " "
|
||||
}
|
||||
APP_ARGS=`save "$@"`
|
||||
|
||||
# Collect all arguments for the java command, following the shell quoting and substitution rules
|
||||
eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
|
||||
|
||||
exec "$JAVACMD" "$@"
|
||||
89
gradlew.bat
vendored
Normal file
89
gradlew.bat
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
@rem
|
||||
@rem Copyright 2015 the original author or authors.
|
||||
@rem
|
||||
@rem Licensed under the Apache License, Version 2.0 (the "License");
|
||||
@rem you may not use this file except in compliance with the License.
|
||||
@rem You may obtain a copy of the License at
|
||||
@rem
|
||||
@rem https://www.apache.org/licenses/LICENSE-2.0
|
||||
@rem
|
||||
@rem Unless required by applicable law or agreed to in writing, software
|
||||
@rem distributed under the License is distributed on an "AS IS" BASIS,
|
||||
@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
@rem See the License for the specific language governing permissions and
|
||||
@rem limitations under the License.
|
||||
@rem
|
||||
|
||||
@if "%DEBUG%" == "" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%" == "" set DIRNAME=.
|
||||
set APP_BASE_NAME=%~n0
|
||||
set APP_HOME=%DIRNAME%
|
||||
|
||||
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
|
||||
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
|
||||
|
||||
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
|
||||
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
|
||||
|
||||
@rem Find java.exe
|
||||
if defined JAVA_HOME goto findJavaFromJavaHome
|
||||
|
||||
set JAVA_EXE=java.exe
|
||||
%JAVA_EXE% -version >NUL 2>&1
|
||||
if "%ERRORLEVEL%" == "0" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
|
||||
|
||||
if exist "%JAVA_EXE%" goto execute
|
||||
|
||||
echo.
|
||||
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
|
||||
echo.
|
||||
echo Please set the JAVA_HOME variable in your environment to match the
|
||||
echo location of your Java installation.
|
||||
|
||||
goto fail
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||
|
||||
:end
|
||||
@rem End local scope for the variables with windows NT shell
|
||||
if "%ERRORLEVEL%"=="0" goto mainEnd
|
||||
|
||||
:fail
|
||||
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
|
||||
rem the _cmd.exe /c_ return code!
|
||||
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
|
||||
exit /b 1
|
||||
|
||||
:mainEnd
|
||||
if "%OS%"=="Windows_NT" endlocal
|
||||
|
||||
:omega
|
||||
2
settings.gradle
Normal file
2
settings.gradle
Normal file
@ -0,0 +1,2 @@
|
||||
rootProject.name = 'TreeDFS'
|
||||
|
||||
62
src/main/java/Main.java
Normal file
62
src/main/java/Main.java
Normal file
@ -0,0 +1,62 @@
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.collections.CollectionUtils;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
public class Main {
|
||||
public static void main(String[] args) throws IOException {
|
||||
String path = ClassLoader.getSystemClassLoader().getResource("data.json").getPath();
|
||||
String s = readToString(path).trim();
|
||||
List<Type> types = JSON.parseArray(s, Type.class);
|
||||
List<Type> types1 = builldTree(types);
|
||||
// 如何取值 id为 842362469438455808 的所有父id需要保持顺序
|
||||
System.out.println(types1);
|
||||
}
|
||||
public static List<Type> builldTree(List<Type> list){
|
||||
ArrayList<Type> tree = Lists.newArrayList();
|
||||
if(CollectionUtils.isNotEmpty(list)){
|
||||
// 添加父节点
|
||||
tree.addAll(
|
||||
list.stream()
|
||||
.filter(Objects::nonNull)
|
||||
.filter(type -> type.getParentId() != null)
|
||||
.filter(type -> type.getParentId() == 0L)
|
||||
.collect(Collectors.toList())
|
||||
);
|
||||
// 添加子节点
|
||||
tree.parallelStream().forEach(t -> {
|
||||
t.setChildList(setChildList(t.getId(),list));
|
||||
});
|
||||
}
|
||||
return tree;
|
||||
}
|
||||
private static List<Type> setChildList(Long id,List<Type> list){
|
||||
List<Type> child = list.stream().filter(t -> Objects.equals(id, t.getParentId())).collect(Collectors.toList());
|
||||
if(CollectionUtils.isEmpty(child)){
|
||||
return child;
|
||||
}
|
||||
child.parallelStream().forEach(t -> t.setChildList(setChildList(t.getId(),list)));
|
||||
return child;
|
||||
}
|
||||
public static String readToString(String fileName) {
|
||||
String encoding = "UTF-8";
|
||||
File file = new File(fileName);
|
||||
Long filelength = file.length();
|
||||
byte[] filecontent = new byte[filelength.intValue()];
|
||||
try {
|
||||
FileInputStream in = new FileInputStream(file);
|
||||
in.read(filecontent);
|
||||
return new String(filecontent, encoding);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
66
src/main/java/Type.java
Normal file
66
src/main/java/Type.java
Normal file
@ -0,0 +1,66 @@
|
||||
import com.alibaba.fastjson.support.spring.annotation.FastJsonFilter;
|
||||
import lombok.*;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@ToString
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@Builder
|
||||
public class Type {
|
||||
|
||||
private Long id;
|
||||
|
||||
private String code;
|
||||
|
||||
private String name;
|
||||
|
||||
private Short status;
|
||||
|
||||
private Short ownerType;
|
||||
|
||||
private Long orgId;
|
||||
|
||||
private Long parentId;
|
||||
|
||||
private Short leafNode;
|
||||
|
||||
private Short level;
|
||||
|
||||
private Integer sort;
|
||||
|
||||
private Long rootId;
|
||||
|
||||
private String remark;
|
||||
|
||||
private Long createUserId;
|
||||
|
||||
private String createUserName;
|
||||
|
||||
private LocalDateTime createTime;
|
||||
|
||||
private Long modifyUserId;
|
||||
|
||||
private String modifyUserName;
|
||||
|
||||
private LocalDateTime modifyTime;
|
||||
|
||||
private Long orgControlId;
|
||||
|
||||
private Long isvId;
|
||||
|
||||
private List<Type> childList;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
727
src/main/resources/data.json
Normal file
727
src/main/resources/data.json
Normal file
@ -0,0 +1,727 @@
|
||||
[
|
||||
{
|
||||
"id": "844150457751306240",
|
||||
"code": "LX844150457751306240",
|
||||
"name": "333",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "842357583875407872",
|
||||
"level": 4,
|
||||
"createTime": "2021-05-18T09:52:32.866",
|
||||
"modifyTime": "2021-05-18T09:52:32.866"
|
||||
},
|
||||
{
|
||||
"id": "843179831712546816",
|
||||
"code": "LX843179831712546816",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-15T17:35:37.408",
|
||||
"modifyTime": "2021-05-15T17:35:37.408"
|
||||
},
|
||||
{
|
||||
"id": "843178212878974976",
|
||||
"code": "LX843178212878974976",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-15T17:29:11.452",
|
||||
"modifyTime": "2021-05-15T17:29:11.452"
|
||||
},
|
||||
{
|
||||
"id": "843178199222321152",
|
||||
"code": "LX843178199222321152",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-15T17:29:08.225",
|
||||
"modifyTime": "2021-05-15T17:29:08.225"
|
||||
},
|
||||
{
|
||||
"id": "842362469438455808",
|
||||
"code": "LX842362469438455808",
|
||||
"name": "123132",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "842357583875407872",
|
||||
"level": 4,
|
||||
"createTime": "2021-05-13T11:27:43.055",
|
||||
"modifyTime": "2021-05-13T13:42:25.443385"
|
||||
},
|
||||
{
|
||||
"id": "842357583875407872",
|
||||
"code": "LX842357583875407872",
|
||||
"name": "subsubsubType",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "842357541001232384",
|
||||
"level": 3,
|
||||
"createTime": "2021-05-13T11:08:18.245",
|
||||
"modifyTime": "2021-05-13T11:08:18.245"
|
||||
},
|
||||
{
|
||||
"id": "842357541001232384",
|
||||
"code": "LX842357541001232384",
|
||||
"name": "subsubType",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "842357501637689344",
|
||||
"level": 2,
|
||||
"createTime": "2021-05-13T11:08:08.023",
|
||||
"modifyTime": "2021-05-13T11:08:08.023"
|
||||
},
|
||||
{
|
||||
"id": "842357501637689344",
|
||||
"code": "LX842357501637689344",
|
||||
"name": "subType",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "842357452165873664",
|
||||
"level": 1,
|
||||
"createTime": "2021-05-13T11:07:58.637",
|
||||
"modifyTime": "2021-05-13T11:07:58.637"
|
||||
},
|
||||
{
|
||||
"id": "842357452165873664",
|
||||
"code": "LX842357452165873664",
|
||||
"name": "合同分类测试001",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"level": 0,
|
||||
"createTime": "2021-05-13T11:07:46.857",
|
||||
"modifyTime": "2021-05-13T13:43:13.022935"
|
||||
},
|
||||
{
|
||||
"id": "842082032665231360",
|
||||
"code": "LX842082032665231360",
|
||||
"name": "测试名123称",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"level": 0,
|
||||
"createTime": "2021-05-12T16:53:21.717",
|
||||
"modifyTime": "2021-05-12T16:53:21.717"
|
||||
},
|
||||
{
|
||||
"id": "842081843049136128",
|
||||
"code": "LX842081843049136128",
|
||||
"name": "测试名12称",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"level": 0,
|
||||
"createTime": "2021-05-12T16:52:36.509",
|
||||
"modifyTime": "2021-05-12T16:52:36.509"
|
||||
},
|
||||
{
|
||||
"id": "842080718946304000",
|
||||
"code": "LX842080718946304000",
|
||||
"name": "测试名12称",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:48:08.502",
|
||||
"modifyTime": "2021-05-12T16:48:08.502"
|
||||
},
|
||||
{
|
||||
"id": "842080533683896320",
|
||||
"code": "LX842080533683896320",
|
||||
"name": "测试名称",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:47:24.333",
|
||||
"modifyTime": "2021-05-12T16:47:24.333"
|
||||
},
|
||||
{
|
||||
"id": "842080383792054272",
|
||||
"code": "LX842080383792054272",
|
||||
"name": "测试名称",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:46:48.594",
|
||||
"modifyTime": "2021-05-12T16:46:48.595"
|
||||
},
|
||||
{
|
||||
"id": "842080107601330176",
|
||||
"code": "LX842080107601330176",
|
||||
"name": "测试名称",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:45:42.746",
|
||||
"modifyTime": "2021-05-12T16:45:42.746"
|
||||
},
|
||||
{
|
||||
"id": "842079882593697792",
|
||||
"code": "LX842079882593697792",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:44:49.1",
|
||||
"modifyTime": "2021-05-12T16:44:49.1"
|
||||
},
|
||||
{
|
||||
"id": "842079703543054336",
|
||||
"code": "LX842079703543054336",
|
||||
"name": "testH",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:44:06.41",
|
||||
"modifyTime": "2021-05-12T16:44:06.41"
|
||||
},
|
||||
{
|
||||
"id": "842076140209176576",
|
||||
"code": "LX842076140209176576",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:29:56.845",
|
||||
"modifyTime": "2021-05-12T16:29:56.845"
|
||||
},
|
||||
{
|
||||
"id": "842075986013978624",
|
||||
"code": "LX842075986013978624",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:29:20.083",
|
||||
"modifyTime": "2021-05-12T16:29:20.083"
|
||||
},
|
||||
{
|
||||
"id": "842075577622986752",
|
||||
"code": "LX842075577622986752",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:27:42.715",
|
||||
"modifyTime": "2021-05-12T16:27:42.715"
|
||||
},
|
||||
{
|
||||
"id": "842075106959163392",
|
||||
"code": "LX842075106959163392",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:25:50.503",
|
||||
"modifyTime": "2021-05-12T16:25:50.503"
|
||||
},
|
||||
{
|
||||
"id": "842069696281837568",
|
||||
"code": "LX842069696281837568",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:04:20.495",
|
||||
"modifyTime": "2021-05-12T16:04:20.495"
|
||||
},
|
||||
{
|
||||
"id": "842069630234132480",
|
||||
"code": "LX842069630234132480",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:04:04.755",
|
||||
"modifyTime": "2021-05-12T16:04:04.755"
|
||||
},
|
||||
{
|
||||
"id": "842069630229938177",
|
||||
"code": "LX842069630229938177",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:04:04.746",
|
||||
"modifyTime": "2021-05-12T16:04:04.746"
|
||||
},
|
||||
{
|
||||
"id": "842069630229938176",
|
||||
"code": "LX842069630229938176",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T16:04:04.745",
|
||||
"modifyTime": "2021-05-12T16:04:04.745"
|
||||
},
|
||||
{
|
||||
"id": "842068414619975680",
|
||||
"code": "LX842068414619975680",
|
||||
"name": "123",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-12T15:59:14.922",
|
||||
"modifyTime": "2021-05-12T15:59:14.922"
|
||||
},
|
||||
{
|
||||
"id": "841692320544849920",
|
||||
"code": "LX841692320544849920",
|
||||
"name": "2",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "841357330795724800",
|
||||
"createTime": "2021-05-11T15:04:47.363",
|
||||
"modifyTime": "2021-05-11T15:04:47.363"
|
||||
},
|
||||
{
|
||||
"id": "841690956896927744",
|
||||
"code": "LX841690956896927744",
|
||||
"name": "123123",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"level": 0,
|
||||
"createTime": "2021-05-11T14:59:21.99",
|
||||
"modifyTime": "2021-05-11T14:59:21.99"
|
||||
},
|
||||
{
|
||||
"id": "841690285124616192",
|
||||
"code": "LX841690285124616192",
|
||||
"name": "12312",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"createTime": "2021-05-11T14:56:41.826",
|
||||
"modifyTime": "2021-05-11T14:56:41.826"
|
||||
},
|
||||
{
|
||||
"id": "841689937030938624",
|
||||
"code": "LX841689937030938624",
|
||||
"name": "啊实打实大请问自行车",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"createTime": "2021-05-11T14:55:18.835",
|
||||
"modifyTime": "2021-05-11T14:55:18.835"
|
||||
},
|
||||
{
|
||||
"id": "841689533790552064",
|
||||
"code": "LX841689533790552064",
|
||||
"name": "啊啊 123",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"createTime": "2021-05-11T14:53:42.694",
|
||||
"modifyTime": "2021-05-11T14:53:42.694"
|
||||
},
|
||||
{
|
||||
"id": "841689482020257792",
|
||||
"code": "LX841689482020257792",
|
||||
"name": "啊啊啊啊啊啊啊",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"createTime": "2021-05-11T14:53:30.352",
|
||||
"modifyTime": "2021-05-11T14:53:30.352"
|
||||
},
|
||||
{
|
||||
"id": "841689453901643776",
|
||||
"code": "LX841689453901643776",
|
||||
"name": "111",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"createTime": "2021-05-11T14:53:23.647",
|
||||
"modifyTime": "2021-05-11T14:53:23.647"
|
||||
},
|
||||
{
|
||||
"id": "841689323123245056",
|
||||
"code": "LX841689323123245056",
|
||||
"name": "阿萨德123123",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "841357330795724800",
|
||||
"createTime": "2021-05-11T14:52:52.712",
|
||||
"modifyTime": "2021-05-11T14:52:58.515203"
|
||||
},
|
||||
{
|
||||
"id": "841427671341596672",
|
||||
"code": "LX841427671341596672",
|
||||
"name": "level4",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "836273563752202240",
|
||||
"createTime": "2021-05-10T21:33:09.822",
|
||||
"modifyTime": "2021-05-10T21:33:09.822"
|
||||
},
|
||||
{
|
||||
"id": "841357330795724800",
|
||||
"code": "LX841357330795724800",
|
||||
"name": "string123123",
|
||||
"status": 1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-10T16:53:39.767",
|
||||
"modifyTime": "2021-05-10T17:20:45.295986"
|
||||
},
|
||||
{
|
||||
"id": "841351759870820352",
|
||||
"code": "LXnull",
|
||||
"name": "分类名称744",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-10T16:31:31.123",
|
||||
"modifyTime": "2021-05-10T16:31:31.123"
|
||||
},
|
||||
{
|
||||
"id": "841351574222536704",
|
||||
"code": "LXnull",
|
||||
"name": "分类名称523",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-10T16:30:46.866",
|
||||
"modifyTime": "2021-05-10T16:30:46.866"
|
||||
},
|
||||
{
|
||||
"id": "841340873940664320",
|
||||
"code": "LX841340873940664320",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-10T15:48:16.341",
|
||||
"modifyTime": "2021-05-10T15:48:16.341"
|
||||
},
|
||||
{
|
||||
"id": "841339994529333248",
|
||||
"code": "LXnull",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-10T15:44:46.695",
|
||||
"modifyTime": "2021-05-10T15:44:46.695"
|
||||
},
|
||||
{
|
||||
"id": "841339863729963008",
|
||||
"code": "LX841339863729963008",
|
||||
"name": "一级分类0510",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 1,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-10T15:44:14.854",
|
||||
"modifyTime": "2021-05-10T15:44:14.854"
|
||||
},
|
||||
{
|
||||
"id": "841339223809196032",
|
||||
"code": "LXnull",
|
||||
"name": "llb",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "840222693197348864",
|
||||
"createTime": "2021-05-10T15:41:42.286",
|
||||
"modifyTime": "2021-05-10T15:41:42.287"
|
||||
},
|
||||
{
|
||||
"id": "841338235396292608",
|
||||
"code": "LX841338235396292608",
|
||||
"name": "asdad ",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "840222693197348864",
|
||||
"createTime": "2021-05-10T15:37:46.63",
|
||||
"modifyTime": "2021-05-10T15:37:46.63"
|
||||
},
|
||||
{
|
||||
"id": "841338205415407616",
|
||||
"code": "LXnull",
|
||||
"name": "444",
|
||||
"status": -1,
|
||||
"ownerType": 1,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"createTime": "2021-05-10T15:37:39.482",
|
||||
"modifyTime": "2021-05-10T15:37:39.482"
|
||||
},
|
||||
{
|
||||
"id": "841274691321593856",
|
||||
"code": "string123",
|
||||
"name": "string",
|
||||
"status": 0,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-10T11:25:16.576",
|
||||
"modifyTime": "2021-05-10T20:51:34.168796"
|
||||
},
|
||||
{
|
||||
"id": "840271829170913280",
|
||||
"code": "LXnull",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-07T17:00:18.741",
|
||||
"modifyTime": "2021-05-07T17:00:18.741"
|
||||
},
|
||||
{
|
||||
"id": "840263558552879104",
|
||||
"code": "string1234",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-07T16:27:23.705",
|
||||
"modifyTime": "2021-05-07T16:27:23.705"
|
||||
},
|
||||
{
|
||||
"id": "840262176588431360",
|
||||
"code": "string",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-07T16:21:54.429",
|
||||
"modifyTime": "2021-05-07T16:21:54.429"
|
||||
},
|
||||
{
|
||||
"id": "840236299997675520",
|
||||
"code": "CONTRACT-840236239733534720",
|
||||
"name": "合同类型03",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-07T14:39:04.758",
|
||||
"modifyTime": "2021-05-07T14:39:04.758"
|
||||
},
|
||||
{
|
||||
"id": "840231071957123072",
|
||||
"code": "type02",
|
||||
"name": "类目02",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "第二个类目",
|
||||
"createTime": "2021-05-07T14:18:18.295",
|
||||
"modifyTime": "2021-05-07T14:18:18.295"
|
||||
},
|
||||
{
|
||||
"id": "840222693197348864",
|
||||
"code": "type01",
|
||||
"name": "类目01",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "第一个类目",
|
||||
"createTime": "2021-05-07T13:45:00.649",
|
||||
"modifyTime": "2021-05-07T13:45:00.649"
|
||||
},
|
||||
{
|
||||
"id": "840166677759918080",
|
||||
"code": "123123123123",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 1,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-05-07T10:02:25.554",
|
||||
"modifyTime": "2021-05-07T10:02:25.554"
|
||||
},
|
||||
{
|
||||
"id": "836273563752202240",
|
||||
"code": "321",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "836270590603034624",
|
||||
"leafNode": 1,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-04-26T16:12:35.39",
|
||||
"modifyTime": "2021-04-26T16:12:35.39"
|
||||
},
|
||||
{
|
||||
"id": "836270590603034624",
|
||||
"code": "090",
|
||||
"name": "string123",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "827234392521834496",
|
||||
"leafNode": 0,
|
||||
"level": 0,
|
||||
"sort": 0,
|
||||
"rootId": "0",
|
||||
"remark": "string",
|
||||
"createTime": "2021-04-26T16:00:46.708",
|
||||
"modifyTime": "2021-05-10T21:32:56.084583"
|
||||
},
|
||||
{
|
||||
"id": "827488279182966784",
|
||||
"code": "001",
|
||||
"name": "123123",
|
||||
"status": 1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "0",
|
||||
"leafNode": 0,
|
||||
"remark": "string",
|
||||
"createUserId": "2",
|
||||
"createTime": "2021-04-02T10:23:00.227",
|
||||
"modifyTime": "2021-04-26T20:19:33.518254"
|
||||
},
|
||||
{
|
||||
"id": "0",
|
||||
"code": "string123",
|
||||
"name": "string",
|
||||
"status": -1,
|
||||
"ownerType": 0,
|
||||
"ownerCode": "10086",
|
||||
"parentId": "-1",
|
||||
"leafNode": 0,
|
||||
"remark": "string",
|
||||
"createTime": "2021-04-22T14:04:02.462",
|
||||
"modifyTime": "2021-05-07T10:02:25.550884"
|
||||
}
|
||||
]
|
||||
Loading…
Reference in New Issue
Block a user