commit 3a9fcc9dc5e54081aca84fed05b2f7bc0ca53565
Author: lijiazhuo <13787924+lijiazhuosky@user.noreply.gitee.com>
Date: Wed Aug 20 13:31:30 2025 +0800
first commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..a2a3040
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,31 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**
+!**/src/test/**
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+
+### VS Code ###
+.vscode/
diff --git a/.mvn/wrapper/MavenWrapperDownloader.java b/.mvn/wrapper/MavenWrapperDownloader.java
new file mode 100644
index 0000000..74f4de4
--- /dev/null
+++ b/.mvn/wrapper/MavenWrapperDownloader.java
@@ -0,0 +1,118 @@
+/*
+ * Copyright 2012-2019 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.
+ */
+
+import java.net.*;
+import java.io.*;
+import java.nio.channels.*;
+import java.util.Properties;
+
+public class MavenWrapperDownloader {
+
+ private static final String WRAPPER_VERSION = "0.5.5";
+ /**
+ * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
+ */
+ private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/"
+ + WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar";
+
+ /**
+ * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
+ * use instead of the default one.
+ */
+ private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
+ ".mvn/wrapper/maven-wrapper.properties";
+
+ /**
+ * Path where the maven-wrapper.jar will be saved to.
+ */
+ private static final String MAVEN_WRAPPER_JAR_PATH =
+ ".mvn/wrapper/maven-wrapper.jar";
+
+ /**
+ * Name of the property which should be used to override the default download url for the wrapper.
+ */
+ private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
+
+ public static void main(String args[]) {
+ System.out.println("- Downloader started");
+ File baseDirectory = new File(args[0]);
+ System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
+
+ // If the maven-wrapper.properties exists, read it and check if it contains a custom
+ // wrapperUrl parameter.
+ File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
+ String url = DEFAULT_DOWNLOAD_URL;
+ if (mavenWrapperPropertyFile.exists()) {
+ FileInputStream mavenWrapperPropertyFileInputStream = null;
+ try {
+ mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
+ Properties mavenWrapperProperties = new Properties();
+ mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
+ url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
+ } catch (IOException e) {
+ System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
+ } finally {
+ try {
+ if (mavenWrapperPropertyFileInputStream != null) {
+ mavenWrapperPropertyFileInputStream.close();
+ }
+ } catch (IOException e) {
+ // Ignore ...
+ }
+ }
+ }
+ System.out.println("- Downloading from: " + url);
+
+ File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
+ if (!outputFile.getParentFile().exists()) {
+ if (!outputFile.getParentFile().mkdirs()) {
+ System.out.println(
+ "- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'");
+ }
+ }
+ System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
+ try {
+ downloadFileFromURL(url, outputFile);
+ System.out.println("Done");
+ System.exit(0);
+ } catch (Throwable e) {
+ System.out.println("- Error downloading");
+ e.printStackTrace();
+ System.exit(1);
+ }
+ }
+
+ private static void downloadFileFromURL(String urlString, File destination) throws Exception {
+ if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
+ String username = System.getenv("MVNW_USERNAME");
+ char[] password = System.getenv("MVNW_PASSWORD").toCharArray();
+ Authenticator.setDefault(new Authenticator() {
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(username, password);
+ }
+ });
+ }
+ URL website = new URL(urlString);
+ ReadableByteChannel rbc;
+ rbc = Channels.newChannel(website.openStream());
+ FileOutputStream fos = new FileOutputStream(destination);
+ fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
+ fos.close();
+ rbc.close();
+ }
+
+}
diff --git a/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar
new file mode 100644
index 0000000..0d5e649
Binary files /dev/null and b/.mvn/wrapper/maven-wrapper.jar differ
diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties
new file mode 100644
index 0000000..7d59a01
--- /dev/null
+++ b/.mvn/wrapper/maven-wrapper.properties
@@ -0,0 +1,2 @@
+distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.2/apache-maven-3.6.2-bin.zip
+wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..d8ef8ae
--- /dev/null
+++ b/README.md
@@ -0,0 +1,20 @@
+项目概述:
+此项目为安全统筹项目,主要涉及车辆的保险接口,定损平台等相关业务。以及修理厂等相关事宜,还有图片库业务
+
+对接人:
+赵嘉辉,王茜 (如果需要接口文档以及业务逻辑上的问题请联系王茜,赵嘉辉)
+
+项目主要为推送
+ 以下为相关接口:
+ @PostMapping("/twodianthree")
+ @PostMapping("/xiugaiguize4")
+ @PostMapping("/baoxian")
+ @PostMapping("/a")
+ @PostMapping("/twodianthree")
+ @PostMapping("/api/insLoss/pushData")
+ @PostMapping("/api/quoteGuide/pushData")
+ @PostMapping("/xuigai")
+ @PostMapping("/xuigai1")
+ @PostMapping("/xuigai2")
+ @PostMapping("xixi")
+ @PostMapping("/hahahah")
\ No newline at end of file
diff --git a/mvnw b/mvnw
new file mode 100644
index 0000000..822f699
--- /dev/null
+++ b/mvnw
@@ -0,0 +1,322 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you 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.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven2 Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="$(/usr/libexec/java_home)"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+if [ -z "$M2_HOME" ]; then
+ ## resolve links - $0 may be a link to maven's home
+ 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
+
+ saveddir=$(pwd)
+
+ M2_HOME=$(dirname "$PRG")/..
+
+ # make it fully qualified
+ M2_HOME=$(cd "$M2_HOME" && pwd)
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=$(cygpath --unix "$M2_HOME")
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="$( (
+ cd "$M2_HOME"
+ pwd
+ ))"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="$( (
+ cd "$JAVA_HOME"
+ pwd
+ ))"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr \"$javaExecutable\" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! $(expr "$readLink" : '\([^ ]*\)') = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname \"$javaExecutable\")"
+ javaExecutable="$(cd \"$javaHome\" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f \"$javaExecutable\")"
+ fi
+ javaHome="$(dirname \"$javaExecutable\")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ 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
+ else
+ JAVACMD="$(which java)"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.."
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' <"$1")"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(pwd)")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in wrapperUrl)
+ jarUrl="$value"
+ break
+ ;;
+ esac
+ done <"$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=$(cygpath --path --windows "$M2_HOME")
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/mvnw.cmd b/mvnw.cmd
new file mode 100644
index 0000000..84d60ab
--- /dev/null
+++ b/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. 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,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven2 Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/oioioi.jiyuankeshang.com_jks.zip b/oioioi.jiyuankeshang.com_jks.zip
new file mode 100644
index 0000000..37171e2
Binary files /dev/null and b/oioioi.jiyuankeshang.com_jks.zip differ
diff --git a/oioioi.jiyuankeshang.com_jks/keystorePass.txt b/oioioi.jiyuankeshang.com_jks/keystorePass.txt
new file mode 100644
index 0000000..7f14995
--- /dev/null
+++ b/oioioi.jiyuankeshang.com_jks/keystorePass.txt
@@ -0,0 +1 @@
+2u75hg6v08
\ No newline at end of file
diff --git a/oioioi.jiyuankeshang.com_jks/oioioi.jiyuankeshang.com.jks b/oioioi.jiyuankeshang.com_jks/oioioi.jiyuankeshang.com.jks
new file mode 100644
index 0000000..92f1ca9
Binary files /dev/null and b/oioioi.jiyuankeshang.com_jks/oioioi.jiyuankeshang.com.jks differ
diff --git a/pom.xml b/pom.xml
new file mode 100644
index 0000000..796c3c4
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,78 @@
+
+
+ 4.0.0
+
+ org.springframework.boot
+ spring-boot-starter-parent
+ 2.2.1.RELEASE
+
+
+ com.example
+ sso
+ 0.0.1-SNAPSHOT
+ jar
+ sso
+ Demo project for Spring Boot
+
+
+ 1.8
+
+
+
+
+ com.auth0
+ java-jwt
+ 3.8.1
+
+
+ org.springframework.boot
+ spring-boot-starter-web
+
+
+ org.springframework.boot
+ spring-boot-configuration-processor
+ true
+
+
+ org.projectlombok
+ lombok
+ true
+
+
+ org.springframework.boot
+ spring-boot-starter-test
+ test
+
+
+ org.apache.httpcomponents
+ httpclient
+ 4.5.2
+
+
+ com.alibaba
+ fastjson
+ 1.2.45
+
+
+ org.apache.httpcomponents
+ httpmime
+ 4.5.14
+
+
+
+
+
+
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+
+
+
+
+
diff --git a/src/main/java/com/example/sso/SsoApplication.java b/src/main/java/com/example/sso/SsoApplication.java
new file mode 100644
index 0000000..6b7596b
--- /dev/null
+++ b/src/main/java/com/example/sso/SsoApplication.java
@@ -0,0 +1,18 @@
+package com.example.sso;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.annotation.EnableScheduling;
+
+@SpringBootApplication
+@EnableScheduling
+@EnableAsync
+
+public class SsoApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(SsoApplication.class, args);
+ }
+
+}
diff --git a/src/main/java/com/example/sso/config/AsyncConfig.java b/src/main/java/com/example/sso/config/AsyncConfig.java
new file mode 100644
index 0000000..715ddf7
--- /dev/null
+++ b/src/main/java/com/example/sso/config/AsyncConfig.java
@@ -0,0 +1,48 @@
+package com.example.sso.config;
+
+import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.scheduling.annotation.AsyncConfigurer;
+import org.springframework.scheduling.annotation.EnableAsync;
+import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
+
+import java.util.concurrent.Executor;
+import java.util.concurrent.ThreadPoolExecutor;
+
+@Configuration
+@EnableAsync
+public class AsyncConfig implements AsyncConfigurer {
+
+
+ @Override
+ @Bean
+ public Executor getAsyncExecutor() {
+ ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
+ // 核心线程数:线程池创建的时候初始化的线程数
+ executor.setCorePoolSize(30);
+ // 最大线程数:线程池最大的线程数,只有缓冲队列满了之后才会申请超过核心线程数的线程
+ executor.setMaxPoolSize(100);
+ // 缓冲队列:用来缓冲执行任务的队列
+ executor.setQueueCapacity(50);
+ // 线程池关闭:等待所有任务都完成再关闭
+ executor.setWaitForTasksToCompleteOnShutdown(true);
+ // 等待时间:等待5秒后强制停止
+ executor.setAwaitTerminationSeconds(5);
+ // 允许空闲时间:超过核心线程之外的线程到达60秒后会被销毁
+ executor.setKeepAliveSeconds(60);
+ // 线程名称前缀
+ executor.setThreadNamePrefix("anquantongchou");
+ // 缓冲队列满了之后的拒绝策略:由调用线程处理(一般是主线程)
+ executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
+
+ // 初始化线程
+ executor.initialize();
+ return executor;
+ }
+
+ @Override
+ public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler() {
+ return null;
+ }
+}
diff --git a/src/main/java/com/example/sso/config/GlobalThreadPoolConfig.java b/src/main/java/com/example/sso/config/GlobalThreadPoolConfig.java
new file mode 100644
index 0000000..4cab8b1
--- /dev/null
+++ b/src/main/java/com/example/sso/config/GlobalThreadPoolConfig.java
@@ -0,0 +1,29 @@
+package com.example.sso.config;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+import java.util.concurrent.*;
+import java.util.concurrent.atomic.AtomicInteger;
+@Configuration
+public class GlobalThreadPoolConfig {
+ @Bean(name = "globalThreadPool")
+ public ExecutorService globalThreadPool() {
+ int corePoolSize = Runtime.getRuntime().availableProcessors() * 2; // IO密集型建议2~4倍CPU核心数
+ int maxPoolSize = corePoolSize * 2;
+ return new ThreadPoolExecutor(
+ corePoolSize,
+ maxPoolSize,
+ 60L, TimeUnit.SECONDS,
+ new LinkedBlockingQueue<>(1000), // 避免无界队列导致OOM
+ new ThreadFactory() { // 自定义线程命名
+ private final AtomicInteger counter = new AtomicInteger(1);
+ @Override
+ public Thread newThread(Runnable r) {
+ return new Thread(r, "global-pool-" + counter.getAndIncrement());
+ }
+ },
+ new ThreadPoolExecutor.CallerRunsPolicy() // 队列满时由调用线程执行
+ );
+ }
+}
diff --git a/src/main/java/com/example/sso/config/HttpsConfig.java b/src/main/java/com/example/sso/config/HttpsConfig.java
new file mode 100644
index 0000000..e9440c9
--- /dev/null
+++ b/src/main/java/com/example/sso/config/HttpsConfig.java
@@ -0,0 +1,28 @@
+package com.example.sso.config;
+
+import org.apache.catalina.Context;
+import org.apache.catalina.connector.Connector;
+import org.apache.tomcat.util.descriptor.web.SecurityCollection;
+import org.apache.tomcat.util.descriptor.web.SecurityConstraint;
+import org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory;
+import org.springframework.boot.web.servlet.server.ServletWebServerFactory;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+@Configuration
+public class HttpsConfig {
+ @Bean
+ public ServletWebServerFactory servletContainer() {
+ TomcatServletWebServerFactory tomcat = new TomcatServletWebServerFactory();
+ tomcat.addAdditionalTomcatConnectors(redirectHttpConnector());
+ return tomcat;
+ }
+ private Connector redirectHttpConnector() {
+ Connector connector = new Connector("org.apache.coyote.http11.Http11NioProtocol");
+ connector.setScheme("http");
+ connector.setPort(8080);
+ connector.setSecure(false);
+ connector.setRedirectPort(8089); // 重定向到HTTPS端口
+ return connector;
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/example/sso/controller/ChuDanController.java b/src/main/java/com/example/sso/controller/ChuDanController.java
new file mode 100644
index 0000000..d34355f
--- /dev/null
+++ b/src/main/java/com/example/sso/controller/ChuDanController.java
@@ -0,0 +1,110 @@
+package com.example.sso.controller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.dao.UpdataBaoXian;
+import com.example.sso.util.AnQuanUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@Slf4j
+public class ChuDanController {
+ @PostMapping("/baoxian")
+ public String dan(@RequestBody JSONObject data1) {
+ JSONObject datas = data1.getJSONObject("data");
+ log.info(datas.toJSONString());
+ String a = datas.getString("a");
+ String b = datas.getString("b");
+ String c = datas.getString("c");
+ String d = datas.getString("d");
+ String e = datas.getString("e");
+ String f = datas.getString("f");
+ String g = datas.getString("g");
+ String h = datas.getString("h");
+ String i = datas.getString("i");
+ String j = datas.getString("j");
+ Float k = datas.getFloat("k");
+ Float l = datas.getFloat("l");
+ Float m = datas.getFloat("m");
+ Float n = datas.getFloat("n");
+ String o = datas.getString("o");
+ String p = datas.getString("p");
+ String q = datas.getString("q");
+ String r = datas.getString("r");
+ String s = datas.getString("s");
+ String t = datas.getString("t");
+ String u = datas.getString("u");
+ String v = datas.getString("v");
+ String gonghao = datas.getString("gonghao");
+ String id = datas.getString("_id");
+ if (p.isEmpty() || p == null){
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("username",gonghao);
+ jsonObject.put("password","000000");
+ JSONObject data = new JSONObject();
+ data.put("beginTime",a);
+ data.put("endTime",b);
+ data.put("carNo",c);
+ data.put("bf_personName",d);
+ data.put("bf_certNo",e);
+ data.put("cf_isgroup",f);
+ data.put("cf_personName",g);
+ data.put("cf_certNo",h);
+ data.put("cz_personName",i);
+ data.put("cz_certNo",j);
+
+ data.put("z_cs_jdmp",k);
+ data.put("z_sz_tcje",l);
+ data.put("z_sj_tcje",m);
+ data.put("z_ck_zwtcje",n);
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String chu = AnQuanUtil.chu(jsonString);
+ log.info("出单: " +chu );
+ JSONObject jsonObject1 = JSON.parseObject(chu);
+ String errcode = jsonObject1.getString("errcode");
+ String errmsg = jsonObject1.getString("errmsg");
+ String id1 = "";
+ if (errcode.equals("0")) {
+ id1 = jsonObject1.getJSONObject("data").getString("id");
+ }
+ String updatas = UpdataBaoXian.updatas(id, id1, errcode, errmsg);
+ log.info(updatas);
+
+
+ }else {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("username",gonghao);
+ jsonObject.put("password","000000");
+ JSONObject data = new JSONObject();
+
+ data.put("carNo",c);
+ data.put("vin",o);
+ data.put("abortDate",p);
+ data.put("remark",q);
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String chu = AnQuanUtil.tui(jsonString);
+ log.info("退单: " +chu );
+ JSONObject jsonObject1 = JSON.parseObject(chu);
+ String errcode = jsonObject1.getString("errcode");
+ String errmsg = jsonObject1.getString("errmsg");
+ String id1 = "";
+ if (errcode.equals("0")) {
+ id1 = jsonObject1.getJSONObject("data").getString("id");
+ }
+ String updatas = UpdataBaoXian.updatas(id, id1, errcode, errmsg);
+ log.info(updatas);
+
+ }
+
+
+
+
+ return "成功!!!!!";
+ }
+}
diff --git a/src/main/java/com/example/sso/controller/TuiDanController.java b/src/main/java/com/example/sso/controller/TuiDanController.java
new file mode 100644
index 0000000..a65e8ae
--- /dev/null
+++ b/src/main/java/com/example/sso/controller/TuiDanController.java
@@ -0,0 +1,26 @@
+package com.example.sso.controller;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.AnQuanUtil;
+
+public class TuiDanController {
+ public static void main(String[] args) {
+
+
+
+
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("username","10010");
+ jsonObject.put("password","000000");
+ JSONObject data = new JSONObject();
+ data.put("carNo","京BD55281");
+ data.put("vin","");
+ data.put("abortDate","2024-09-26");
+ data.put("remark","备注");
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String chu = AnQuanUtil.tui( jsonString);
+ System.out.println(chu);
+ }
+}
diff --git a/src/main/java/com/example/sso/controller/XianCheng.java b/src/main/java/com/example/sso/controller/XianCheng.java
new file mode 100644
index 0000000..732c927
--- /dev/null
+++ b/src/main/java/com/example/sso/controller/XianCheng.java
@@ -0,0 +1,50 @@
+package com.example.sso.controller;
+
+
+import com.alibaba.fastjson.JSONObject;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.beans.factory.annotation.Qualifier;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.ExecutorService;
+
+@RestController
+@Slf4j
+public class XianCheng {
+ @Autowired
+ @Qualifier("globalThreadPool")
+ private ExecutorService executor;
+
+ @PostMapping("/a")
+ public CompletableFuture pushdata(@RequestBody JSONObject data) {
+ // 1. 先构造并返回固定响应
+ JSONObject fixedResponse = new JSONObject();
+ fixedResponse.put("data", "11");
+
+ // 2. 提交耗时任务到线程池(不阻塞主线程)
+ executor.execute(() -> {
+ try {
+ Thread.sleep(5000); // 模拟耗时操作
+ log.info("耗时操作完成,处理结果: {}", data);
+ } catch (InterruptedException e) {
+ log.error("耗时操作被中断", e);
+ Thread.currentThread().interrupt(); // 恢复中断状态
+ }
+ });
+
+ // 3. 立即返回响应
+ return CompletableFuture.completedFuture(fixedResponse);
+ }
+
+
+
+
+
+
+
+
+}
diff --git a/src/main/java/com/example/sso/dao/FengXianXinXi.java b/src/main/java/com/example/sso/dao/FengXianXinXi.java
new file mode 100644
index 0000000..6462caa
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/FengXianXinXi.java
@@ -0,0 +1,117 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class FengXianXinXi {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId,String ruleName,Double overAmount,String lossName,
+ String requestId,String riskClass,String riskCategory,String riskClassCode,String riskCategoryCode,
+ Integer fxxx, String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5015829096e59acb03542");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value","定损" + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject serialno = new JSONObject();
+ serialno.put("value", fxxx);
+ data.put("serialno", serialno );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject ruleName1 = new JSONObject();
+ ruleName1.put("value", ruleName);
+ data.put("rulename", ruleName1);
+ if ( overAmount!= null){
+ JSONObject overAmount1 = new JSONObject();
+ overAmount1.put("value", overAmount);
+ data.put("overamount", overAmount1);
+ }
+
+ if ( lossName!= null){
+ JSONObject lossName1 = new JSONObject();
+ lossName1.put("value", lossName);
+ data.put("lossname", lossName1);
+ }
+
+ if (requestId != null){
+ JSONObject requestId1 = new JSONObject();
+ requestId1.put("value", requestId);
+ data.put("requestid", requestId1);
+ }
+
+ if (riskClass != null){
+ JSONObject riskClass1 = new JSONObject();
+ riskClass1.put("value", riskClass);
+ data.put("riskclass", riskClass1);
+
+ }
+ if ( riskCategory!= null){
+ JSONObject riskCategory1 = new JSONObject();
+ riskCategory1.put("value", riskCategory);
+ data.put("riskcategory", riskCategory1);
+ }
+
+ if ( riskClassCode!= null){
+ JSONObject riskClassCode1 = new JSONObject();
+ riskClassCode1.put("value", riskClassCode);
+ data.put("riskclasscode", riskClassCode1);
+ }
+
+ if (riskCategoryCode != null){
+ JSONObject riskCategoryCode1 = new JSONObject();
+ riskCategoryCode1.put("value", riskCategoryCode);
+ data.put("riskcategorycode", riskCategoryCode1);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/FengXianXinXiTwoFour.java b/src/main/java/com/example/sso/dao/FengXianXinXiTwoFour.java
new file mode 100644
index 0000000..091a71e
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/FengXianXinXiTwoFour.java
@@ -0,0 +1,107 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class FengXianXinXiTwoFour {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId, String ruleName, Double overAmount, String lossName,
+ String requestId, String riskClass, String riskCategory, String riskClassCode, String riskCategoryCode,
+ String isConfirmRisk,String data_sources1,Integer FX,String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5015829096e59acb03542");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value",data_sources1 + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject serialno = new JSONObject();
+ serialno.put("value", FX);
+ data.put("serialno", serialno );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject ruleName1 = new JSONObject();
+ ruleName1.put("value", ruleName);
+ data.put("rulename", ruleName1);
+ if ( overAmount!= null){ JSONObject overAmount1 = new JSONObject();
+ overAmount1.put("value", overAmount);
+ data.put("overamount", overAmount1);}
+
+ if ( lossName!= null){JSONObject lossName1 = new JSONObject();
+ lossName1.put("value", lossName);
+ data.put("lossname", lossName1); }
+
+ if ( requestId!= null){ JSONObject requestId1 = new JSONObject();
+ requestId1.put("value", requestId);
+ data.put("requestid", requestId1); }
+
+ if ( riskClass!= null){ JSONObject riskClass1 = new JSONObject();
+ riskClass1.put("value", riskClass);
+ data.put("riskclass", riskClass1);}
+
+ if ( riskCategory!= null){ JSONObject riskCategory1 = new JSONObject();
+ riskCategory1.put("value", riskCategory);
+ data.put("riskcategory", riskCategory1); }
+
+ if ( riskClassCode!= null){ JSONObject riskClassCode1 = new JSONObject();
+ riskClassCode1.put("value", riskClassCode);
+ data.put("riskclasscode", riskClassCode1); }
+ if ( riskCategoryCode!= null){ JSONObject riskCategoryCode1 = new JSONObject();
+ riskCategoryCode1.put("value", riskCategoryCode);
+ data.put("riskcategorycode", riskCategoryCode1); }
+
+
+
+ JSONObject isConfirmRisk1 = new JSONObject();
+ isConfirmRisk1.put("value", isConfirmRisk);
+ data.put("isconfirmrisk", isConfirmRisk1);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/FengXianXinXiTwoFour_.java b/src/main/java/com/example/sso/dao/FengXianXinXiTwoFour_.java
new file mode 100644
index 0000000..551439b
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/FengXianXinXiTwoFour_.java
@@ -0,0 +1,75 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class FengXianXinXiTwoFour_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5015829096e59acb03542");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f5015829096e59acb03542");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/FengXianXinXi_.java b/src/main/java/com/example/sso/dao/FengXianXinXi_.java
new file mode 100644
index 0000000..8c98034
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/FengXianXinXi_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class FengXianXinXi_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5015829096e59acb03542");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f5015829096e59acb03542");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/GongShiDingSun.java b/src/main/java/com/example/sso/dao/GongShiDingSun.java
new file mode 100644
index 0000000..23bd85a
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GongShiDingSun.java
@@ -0,0 +1,166 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class GongShiDingSun {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId,String createDate,Double manpowerSurveyPrice,String idDcInsLossDetail,
+ Double auditDamagePrice,String manpowerItemName,String manpowerItemCode,Double manpowerDiscountPrice,
+ String remark,Double manpowerDiscount,Double multiaspectRuleDiscount,Integer serialNo,String manpowerGroupName,
+ String seriesName,String seriesGroupName,String schemeName,String isAiLossManpower,String isHisManpower,
+ String isLock, String insuranceCodes, String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5000e47f52adcb2040858");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+ JSONObject match_field = new JSONObject();
+ match_field.put("value","定损" + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject manpowerSurveyPrice1 = new JSONObject();
+ manpowerSurveyPrice1.put("value", manpowerSurveyPrice);
+ data.put("manpowersurveyprice", manpowerSurveyPrice1);
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+ if ( auditDamagePrice!= null){
+ JSONObject auditDamagePrice1 = new JSONObject();
+ auditDamagePrice1.put("value", auditDamagePrice);
+ data.put("auditdamageprice", auditDamagePrice1);
+ }
+
+
+ JSONObject manpowerItemName1 = new JSONObject();
+ manpowerItemName1.put("value", manpowerItemName);
+ data.put("manpoweritemname", manpowerItemName1);
+ if ( manpowerItemCode!= null){
+ JSONObject manpowerItemCode1 = new JSONObject();
+ manpowerItemCode1.put("value", manpowerItemCode);
+ data.put("manpoweritemcode", manpowerItemCode1);
+ }
+
+ if (manpowerDiscountPrice != null){
+ JSONObject manpowerDiscountPrice1 = new JSONObject();
+ manpowerDiscountPrice1.put("value", manpowerDiscountPrice);
+ data.put("manpowerdiscountprice", manpowerDiscountPrice1);
+ }
+
+ if ( remark!= null){
+ JSONObject remark1 = new JSONObject();
+ remark1.put("value", remark);
+ data.put("remark", remark1);
+ }
+
+ if ( manpowerDiscount!= null){
+ JSONObject manpowerDiscount1 = new JSONObject();
+ manpowerDiscount1.put("value", manpowerDiscount);
+ data.put("manpowerdiscount", manpowerDiscount1);
+ }
+
+ if (multiaspectRuleDiscount != null){
+ JSONObject multiaspectRuleDiscount1 = new JSONObject();
+ multiaspectRuleDiscount1.put("value", multiaspectRuleDiscount);
+ data.put("multiaspectrulediscount", multiaspectRuleDiscount1);
+ }
+
+
+ JSONObject serialNo1 = new JSONObject();
+ serialNo1.put("value", serialNo);
+ data.put("serialno", serialNo1);
+ if ( manpowerGroupName!= null){
+ JSONObject manpowerGroupName1 = new JSONObject();
+ manpowerGroupName1.put("value", manpowerGroupName);
+ data.put("manpowergroupname", manpowerGroupName1);
+ }
+
+ if (seriesGroupName != null){
+ JSONObject seriesName1 = new JSONObject();
+ seriesName1.put("value", seriesName);
+ data.put("seriesname", seriesName1);
+ }
+
+
+ JSONObject seriesGroupName1 = new JSONObject();
+ seriesGroupName1.put("value", seriesGroupName);
+ data.put("seriesgroupname", seriesGroupName1);
+ if ( schemeName!= null){
+ JSONObject schemeName1 = new JSONObject();
+ schemeName1.put("value", schemeName);
+ data.put("schemename", schemeName1);
+ }
+
+ if (isAiLossManpower != null){
+ JSONObject isAiLossManpower1 = new JSONObject();
+ isAiLossManpower1.put("value", isAiLossManpower);
+ data.put("isailossmanpower", isAiLossManpower1);
+ }
+
+ if ( isHisManpower!= null){
+ JSONObject isHisManpower1 = new JSONObject();
+ isHisManpower1.put("value", isHisManpower);
+ data.put("ishismanpower", isHisManpower1);
+ }
+
+ if ( isLock!= null){
+ JSONObject isLock1 = new JSONObject();
+ isLock1.put("value", isLock);
+ data.put("islock", isLock1);
+ }
+
+ if (insuranceCodes != null){
+ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1);
+
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/GongShiDingSunTwoFour.java b/src/main/java/com/example/sso/dao/GongShiDingSunTwoFour.java
new file mode 100644
index 0000000..7540fae
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GongShiDingSunTwoFour.java
@@ -0,0 +1,141 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class GongShiDingSunTwoFour {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId, String createDate, Double manpowerSurveyPrice, String idDcInsLossDetail,
+ Double auditDamagePrice, String manpowerItemName, String manpowerItemCode, Double manpowerDiscountPrice,
+ String remark, Double manpowerDiscount, Double multiaspectRuleDiscount, Integer serialNo, String manpowerGroupName,
+ String seriesName, String seriesGroupName, String schemeName, String isAiLossManpower, String isHisManpower,
+ String isLock, String insuranceCodes,String data_sources1,String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5000e47f52adcb2040858");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value",data_sources1 + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject manpowerSurveyPrice1 = new JSONObject();
+ manpowerSurveyPrice1.put("value", manpowerSurveyPrice);
+ data.put("manpowersurveyprice", manpowerSurveyPrice1);
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+ if ( auditDamagePrice!= null){ JSONObject auditDamagePrice1 = new JSONObject();
+ auditDamagePrice1.put("value", auditDamagePrice);
+ data.put("auditdamageprice", auditDamagePrice1); }
+
+
+ JSONObject manpowerItemName1 = new JSONObject();
+ manpowerItemName1.put("value", manpowerItemName);
+ data.put("manpoweritemname", manpowerItemName1);
+ if ( manpowerItemCode!= null){ JSONObject manpowerItemCode1 = new JSONObject();
+ manpowerItemCode1.put("value", manpowerItemCode);
+ data.put("manpoweritemcode", manpowerItemCode1); }
+
+ if ( manpowerDiscountPrice!= null){ JSONObject manpowerDiscountPrice1 = new JSONObject();
+ manpowerDiscountPrice1.put("value", manpowerDiscountPrice);
+ data.put("manpowerdiscountprice", manpowerDiscountPrice1); }
+
+ if ( remark!= null){ JSONObject remark1 = new JSONObject();
+ remark1.put("value", remark);
+ data.put("remark", remark1);}
+
+ if ( manpowerDiscount!= null){ JSONObject manpowerDiscount1 = new JSONObject();
+ manpowerDiscount1.put("value", manpowerDiscount);
+ data.put("manpowerdiscount", manpowerDiscount1); }
+
+ if ( multiaspectRuleDiscount!= null){ JSONObject multiaspectRuleDiscount1 = new JSONObject();
+ multiaspectRuleDiscount1.put("value", multiaspectRuleDiscount);
+ data.put("multiaspectrulediscount", multiaspectRuleDiscount1); }
+
+
+ JSONObject serialNo1 = new JSONObject();
+ serialNo1.put("value", serialNo);
+ data.put("serialno", serialNo1);
+ if ( manpowerGroupName!= null){ JSONObject manpowerGroupName1 = new JSONObject();
+ manpowerGroupName1.put("value", manpowerGroupName);
+ data.put("manpowergroupname", manpowerGroupName1); }
+ if ( seriesName!= null){ JSONObject seriesName1 = new JSONObject();
+ seriesName1.put("value", seriesName);
+ data.put("seriesname", seriesName1);}
+
+
+ if (seriesGroupName != null){ JSONObject seriesGroupName1 = new JSONObject();
+ seriesGroupName1.put("value", seriesGroupName);
+ data.put("seriesgroupname", seriesGroupName1); }
+
+ if ( schemeName!= null){ JSONObject schemeName1 = new JSONObject();
+ schemeName1.put("value", schemeName);
+ data.put("schemename", schemeName1);}
+
+ if ( isAiLossManpower!= null){ JSONObject isAiLossManpower1 = new JSONObject();
+ isAiLossManpower1.put("value", isAiLossManpower);
+ data.put("isailossmanpower", isAiLossManpower1); }
+
+ if ( isHisManpower!= null){ JSONObject isHisManpower1 = new JSONObject();
+ isHisManpower1.put("value", isHisManpower);
+ data.put("ishismanpower", isHisManpower1); }
+
+ if ( isLock!= null){ JSONObject isLock1 = new JSONObject();
+ isLock1.put("value", isLock);
+ data.put("islock", isLock1);}
+
+ if ( insuranceCodes!= null){ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1);}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/GongShiDingSunTwoFour_.java b/src/main/java/com/example/sso/dao/GongShiDingSunTwoFour_.java
new file mode 100644
index 0000000..0db38b9
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GongShiDingSunTwoFour_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class GongShiDingSunTwoFour_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5000e47f52adcb2040858");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f5000e47f52adcb2040858");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/GongShiDingSun_.java b/src/main/java/com/example/sso/dao/GongShiDingSun_.java
new file mode 100644
index 0000000..33ebcb1
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GongShiDingSun_.java
@@ -0,0 +1,75 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class GongShiDingSun_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5000e47f52adcb2040858");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f5000e47f52adcb2040858");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/GouTongJiLuTwoFour.java b/src/main/java/com/example/sso/dao/GouTongJiLuTwoFour.java
new file mode 100644
index 0000000..14c2d48
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GouTongJiLuTwoFour.java
@@ -0,0 +1,92 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+public class GouTongJiLuTwoFour {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId, String operatorName,String operatorUm,
+ String operatorRole,String createDate,String opinion,String opinionDescribe,Integer dataSource,
+ String idDcCommunication,String os,String data_sources1,String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500fe34853d8f6e8d1adf");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject operatorName1 = new JSONObject();
+ operatorName1.put("value", operatorName);
+ data.put("operatorname", operatorName1);
+
+ JSONObject operatorUm1 = new JSONObject();
+ operatorUm1.put("value", operatorUm);
+ data.put("operatorum", operatorUm1);
+
+ JSONObject operatorRole1 = new JSONObject();
+ operatorRole1.put("value", operatorRole);
+ data.put("operatorrole", operatorRole1);
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject opinion1 = new JSONObject();
+ opinion1.put("value", opinion);
+ data.put(opinion, opinion1);
+ if ( opinionDescribe!= null){ JSONObject opinionDescribe1 = new JSONObject();
+ opinionDescribe1.put("value", opinionDescribe);
+ data.put("opiniondescribe", opinionDescribe1);}
+
+
+ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1);
+
+ JSONObject idDcCommunication1 = new JSONObject();
+ idDcCommunication1.put("value", idDcCommunication);
+ data.put("iddccommunication", idDcCommunication1);
+ if ( os!= null){ JSONObject os1 = new JSONObject();
+ os1.put("value", os);
+ data.put("os", os1);}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/GouTongJiLuTwoFour_.java b/src/main/java/com/example/sso/dao/GouTongJiLuTwoFour_.java
new file mode 100644
index 0000000..743aea8
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GouTongJiLuTwoFour_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class GouTongJiLuTwoFour_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500fe34853d8f6e8d1adf");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+// JSONObject data_sources = new JSONObject();
+// data_sources.put("field","data_sources");
+// data_sources.put("method","eq");
+// JSONArray jsonArraydata_sources = new JSONArray();
+// jsonArraydata_sources.add(data_sources1);
+// data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ // cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f500fe34853d8f6e8d1adf");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","失效");
+ data.put("effectiveness",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/GouTongXinXi.java b/src/main/java/com/example/sso/dao/GouTongXinXi.java
new file mode 100644
index 0000000..0774436
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GouTongXinXi.java
@@ -0,0 +1,98 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class GouTongXinXi {
+ public static void add(String reportNo, String lossSeqNo, String taskId, String operatorName,String operatorUm,
+ String operatorRole,String createDate,String opinion,String opinionDescribe,Integer dataSource,
+ String idDcCommunication,String os, String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500fe34853d8f6e8d1adf");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject operatorName1 = new JSONObject();
+ operatorName1.put("value", operatorName);
+ data.put("operatorname", operatorName1);
+
+ JSONObject operatorUm1 = new JSONObject();
+ operatorUm1.put("value", operatorUm);
+ data.put("operatorum", operatorUm1);
+
+ JSONObject operatorRole1 = new JSONObject();
+ operatorRole1.put("value", operatorRole);
+ data.put("operatorrole", operatorRole1);
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject opinion1 = new JSONObject();
+ opinion1.put("value", opinion);
+ data.put("opinion", opinion1);
+ if ( opinionDescribe!= null){
+ JSONObject opinionDescribe1 = new JSONObject();
+ opinionDescribe1.put("value", opinionDescribe);
+ data.put("opiniondescribe", opinionDescribe1);
+ }
+
+
+ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1);
+
+ JSONObject idDcCommunication1 = new JSONObject();
+ idDcCommunication1.put("value", idDcCommunication);
+ data.put("iddccommunication", idDcCommunication1);
+ if ( os!= null){
+ JSONObject os1 = new JSONObject();
+ os1.put("value", os);
+ data.put(os, os1);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/GouTongXinXi_.java b/src/main/java/com/example/sso/dao/GouTongXinXi_.java
new file mode 100644
index 0000000..51e0300
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/GouTongXinXi_.java
@@ -0,0 +1,75 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class GouTongXinXi_ {
+
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500fe34853d8f6e8d1adf");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+// JSONObject data_sources = new JSONObject();
+// data_sources.put("field","data_sources");
+// data_sources.put("method","eq");
+// JSONArray jsonArraydata_sources = new JSONArray();
+// jsonArraydata_sources.add(data_sources1);
+// data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+// cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f500fe34853d8f6e8d1adf");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","失效");
+ data.put("effectiveness",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/HeJiaHeSunJieGuo.java b/src/main/java/com/example/sso/dao/HeJiaHeSunJieGuo.java
new file mode 100644
index 0000000..19f882f
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/HeJiaHeSunJieGuo.java
@@ -0,0 +1,111 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class HeJiaHeSunJieGuo {
+ public static void add(String reportNo, String lossSeqNo, String taskId, Double rescueFee, Double verifyReduce,
+ Double actualValue, Double surplusValue, String auditType, String operatorRole,
+ String operatorUm, String opinionDescribe, Double guideAmount, String lossPosition2,
+ String pushQuoteInfoId, String pushQuoteDate, String data_sources1,String time
+
+ ) {
+ JSONArray datasall = new JSONArray();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb38234853d8f6e69c0bf");
+ jsonObject.put("is_start_trigger", true);
+
+
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+ if (rescueFee != null) {
+ JSONObject rescueFee1 = new JSONObject();
+ rescueFee1.put("value", rescueFee);
+ data.put("rescuefee", rescueFee1);
+ }
+
+
+ JSONObject verifyReduce1 = new JSONObject();
+ verifyReduce1.put("value", verifyReduce);
+ data.put("verifyreduce", verifyReduce1);
+ if (actualValue != null) {
+ JSONObject actualValue1 = new JSONObject();
+ actualValue1.put("value", actualValue);
+ data.put("actualvalue", actualValue1);
+ }
+
+
+ JSONObject surplusValue1 = new JSONObject();
+ surplusValue1.put("value", surplusValue);
+ data.put("surplusvalue", surplusValue1);
+
+ JSONObject auditType1 = new JSONObject();
+ auditType1.put("value", auditType);
+ data.put("audittype", auditType1);
+
+ JSONObject operatorRole1 = new JSONObject();
+ operatorRole1.put("value", operatorRole);
+ data.put("operatorrole", operatorRole1);
+
+ JSONObject operatorUm1 = new JSONObject();
+ operatorUm1.put("value", operatorUm);
+ data.put("operatorum", operatorUm1);
+ if (opinionDescribe != null) {
+ JSONObject opinionDescribe1 = new JSONObject();
+ opinionDescribe1.put("value", opinionDescribe);
+ data.put("opiniondescribe", opinionDescribe1);
+ }
+
+
+ JSONObject guideAmount1 = new JSONObject();
+ guideAmount1.put("value", guideAmount);
+ data.put("guideamount", guideAmount1);
+
+ if (lossPosition2 != null) {
+ JSONObject lossPosition21 = new JSONObject();
+ lossPosition21.put("value", lossPosition2);
+ data.put("lossposition2", lossPosition21);
+ }
+
+ if (pushQuoteInfoId != null){
+ JSONObject pushQuoteInfoId1 = new JSONObject();
+ pushQuoteInfoId1.put("value", pushQuoteInfoId);
+ data.put("pushquoteinfoId", pushQuoteInfoId1);
+ }
+
+ if ( pushQuoteDate!= null){
+ JSONObject pushQuoteDate1 = new JSONObject();
+ pushQuoteDate1.put("value", pushQuoteDate);
+ data.put("pushquotedate", pushQuoteDate1);
+ }
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/HeJiaHeSunJieGuo_.java b/src/main/java/com/example/sso/dao/HeJiaHeSunJieGuo_.java
new file mode 100644
index 0000000..e7e676a
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/HeJiaHeSunJieGuo_.java
@@ -0,0 +1,75 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class HeJiaHeSunJieGuo_ {
+
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb38234853d8f6e69c0bf");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67ecb38234853d8f6e69c0bf");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","失效");
+ data.put("effectiveness",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/PeiJianDingSun.java b/src/main/java/com/example/sso/dao/PeiJianDingSun.java
new file mode 100644
index 0000000..7a900c4
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/PeiJianDingSun.java
@@ -0,0 +1,288 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class PeiJianDingSun {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId,Integer audit,Integer recycle,Integer fitsFeeRateType,
+ Integer fitsFeeRateTypeEx,String createDate, Double adjustFitsFee,Double fitsSurveyPrice,Integer fitsCount,
+ String idDcInsLossDetail,Double auditDamagePrice,Double reduceRemnant,Double verifyReduce,String fitsName,
+ String fitsCode, String originalFitsName,String originalFitsCode,Double originalFitsDiscountPrice,
+ Double fitsFeeRate,String fitLabelCode,String lossRemark,Integer serialNo,String isFitsUnique,Double upperLimitPrice,
+ Double fitsFee,Double fitsDiscount,String fitsReamrk,String fitsMaterial,String isAiLossFits,String isHisFits,
+ String isLock,Double extendPrice,Integer carLimitCount,String dataSource,String insuranceCodes,String isEnquiry,
+ String isQuotation,Double historyLoss4SPrice,Double historyLossMkPrice,String isMultipleFitsUnique, String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb49a914adcf1de525e66");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value","定损" + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+ if ( audit!= null){
+ JSONObject audit1 = new JSONObject();
+ audit1.put("value", audit);
+ data.put("audit", audit1);
+ }
+
+ if ( recycle!= null){
+ JSONObject recycle1 = new JSONObject();
+ recycle1.put("value", recycle);
+ data.put("recycle", recycle1);
+ }
+
+
+ JSONObject fitsFeeRateType1 = new JSONObject();
+ fitsFeeRateType1.put("value", fitsFeeRateType);
+ data.put("fitsfeeratetype", fitsFeeRateType1);
+ if (fitsFeeRateTypeEx != null){
+ JSONObject fitsFeeRateTypeEx1 = new JSONObject();
+ fitsFeeRateTypeEx1.put("value", fitsFeeRateTypeEx);
+ data.put("fitsfeeratetypeex", fitsFeeRateTypeEx1);
+ }
+
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put(createDate, createDate1);
+ if (adjustFitsFee != null){
+ JSONObject adjustFitsFee1 = new JSONObject();
+ adjustFitsFee1.put("value", adjustFitsFee);
+ data.put("adjustfitsfee", adjustFitsFee1);
+ }
+
+
+ JSONObject fitsSurveyPrice1 = new JSONObject();
+ fitsSurveyPrice1.put("value", fitsSurveyPrice);
+ data.put("fitssurveyprice", fitsSurveyPrice1);
+
+ JSONObject fitsCount1 = new JSONObject();
+ fitsCount1.put("value", fitsCount);
+ data.put("fitscount", fitsCount1);
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+ if ( auditDamagePrice!= null){
+ JSONObject auditDamagePrice1 = new JSONObject();
+ auditDamagePrice1.put("value", auditDamagePrice);
+ data.put("auditdamageprice", auditDamagePrice1);
+ }
+
+ if ( reduceRemnant!= null){
+ JSONObject reduceRemnant1 = new JSONObject();
+ reduceRemnant1.put("value", reduceRemnant);
+ data.put("reduceremnant", reduceRemnant1);
+ }
+
+ if (verifyReduce != null){
+ JSONObject verifyReduce1 = new JSONObject();
+ verifyReduce1.put("value", verifyReduce);
+ data.put("verifyreduce", verifyReduce1);
+ }
+
+
+ JSONObject fitsName1 = new JSONObject();
+ fitsName1.put("value", fitsName);
+ data.put("fitsname", fitsName1);
+ if (fitsCode != null){
+ JSONObject fitsCode1 = new JSONObject();
+ fitsCode1.put("value", fitsCode);
+ data.put("fitscode", fitsCode1);
+ }
+
+ if (originalFitsName != null){
+ JSONObject originalFitsName1 = new JSONObject();
+ originalFitsName1.put("value", originalFitsName);
+ data.put("originalfitsname", originalFitsName1);
+ }
+
+
+
+ if (originalFitsCode != null){
+ JSONObject originalFitsCode1 = new JSONObject();
+ originalFitsCode1.put("value", originalFitsCode);
+ data.put("originalfitscode", originalFitsCode1);
+ }
+
+
+ JSONObject originalFitsDiscountPrice1 = new JSONObject();
+ originalFitsDiscountPrice1.put("value", originalFitsDiscountPrice);
+ data.put("originalfitsdiscountprice", originalFitsDiscountPrice1);
+
+ if (fitsFeeRate != null){
+ JSONObject fitsFeeRate1 = new JSONObject();
+ fitsFeeRate1.put("value", fitsFeeRate);
+ data.put("fitsfeerate", fitsFeeRate1);
+ }
+
+
+
+ if ( fitLabelCode!= null){
+ JSONObject fitLabelCode1 = new JSONObject();
+ fitLabelCode1.put("value", fitLabelCode);
+ data.put("fitlabelcode", fitLabelCode1);
+ }
+
+
+ if (lossRemark != null){
+ JSONObject lossRemark1 = new JSONObject();
+ lossRemark1.put("value", lossRemark);
+ data.put("lossremark", lossRemark1);
+ }
+
+
+ JSONObject serialNo1 = new JSONObject();
+ serialNo1.put("value", serialNo);
+ data.put("serialno", serialNo1);
+ if (isFitsUnique != null){
+ JSONObject isFitsUnique1 = new JSONObject();
+ isFitsUnique1.put("value", isFitsUnique);
+ data.put("isfitsunique", isFitsUnique1);
+ }
+
+ if (upperLimitPrice != null){
+ JSONObject upperLimitPrice1 = new JSONObject();
+ upperLimitPrice1.put("value", upperLimitPrice);
+ data.put("upperlimitprice", upperLimitPrice1);
+ }
+
+ if ( fitsFee!= null){
+ JSONObject fitsFee1 = new JSONObject();
+ fitsFee1.put("value", fitsFee);
+ data.put("fitsfee", fitsFee1);
+ }
+
+ if ( fitsDiscount!= null){
+ JSONObject fitsDiscount1 = new JSONObject();
+ fitsDiscount1.put("value", fitsDiscount);
+ data.put("fitsdiscount", fitsDiscount1);
+ }
+
+ if (fitsReamrk != null){
+ JSONObject fitsReamrk1 = new JSONObject();
+ fitsReamrk1.put("value", fitsReamrk);
+ data.put("fitsreamrk", fitsReamrk1);
+ }
+
+ if ( fitsMaterial!= null){
+ JSONObject fitsMaterial1 = new JSONObject();
+ fitsMaterial1.put("value", fitsMaterial);
+ data.put("fitsmaterial", fitsMaterial1);
+ }
+
+ if ( isAiLossFits!= null){
+ JSONObject isAiLossFits1 = new JSONObject();
+ isAiLossFits1.put("value", isAiLossFits);
+ data.put("isailossfits", isAiLossFits1);
+ }
+
+ if ( isHisFits!= null){
+ JSONObject isHisFits1 = new JSONObject();
+ isHisFits1.put("value", isHisFits);
+ data.put("ishisfits", isHisFits1);
+ }
+
+ if (isLock != null){
+ JSONObject isLock1 = new JSONObject();
+ isLock1.put("value", isLock);
+ data.put("islock", isLock1);
+ }
+
+ if (extendPrice != null){
+ JSONObject extendPrice1 = new JSONObject();
+ extendPrice1.put("value", extendPrice);
+ data.put("extendprice", extendPrice1);
+ }
+
+ if (carLimitCount != null){
+ JSONObject carLimitCount1 = new JSONObject();
+ carLimitCount1.put("value", carLimitCount);
+ data.put("carlimitcount", carLimitCount1);
+ }
+
+ if ( dataSource!= null){
+ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1);
+ }
+
+ if ( insuranceCodes!= null){
+ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1);
+ }
+
+
+ JSONObject isEnquiry1 = new JSONObject();
+ isEnquiry1.put("value", isEnquiry);
+ data.put("isenquiry", isEnquiry1);
+
+ JSONObject isQuotation1 = new JSONObject();
+ isQuotation1.put("value", isQuotation);
+ data.put("isquotation", isQuotation1);
+ if (historyLoss4SPrice != null){
+ JSONObject historyLoss4SPrice1 = new JSONObject();
+ historyLoss4SPrice1.put("value", historyLoss4SPrice);
+ data.put("historyloss4sprice", historyLoss4SPrice1);
+ }
+
+ if ( historyLossMkPrice!= null){
+ JSONObject historyLossMkPrice1 = new JSONObject();
+ historyLossMkPrice1.put("value", historyLossMkPrice);
+ data.put("historylossmkprice", historyLossMkPrice1);
+ }
+
+ if (isMultipleFitsUnique != null){
+ JSONObject isMultipleFitsUnique1 = new JSONObject();
+ isMultipleFitsUnique1.put("value", isMultipleFitsUnique);
+ data.put("ismultiplefitsunique", isMultipleFitsUnique1);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/PeiJianDingSunTwoFour.java b/src/main/java/com/example/sso/dao/PeiJianDingSunTwoFour.java
new file mode 100644
index 0000000..b1e2812
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/PeiJianDingSunTwoFour.java
@@ -0,0 +1,224 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class PeiJianDingSunTwoFour {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId, Integer audit, Integer recycle, Integer fitsFeeRateType,
+ Integer fitsFeeRateTypeEx, String createDate, Double adjustFitsFee, Double fitsSurveyPrice, Integer fitsCount,
+ String idDcInsLossDetail, Double auditDamagePrice, Double reduceRemnant, Double verifyReduce, String fitsName,
+ String fitsCode, String originalFitsName, String originalFitsCode, Double originalFitsDiscountPrice,
+ Double fitsFeeRate, String fitLabelCode, String lossRemark, Integer serialNo, String isFitsUnique, Double upperLimitPrice,
+ Double fitsFee, Double fitsDiscount, String fitsReamrk, String fitsMaterial, String isAiLossFits, String isHisFits,
+ String isLock, Double extendPrice, Integer carLimitCount, String dataSource, String insuranceCodes, String isMultipleFitsUnique,
+ String data_sources1,Double auditPrice,String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb49a914adcf1de525e66");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject auditprice = new JSONObject();
+ auditprice.put("value", auditPrice);
+ data.put("auditprice", auditprice);
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value",data_sources1 + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+ if ( audit!= null){ JSONObject audit1 = new JSONObject();
+ audit1.put("value", audit);
+ data.put("audit", audit1);}
+
+ if ( recycle!= null){ JSONObject recycle1 = new JSONObject();
+ recycle1.put("value", recycle);
+ data.put("recycle", recycle1);
+ }
+
+ JSONObject fitsFeeRateType1 = new JSONObject();
+ fitsFeeRateType1.put("value", fitsFeeRateType);
+ data.put("fitsfeeratetype", fitsFeeRateType1);
+
+ JSONObject fitsFeeRateTypeEx1 = new JSONObject();
+ fitsFeeRateTypeEx1.put("value", fitsFeeRateTypeEx);
+ data.put("fitsfeeratetypeex", fitsFeeRateTypeEx1);
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+ if ( adjustFitsFee!= null){ JSONObject adjustFitsFee1 = new JSONObject();
+ adjustFitsFee1.put("value", adjustFitsFee);
+ data.put("adjustfitsfee", adjustFitsFee1);}
+
+
+ JSONObject fitsSurveyPrice1 = new JSONObject();
+ fitsSurveyPrice1.put("value", fitsSurveyPrice);
+ data.put("fitssurveyprice", fitsSurveyPrice1);
+
+ JSONObject fitsCount1 = new JSONObject();
+ fitsCount1.put("value", fitsCount);
+ data.put("fitscount", fitsCount1);
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+ if ( auditDamagePrice!= null){
+ JSONObject idDcInsLossDetail111 = new JSONObject();
+ idDcInsLossDetail111.put("value", auditDamagePrice);
+ data.put("auditdamageprice", idDcInsLossDetail111);
+
+ }
+ if ( reduceRemnant!= null){
+ JSONObject reduceRemnant1 = new JSONObject();
+ reduceRemnant1.put("value", reduceRemnant);
+ data.put("reduceremnant", reduceRemnant1);
+ }
+
+ if ( verifyReduce!= null){
+ JSONObject verifyReduce1 = new JSONObject();
+ verifyReduce1.put("value", verifyReduce);
+ data.put("verifyreduce", verifyReduce1);
+ }
+
+
+ JSONObject fitsName1 = new JSONObject();
+ fitsName1.put("value", fitsName);
+ data.put("fitsname", fitsName1);
+ if ( fitsCode!= null){ JSONObject fitsCode1 = new JSONObject();
+ fitsCode1.put("value", fitsCode);
+ data.put("fitscode", fitsCode1);}
+
+ if ( originalFitsName!= null){ JSONObject originalFitsName1 = new JSONObject();
+ originalFitsName1.put("value", originalFitsName);
+ data.put("originalfitsname", originalFitsName1); }
+
+
+
+ if ( originalFitsCode!= null){
+ JSONObject originalFitsCode1 = new JSONObject();
+ originalFitsCode1.put("value", originalFitsCode);
+ data.put("originalfitscode", originalFitsCode1);
+ }
+
+ if ( originalFitsDiscountPrice!= null){ JSONObject originalFitsDiscountPrice1 = new JSONObject();
+ originalFitsDiscountPrice1.put("value", originalFitsDiscountPrice);
+ data.put("originalfitsdiscountprice", originalFitsDiscountPrice1);}
+
+ if ( fitsFeeRate!= null){ JSONObject fitsFeeRate1 = new JSONObject();
+ fitsFeeRate1.put("value", fitsFeeRate);
+ data.put("fitsfeerate", fitsFeeRate1); }
+
+
+
+ if ( fitLabelCode!= null){JSONObject fitLabelCode1 = new JSONObject();
+ fitLabelCode1.put("value", fitLabelCode);
+ data.put("fitlabelcode", fitLabelCode1); }
+
+
+ if ( lossRemark!= null){ JSONObject lossRemark1 = new JSONObject();
+ lossRemark1.put("value", lossRemark);
+ data.put("lossremark", lossRemark1); }
+
+
+ JSONObject serialNo1 = new JSONObject();
+ serialNo1.put("value", serialNo);
+ data.put("serialno", serialNo1);
+ if ( isFitsUnique!= null){ JSONObject isFitsUnique1 = new JSONObject();
+ isFitsUnique1.put("value", isFitsUnique);
+ data.put("isfitsunique", isFitsUnique1); }
+
+ if ( upperLimitPrice!= null){ JSONObject upperLimitPrice1 = new JSONObject();
+ upperLimitPrice1.put("value", upperLimitPrice);
+ data.put("upperlimitprice", upperLimitPrice1); }
+
+ if ( fitsFee!= null){ JSONObject fitsFee1 = new JSONObject();
+ fitsFee1.put("value", fitsFee);
+ data.put("fitsfee", fitsFee1); }
+
+ if ( fitsDiscount!= null){ JSONObject fitsDiscount1 = new JSONObject();
+ fitsDiscount1.put("value", fitsDiscount);
+ data.put("fitsdiscount", fitsDiscount1); }
+
+ if (fitsReamrk != null){ JSONObject fitsReamrk1 = new JSONObject();
+ fitsReamrk1.put("value", fitsReamrk);
+ data.put("fitsreamrk", fitsReamrk1); }
+
+ if ( fitsMaterial!= null){ JSONObject fitsMaterial1 = new JSONObject();
+ fitsMaterial1.put("value", fitsMaterial);
+ data.put("fitsmaterial", fitsMaterial1);}
+
+ if ( isAiLossFits!= null){ JSONObject isAiLossFits1 = new JSONObject();
+ isAiLossFits1.put("value", isAiLossFits);
+ data.put("isailossfits", isAiLossFits1); }
+
+ if ( isHisFits!= null){ JSONObject isHisFits1 = new JSONObject();
+ isHisFits1.put("value", isHisFits);
+ data.put("ishisfits", isHisFits1);}
+
+ if ( isLock!= null){ JSONObject isLock1 = new JSONObject();
+ isLock1.put("value", isLock);
+ data.put("islock", isLock1); }
+
+ if ( extendPrice!= null){ JSONObject extendPrice1 = new JSONObject();
+ extendPrice1.put("value", extendPrice);
+ data.put("extendprice", extendPrice1);}
+
+ if ( carLimitCount!= null){JSONObject carLimitCount1 = new JSONObject();
+ carLimitCount1.put("value", carLimitCount);
+ data.put("carlimitcount", carLimitCount1); }
+
+ if ( dataSource!= null){ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1); }
+
+ if ( insuranceCodes!= null){ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1);}
+
+
+
+ if ( isMultipleFitsUnique!= null){ JSONObject isMultipleFitsUnique1 = new JSONObject();
+ isMultipleFitsUnique1.put("value", isMultipleFitsUnique);
+ data.put("ismultiplefitsunique", isMultipleFitsUnique1); }
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/PeiJianDingSunTwoFour_.java b/src/main/java/com/example/sso/dao/PeiJianDingSunTwoFour_.java
new file mode 100644
index 0000000..84a08f2
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/PeiJianDingSunTwoFour_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class PeiJianDingSunTwoFour_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb49a914adcf1de525e66");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67ecb49a914adcf1de525e66");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/PeiJianDingSun_.java b/src/main/java/com/example/sso/dao/PeiJianDingSun_.java
new file mode 100644
index 0000000..75a39fe
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/PeiJianDingSun_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class PeiJianDingSun_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb49a914adcf1de525e66");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67ecb49a914adcf1de525e66");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/PhotoUpData.java b/src/main/java/com/example/sso/dao/PhotoUpData.java
new file mode 100644
index 0000000..1295d2a
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/PhotoUpData.java
@@ -0,0 +1,32 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+public class PhotoUpData {
+
+ public static void up(String id,String app_id,String entry_id,String url) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id",app_id);
+ jsonObject.put("entry_id",entry_id);
+ jsonObject.put("data_id",id);
+ jsonObject.put("is_start_trigger",true);
+
+
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value",url);
+ data.put("img_system_url",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/Result.java b/src/main/java/com/example/sso/dao/Result.java
new file mode 100644
index 0000000..9fdb664
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/Result.java
@@ -0,0 +1,292 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class Result {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId, Double rescueFee, Double surplusValue,String vin,
+ Double actualValue,Double verifyReduce,String auditType,String fitsPriceType,String fitLabelType,
+ String operatorUm,String operatorRole,String provinceCode,String cityCode,String garageCode,String garageName,
+ String garageType,String brandName,String manufacturerName,String modelCode,String modelName,String lossPosition,
+ String groupName,String modelCategoryCode,String seriesName,String address,Double lossAmount,String opinionDescribe,
+ String brandList,String telephone,String idDcInsuranceGarageRule,String carDealerCode,String modeRemark,String modelCategoryName,
+ String isClaim,String vinParseType,String organizeCode,String lossPosition2,String buriedType,String pushLossInfoId,String pushLossDate,
+ String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb38234853d8f6e69c0bf");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+
+
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ String lowerCase1 = reportNo;
+ data.put("reportno", reportNo1);
+
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ String lowerCase2 = lossSeqNo;
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ String lowerCase3 = taskId;
+ data.put("taskid", taskId1);
+ if (rescueFee != null){
+ JSONObject rescueFee1 = new JSONObject();
+ rescueFee1.put("value", rescueFee);
+ data.put("rescuefee", rescueFee1);
+ }
+
+ if (surplusValue != null){
+ JSONObject surplusValue1 = new JSONObject();
+ surplusValue1.put("value", surplusValue);
+ data.put("surplusvalue", surplusValue1);
+ }
+
+
+ JSONObject vin1 = new JSONObject();
+ vin1.put("value", vin);
+ String lowerCase4 = vin;
+ data.put("vin", vin1);
+ if (actualValue != null){
+ JSONObject actualValue1 = new JSONObject();
+ actualValue1.put("value", actualValue);
+ data.put("actualvalue", actualValue1);
+ }
+
+ if (verifyReduce != null){
+ JSONObject verifyReduce1 = new JSONObject();
+ verifyReduce1.put("value", verifyReduce);
+ data.put("verifyreduce", verifyReduce1);
+ }
+
+
+ JSONObject auditType1 = new JSONObject();
+ auditType1.put("value", auditType);
+ String lowerCase5 = auditType;
+ data.put("audittype", auditType1);
+
+ JSONObject fitsPriceType1 = new JSONObject();
+ fitsPriceType1.put("value", fitsPriceType);
+ String lowerCase6 = fitsPriceType;
+ data.put("fitspricetype", fitsPriceType1);
+
+ JSONObject fitLabelType1 = new JSONObject();
+ fitLabelType1.put("value", fitLabelType);
+ data.put("fitLabeltype", fitLabelType1);
+
+ JSONObject operatorUm1 = new JSONObject();
+ operatorUm1.put("value", operatorUm);
+ String lowerCase7 = operatorUm;
+ data.put("operatorum", operatorUm1);
+
+ JSONObject operatorRole1 = new JSONObject();
+ operatorRole1.put("value", operatorRole);
+ String lowerCase8 = operatorRole;
+ data.put("operatorrole", operatorRole1);
+
+ JSONObject provinceCode1 = new JSONObject();
+ provinceCode1.put("value", provinceCode);
+ String lowerCase9 = provinceCode;
+ data.put("provincecode", provinceCode1);
+
+ JSONObject cityCode1 = new JSONObject();
+ cityCode1.put("value", cityCode);
+ String lowerCase10 = cityCode;
+ data.put("citycode", cityCode1);
+
+ JSONObject garageCode1 = new JSONObject();
+ garageCode1.put("value", garageCode);
+ String lowerCase11 = garageCode;
+ data.put("garagecode", garageCode1);
+
+ JSONObject garageName1 = new JSONObject();
+ garageName1.put("value", garageName);
+ String lowerCase12 = garageName;
+ data.put("garagename", garageName1);
+
+ JSONObject garageType1 = new JSONObject();
+ garageType1.put("value", garageType);
+ String lowerCase13 = garageType;
+ data.put("garagetype", garageType1);
+ if ( brandName!= null){
+ JSONObject brandName1 = new JSONObject();
+ brandName1.put("value", brandName);
+ String lowerCase = brandName;
+ data.put("brandname", brandName1);
+ }
+
+ if ( manufacturerName!= null){
+ JSONObject manufacturerName1 = new JSONObject();
+ manufacturerName1.put("value", manufacturerName);
+ String lowerCase = manufacturerName;
+ data.put("manufacturername", manufacturerName1);
+ }
+
+ if ( modelCode!= null){
+ JSONObject modelCode1 = new JSONObject();
+ modelCode1.put("value", modelCode);
+ String lowerCase = modelCode;
+ data.put("modelcode", modelCode1);
+ }
+
+
+ JSONObject modelName1 = new JSONObject();
+ modelName1.put("value", modelName);
+ String lowerCase14 = modelName;
+ data.put("modelname", modelName1);
+
+ JSONObject lossPosition1 = new JSONObject();
+ lossPosition1.put("value", lossPosition);
+ data.put("lossPosition", lossPosition1);
+ if ( groupName!= null){
+ JSONObject groupName1 = new JSONObject();
+ groupName1.put("value", groupName);
+ String lowerCase = groupName;
+ data.put("groupname", groupName1);
+ }
+
+
+ JSONObject modelCategoryCode1 = new JSONObject();
+ modelCategoryCode1.put("value", modelCategoryCode);
+ String lowerCase15 = modelCategoryCode;
+ data.put("modelcategorycode", modelCategoryCode1);
+ if (seriesName != null){
+ JSONObject seriesName1 = new JSONObject();
+ seriesName1.put("value", seriesName);
+ String lowerCase = seriesName;
+ data.put("seriesname", seriesName1);
+ }
+
+ if (address != null){
+ JSONObject address1 = new JSONObject();
+ address1.put("value", address);
+ String lowerCase = address;
+ data.put("address", address1);
+ }
+
+
+ JSONObject lossAmount1 = new JSONObject();
+ lossAmount1.put("value", lossAmount);
+ data.put("lossamount", lossAmount1);
+ if (opinionDescribe != null){
+ JSONObject opinionDescribe1 = new JSONObject();
+ opinionDescribe1.put("value", opinionDescribe);
+ String lowerCase = opinionDescribe;
+ data.put("opiniondescribe", opinionDescribe1);
+ }
+
+ if (brandList != null){
+ JSONObject brandList1 = new JSONObject();
+ brandList1.put("value", brandList);
+ String lowerCase = brandList;
+ data.put("brandlist", brandList1);
+ }
+
+ if ( telephone!= null){
+ JSONObject telephone1 = new JSONObject();
+ telephone1.put("value", telephone);
+ String lowerCase = telephone;
+ data.put("telephone", telephone1);
+ }
+
+
+ JSONObject idDcInsuranceGarageRule1 = new JSONObject();
+ idDcInsuranceGarageRule1.put("value", idDcInsuranceGarageRule);
+ String lowerCase16 = idDcInsuranceGarageRule;
+ data.put("iddcinsurancegaragerule", idDcInsuranceGarageRule1);
+
+ JSONObject carDealerCode1 = new JSONObject();
+ carDealerCode1.put("value", carDealerCode);
+ String lowerCase17 = carDealerCode;
+ data.put("cardealercode", carDealerCode1);
+ if ( modeRemark!= null){
+ JSONObject modeRemark1 = new JSONObject();
+ modeRemark1.put("value", modeRemark);
+ String lowerCase = modeRemark;
+ data.put("moderemark", modeRemark1);
+ }
+
+ if ( modelCategoryName!= null){
+ JSONObject modelCategoryName1 = new JSONObject();
+ modelCategoryName1.put("value", modelCategoryName);
+ String lowerCase = modelCategoryName;
+ data.put("modelcategoryname", modelCategoryName1);
+ }
+
+ if (isClaim != null){JSONObject isClaim1 = new JSONObject();
+ isClaim1.put("value", isClaim);
+ String lowerCase = isClaim;
+ data.put("isclaim", isClaim1);}
+
+ if (vinParseType != null){
+ JSONObject vinParseType1 = new JSONObject();
+ vinParseType1.put("value", vinParseType);
+ String lowerCase = vinParseType;
+ data.put("vinparsetype", vinParseType1);
+ }
+
+ if (organizeCode != null){
+ JSONObject organizeCode1 = new JSONObject();
+ organizeCode1.put("value", organizeCode);
+ String lowerCase = organizeCode;
+ data.put("lowercase", organizeCode1);
+ }
+
+ if (lossPosition2 != null){
+ JSONObject lossPosition21 = new JSONObject();
+ lossPosition21.put("value", lossPosition2);
+ String lowerCase = lossPosition2;
+ data.put("lossposition2", lossPosition21);
+
+ }
+
+ JSONObject buriedType1 = new JSONObject();
+ buriedType1.put("value", buriedType);
+
+ String lowerCase18 = buriedType;
+ String lowerCase = lowerCase18;
+ data.put("buriedtype", buriedType1);
+
+ JSONObject pushLossInfoId1 = new JSONObject();
+ pushLossInfoId1.put("value", pushLossInfoId);
+ String lowerCase19 = pushLossInfoId;
+ data.put("pushlossinfoid", pushLossInfoId1);
+
+ JSONObject pushLossDate1 = new JSONObject();
+ pushLossDate1.put("value", pushLossDate);
+ String lowerCase20 = pushLossDate;
+ data.put("pushlossdate", pushLossDate1);
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+
+}
+
diff --git a/src/main/java/com/example/sso/dao/Result_.java b/src/main/java/com/example/sso/dao/Result_.java
new file mode 100644
index 0000000..d0dcb8d
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/Result_.java
@@ -0,0 +1,82 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class Result_ {
+
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67ecb38234853d8f6e69c0bf");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67ecb38234853d8f6e69c0bf");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","失效");
+ data.put("effectiveness",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+
+
+
+
+
+}
diff --git a/src/main/java/com/example/sso/dao/ShiJiuFei.java b/src/main/java/com/example/sso/dao/ShiJiuFei.java
new file mode 100644
index 0000000..4840569
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/ShiJiuFei.java
@@ -0,0 +1,123 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class ShiJiuFei {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId,Double trailerStartingFare,
+ Double trailerMileagePrice,Double trailerOverMileage,Double craneStartingFare,
+ Double cranePrice, Double craneWorkTime,Double otherFee,String remark,
+ String insuranceCodes, String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f501362e399b68fe0f0e33");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value","定损" + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject serialno = new JSONObject();
+ serialno.put("value", 1);
+ data.put("serialno", serialno );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+ if ( trailerStartingFare!= null){
+ JSONObject trailerStartingFare1 = new JSONObject();
+ trailerStartingFare1.put("value", trailerStartingFare);
+ data.put("trailerstartingfare", trailerStartingFare1);
+ }
+
+ if (trailerMileagePrice != null){
+ JSONObject trailerMileagePrice1 = new JSONObject();
+ trailerMileagePrice1.put("value", trailerMileagePrice);
+ data.put("trailermileageprice", trailerMileagePrice1);
+ }
+
+ if ( trailerOverMileage!= null){
+ JSONObject trailerOverMileage1 = new JSONObject();
+ trailerOverMileage1.put("value", trailerOverMileage);
+ data.put("trailerovermileage", trailerOverMileage1);
+
+ }
+ if ( craneStartingFare!= null){
+ JSONObject craneStartingFare1 = new JSONObject();
+ craneStartingFare1.put("value", craneStartingFare);
+ data.put("cranestartingfare", craneStartingFare1);
+ }
+
+ if ( cranePrice!= null){
+ JSONObject cranePrice1 = new JSONObject();
+ cranePrice1.put("value", cranePrice);
+ data.put("craneprice", cranePrice1);
+ }
+
+ if ( craneWorkTime!= null){
+ JSONObject craneWorkTime1 = new JSONObject();
+ craneWorkTime1.put("value", craneWorkTime);
+ data.put("craneworktime", craneWorkTime1);
+ }
+
+ if (otherFee != null){
+ JSONObject otherFee1 = new JSONObject();
+ otherFee1.put("value", otherFee);
+ data.put("otherfee", otherFee1);
+ }
+
+ if ( remark!= null){
+ JSONObject remark1 = new JSONObject();
+ remark1.put("value", remark);
+ data.put("remark", remark1);
+ }
+
+ if (insuranceCodes != null){
+ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/ShiJiuFeiTwoFour.java b/src/main/java/com/example/sso/dao/ShiJiuFeiTwoFour.java
new file mode 100644
index 0000000..57d5363
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/ShiJiuFeiTwoFour.java
@@ -0,0 +1,104 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class ShiJiuFeiTwoFour {
+ public static void add(String reportNo, String lossSeqNo, String taskId, Double trailerStartingFare,
+ Double trailerMileagePrice, Double trailerOverMileage, Double craneStartingFare,
+ Double cranePrice, Double craneWorkTime, Double otherFee, String remark,
+ String insuranceCodes,String data_sources1,String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f501362e399b68fe0f0e33");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value",data_sources1 + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject serialno = new JSONObject();
+ serialno.put("value", 1);
+ data.put("serialno", serialno );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+ if ( trailerStartingFare!= null){JSONObject trailerStartingFare1 = new JSONObject();
+ trailerStartingFare1.put("value", trailerStartingFare);
+ data.put("trailerstartingfare", trailerStartingFare1); }
+
+ if ( trailerMileagePrice!= null){ JSONObject trailerMileagePrice1 = new JSONObject();
+ trailerMileagePrice1.put("value", trailerMileagePrice);
+ data.put("trailermileageprice", trailerMileagePrice1);
+ }
+ if ( trailerOverMileage!= null){ JSONObject trailerOverMileage1 = new JSONObject();
+ trailerOverMileage1.put("value", trailerOverMileage);
+ data.put("trailerovermileage", trailerOverMileage1); }
+
+ if (craneStartingFare != null){ JSONObject craneStartingFare1 = new JSONObject();
+ craneStartingFare1.put("value", craneStartingFare);
+ data.put("cranestartingfare", craneStartingFare1); }
+
+ if (cranePrice != null){JSONObject cranePrice1 = new JSONObject();
+ cranePrice1.put("value", cranePrice);
+ data.put("craneprice", cranePrice1); }
+
+ if ( craneWorkTime!= null){ JSONObject craneWorkTime1 = new JSONObject();
+ craneWorkTime1.put("value", craneWorkTime);
+ data.put("craneworktime", craneWorkTime1); }
+
+ if ( otherFee!= null){ JSONObject otherFee1 = new JSONObject();
+ otherFee1.put("value", otherFee);
+ data.put("otherfee", otherFee1);}
+
+ if ( remark!= null){ JSONObject remark1 = new JSONObject();
+ remark1.put("value", remark);
+ data.put("remark", remark1);}
+
+ if ( insuranceCodes!= null){ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1); }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/ShiJiuFeiTwoFour_.java b/src/main/java/com/example/sso/dao/ShiJiuFeiTwoFour_.java
new file mode 100644
index 0000000..256fc93
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/ShiJiuFeiTwoFour_.java
@@ -0,0 +1,75 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class ShiJiuFeiTwoFour_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f501362e399b68fe0f0e33");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f501362e399b68fe0f0e33");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/ShiJiuFei_.java b/src/main/java/com/example/sso/dao/ShiJiuFei_.java
new file mode 100644
index 0000000..174a504
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/ShiJiuFei_.java
@@ -0,0 +1,77 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class ShiJiuFei_ {
+
+ public static void list(String data_sources1,String lossseqno1) {
+
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f501362e399b68fe0f0e33");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f501362e399b68fe0f0e33");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
+
diff --git a/src/main/java/com/example/sso/dao/UpdataBaoXian.java b/src/main/java/com/example/sso/dao/UpdataBaoXian.java
new file mode 100644
index 0000000..e610577
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/UpdataBaoXian.java
@@ -0,0 +1,40 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.TimeUtil;
+import com.example.sso.util.V5utils;
+
+public class UpdataBaoXian {
+ public static String updatas(String id,String r1, String t1, String u1) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","628eeaace7f28c00089a60cc");
+ jsonObject.put("entry_id","6707ab707080a6db0c2faeba");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+ String nowtime = TimeUtil.nowtime();
+
+ JSONObject s = new JSONObject();
+ s.put("value",nowtime);
+ data.put("s",s);
+
+ JSONObject u = new JSONObject();
+ u.put("value",u1);
+ data.put("u",u);
+
+ JSONObject t = new JSONObject();
+ t.put("value",t1);
+ data.put("t",t);
+
+ JSONObject r = new JSONObject();
+ r.put("value",r1);
+ data.put("r",r);
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ return updata;
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXi.java b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXi.java
new file mode 100644
index 0000000..89c673a
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXi.java
@@ -0,0 +1,122 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class WaiXiuDingDanXinXi {
+ public static void add(String reportNo, String lossSeqNo, String taskId, String idClmOuterRepairDetail,String fitsName,
+ String fitsCode,String lossCompanyAmount,String lossAmountInsurance,String remark,
+ String status,String idRepairOutsideInfo,String garageName,String lossAmountReference,
+ Integer wxdd, String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5019647f52adcb2040ba4");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value","定损" + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject serialno = new JSONObject();
+ serialno.put("value", wxdd);
+ data.put("serialno", serialno );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject idClmOuterRepairDetail1 = new JSONObject();
+ idClmOuterRepairDetail1.put("value", idClmOuterRepairDetail);
+ data.put("idclmouterrepairdetail", idClmOuterRepairDetail1);
+
+ JSONObject fitsName1 = new JSONObject();
+ fitsName1.put("value", fitsName);
+ data.put("fitsname", fitsName1);
+ if (fitsCode != null){
+ JSONObject fitsCode1 = new JSONObject();
+ fitsCode1.put("value", fitsCode);
+ data.put("fitscode", fitsCode1);
+ }
+
+ if (lossCompanyAmount != null){
+ JSONObject lossCompanyAmount1 = new JSONObject();
+ lossCompanyAmount1.put("value", lossCompanyAmount);
+ data.put("losscompanyamount", lossCompanyAmount1);
+ }
+
+ if ( lossAmountInsurance!= null){
+ JSONObject lossAmountInsurance1 = new JSONObject();
+ lossAmountInsurance1.put("value", lossAmountInsurance);
+ data.put("lossamountinsurance", lossAmountInsurance1);
+ }
+
+ if ( remark!= null){
+ JSONObject remark1 = new JSONObject();
+ remark1.put("value", remark);
+ data.put("remark", remark1);
+ }
+
+
+ JSONObject status1 = new JSONObject();
+ status1.put("value", status);
+ data.put("status", status1);
+
+ JSONObject idRepairOutsideInfo1 = new JSONObject();
+ idRepairOutsideInfo1.put("value", idRepairOutsideInfo);
+ data.put("idrepairoutsideinfo", idRepairOutsideInfo1);
+
+ JSONObject garageName1 = new JSONObject();
+ garageName1.put("value", garageName);
+ data.put("garagename", garageName1);
+ if ( lossAmountReference!= null){
+ JSONObject lossAmountReference1 = new JSONObject();
+ lossAmountReference1.put("value", lossAmountReference);
+ data.put("lossamountreference", lossAmountReference1);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXiTwoFour.java b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXiTwoFour.java
new file mode 100644
index 0000000..95ddd57
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXiTwoFour.java
@@ -0,0 +1,108 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+public class WaiXiuDingDanXinXiTwoFour {
+ public static void add(String reportNo, String lossSeqNo, String taskId, String idClmOuterRepairDetail,String fitsName,
+ String fitsCode,String lossCompanyAmount,String lossAmountInsurance,String remark,
+ String status,String idRepairOutsideInfo,String garageName,String lossAmountReference,
+ String data_sources1,Integer WX,String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5019647f52adcb2040ba4");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value",data_sources1 + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject serialno = new JSONObject();
+ serialno.put("value", WX);
+ data.put("serialno", serialno );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject idClmOuterRepairDetail1 = new JSONObject();
+ idClmOuterRepairDetail1.put("value", idClmOuterRepairDetail);
+ data.put("idclmouterrepairdetail", idClmOuterRepairDetail1);
+
+ JSONObject fitsName1 = new JSONObject();
+ fitsName1.put("value", fitsName);
+ data.put("fitsname", fitsName1);
+ if ( fitsCode!= null){ JSONObject fitsCode1 = new JSONObject();
+ fitsCode1.put("value", fitsCode);
+ data.put("fitscode", fitsCode1); }
+
+ if ( lossCompanyAmount!= null){ JSONObject lossCompanyAmount1 = new JSONObject();
+ lossCompanyAmount1.put("value", lossCompanyAmount);
+ data.put("losscompanyamount", lossCompanyAmount1); }
+
+ if ( lossAmountInsurance!= null){ JSONObject lossAmountInsurance1 = new JSONObject();
+ lossAmountInsurance1.put("value", lossAmountInsurance);
+ data.put("lossamountinsurance", lossAmountInsurance1); }
+
+ if ( remark!= null){JSONObject remark1 = new JSONObject();
+ remark1.put("value", remark);
+ data.put("remark", remark1); }
+
+
+ JSONObject status1 = new JSONObject();
+ status1.put("value", status);
+ data.put("status", status1);
+
+ JSONObject idRepairOutsideInfo1 = new JSONObject();
+ idRepairOutsideInfo1.put("value", idRepairOutsideInfo);
+ data.put("idrepairoutsideinfo", idRepairOutsideInfo1);
+
+ JSONObject garageName1 = new JSONObject();
+ garageName1.put("value", garageName);
+ data.put("garagename", garageName1);
+ if ( lossAmountReference!= null){ JSONObject lossAmountReference1 = new JSONObject();
+ lossAmountReference1.put("value", lossAmountReference);
+ data.put("lossamountreference", lossAmountReference1); }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXiTwoFour_.java b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXiTwoFour_.java
new file mode 100644
index 0000000..3262a29
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXiTwoFour_.java
@@ -0,0 +1,75 @@
+package com.example.sso.dao;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class WaiXiuDingDanXinXiTwoFour_ {
+
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5019647f52adcb2040ba4");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f5019647f52adcb2040ba4");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXi_.java b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXi_.java
new file mode 100644
index 0000000..8d2bf2d
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuDingDanXinXi_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class WaiXiuDingDanXinXi_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f5019647f52adcb2040ba4");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f5019647f52adcb2040ba4");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSun.java b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSun.java
new file mode 100644
index 0000000..7a1dfe1
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSun.java
@@ -0,0 +1,203 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class WaiXiuXiangMuDingSun {
+ public static void add(String reportNo, String lossSeqNo, String taskId, String outerGarage, String createDate, Double fitsSurveyPrice,
+ String idDcInsLossDetail, Double auditDamagePrice, Integer serialNo, String fitsName, String fitsCode, String fitsReamrk,
+ String fitsMaterial, String fitLabelCode, String lossRemark, Integer fitsFeeRateType, Double originalFitsDiscountPrice,
+ String originalFitsName, String originalFitsCode, String isHisOuterFits, String isFitsUnique, Double fitsDiscount,
+ Double fitsFee, Double fitsFeeRate, String isLock, Double extendPrice, Integer carLimitCount, String dataSource,
+ String insuranceCodes, Double lossCompanyAmount, String time
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500732e399b68fe0f0db4");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value","定损" + lossSeqNo );
+ data.put("match_field", match_field );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject outerGarage1 = new JSONObject();
+ outerGarage1.put("value", outerGarage);
+ data.put("outergarage", outerGarage1);
+
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject fitsSurveyPrice1 = new JSONObject();
+ fitsSurveyPrice1.put("value", fitsSurveyPrice);
+ data.put("fitssurveyprice", fitsSurveyPrice1);
+
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+ if (auditDamagePrice != null){
+ JSONObject auditDamagePrice1 = new JSONObject();
+ auditDamagePrice1.put("value", auditDamagePrice);
+ data.put("auditdamageprice", auditDamagePrice1);
+ }
+
+
+ JSONObject serialNo1 = new JSONObject();
+ serialNo1.put("value", serialNo);
+ data.put("serialno", serialNo1);
+
+ JSONObject fitsName1 = new JSONObject();
+ fitsName1.put("value", fitsName);
+ data.put("fitsname", fitsName1);
+ if ( fitsCode!= null){
+ JSONObject fitsCode1 = new JSONObject();
+ fitsCode1.put("value", fitsCode);
+ data.put("fitscode", fitsCode1);
+ }
+
+ if (fitsReamrk != null){
+ JSONObject fitsReamrk1 = new JSONObject();
+ fitsReamrk1.put("value", fitsReamrk);
+ data.put("fitsreamrk", fitsReamrk1);
+
+ }
+ if ( fitsMaterial!= null){
+ JSONObject fitsMaterial1 = new JSONObject();
+ fitsMaterial1.put("value", fitsMaterial);
+ data.put("fitsmaterial", fitsMaterial1);
+ }
+
+ if ( fitLabelCode!= null){
+ JSONObject fitLabelCode1 = new JSONObject();
+ fitLabelCode1.put("value", fitLabelCode);
+ data.put("fitlabelcode", fitLabelCode1);
+ }
+
+ if (lossRemark != null){
+ JSONObject lossRemark1 = new JSONObject();
+ lossRemark1.put("value", lossRemark);
+ data.put("lossremark", lossRemark1);
+ }
+
+
+
+ JSONObject fitsFeeRateType1 = new JSONObject();
+ fitsFeeRateType1.put("value", fitsFeeRateType);
+ data.put("fitsferatetype", fitsFeeRateType1);
+ if (originalFitsDiscountPrice != null){
+ JSONObject originalFitsDiscountPrice1 = new JSONObject();
+ originalFitsDiscountPrice1.put("value", originalFitsDiscountPrice);
+ data.put("originalfitsdiscountprice", originalFitsDiscountPrice1);
+ }
+
+ if ( originalFitsName!= null){
+ JSONObject originalFitsName1 = new JSONObject();
+ originalFitsName1.put("value", originalFitsName);
+ data.put("originalfitsname", originalFitsName1);
+ }
+
+ if ( originalFitsCode!= null){
+ JSONObject originalFitsCode1 = new JSONObject();
+ originalFitsCode1.put("value", originalFitsCode);
+ data.put("originalfitscode", originalFitsCode1);
+ }
+
+ if ( isHisOuterFits!= null){
+ JSONObject isHisOuterFits1 = new JSONObject();
+ isHisOuterFits1.put("value", isHisOuterFits);
+ data.put("ishisouterfits", isHisOuterFits1);
+ }
+
+ if ( isFitsUnique!= null){
+ JSONObject isFitsUnique1 = new JSONObject();
+ isFitsUnique1.put("value", isFitsUnique);
+ data.put("isfitsunique", isFitsUnique1);
+ }
+
+ if (fitsDiscount != null){
+ JSONObject fitsDiscount1 = new JSONObject();
+ fitsDiscount1.put("value", fitsDiscount);
+ data.put("fitsdiscount", fitsDiscount1);
+ }
+
+ if ( fitsFee!= null){
+ JSONObject fitsFee1 = new JSONObject();
+ fitsFee1.put("value", fitsFee);
+ data.put("fitsdiscount", fitsFee1);
+ }
+ if ( fitsFeeRate!= null){
+ JSONObject fitsFeeRate1 = new JSONObject();
+ fitsFeeRate1.put("value", fitsFeeRate);
+ data.put("fitsfeerate", fitsFeeRate1);
+ }
+
+
+ if (extendPrice != null){
+ JSONObject extendPrice1 = new JSONObject();
+ extendPrice1.put("value", extendPrice);
+ data.put("extendprice", extendPrice1);
+ }
+
+ if ( isLock!= null){
+ JSONObject isLock1 = new JSONObject();
+ isLock1.put("value", isLock);
+ data.put("islock", isLock1);
+ }
+
+ if ( carLimitCount!= null){
+ JSONObject carLimitCount1 = new JSONObject();
+ carLimitCount1.put("value", carLimitCount);
+ data.put("carlimitcount", carLimitCount1);
+ }
+
+ if ( dataSource!= null){
+ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1);
+ }
+
+ if (insuranceCodes != null){
+ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1);
+ }
+
+ if ( lossCompanyAmount!= null){
+ JSONObject lossCompanyAmount1 = new JSONObject();
+ lossCompanyAmount1.put("value", lossCompanyAmount);
+ data.put("losscompanyamount", lossCompanyAmount1);
+ }
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSunTwoFour.java b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSunTwoFour.java
new file mode 100644
index 0000000..0fbaa20
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSunTwoFour.java
@@ -0,0 +1,204 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+public class WaiXiuXiangMuDingSunTwoFour {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId, String outerGarage, String createDate, Double fitsSurveyPrice,
+ String idDcInsLossDetail, Double auditDamagePrice, Integer serialNo, String fitsName, String fitsCode, String fitsReamrk,
+ String fitsMaterial, String fitLabelCode, String lossRemark, Integer fitsFeeRateType, Double originalFitsDiscountPrice,
+ String originalFitsName, String originalFitsCode, String isHisOuterFits, String isFitsUnique, Double fitsDiscount,
+ Double fitsFee, Double fitsFeeRate, String isLock, Double extendPrice, Integer carLimitCount, String dataSource,
+ String insuranceCodes, Double lossCompanyAmount,String data_sources1,String time
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500732e399b68fe0f0db4");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject match_field = new JSONObject();
+ match_field.put("value", data_sources1 + lossSeqNo);
+ data.put("match_field", match_field );
+
+
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject outerGarage1 = new JSONObject();
+ outerGarage1.put("value", outerGarage);
+ data.put("outergarage", outerGarage1);
+
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject fitsSurveyPrice1 = new JSONObject();
+ fitsSurveyPrice1.put("value", fitsSurveyPrice);
+ data.put("fitssurveyprice", fitsSurveyPrice1);
+
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+ if (auditDamagePrice != null){
+ JSONObject auditDamagePrice1 = new JSONObject();
+ auditDamagePrice1.put("value", auditDamagePrice);
+ data.put("auditdamageprice", auditDamagePrice1);
+ }
+
+
+ JSONObject serialNo1 = new JSONObject();
+ serialNo1.put("value", serialNo);
+ data.put("serialno", serialNo1);
+
+ JSONObject fitsName1 = new JSONObject();
+ fitsName1.put("value", fitsName);
+ data.put("fitsname", fitsName1);
+ if ( fitsCode!= null){
+ JSONObject fitsCode1 = new JSONObject();
+ fitsCode1.put("value", fitsCode);
+ data.put("fitscode", fitsCode1);
+ }
+
+ if (fitsReamrk != null){
+ JSONObject fitsReamrk1 = new JSONObject();
+ fitsReamrk1.put("value", fitsReamrk);
+ data.put("fitsreamrk", fitsReamrk1);
+
+ }
+ if ( fitsMaterial!= null){
+ JSONObject fitsMaterial1 = new JSONObject();
+ fitsMaterial1.put("value", fitsMaterial);
+ data.put("fitsmaterial", fitsMaterial1);
+ }
+
+ if ( fitLabelCode!= null){
+ JSONObject fitLabelCode1 = new JSONObject();
+ fitLabelCode1.put("value", fitLabelCode);
+ data.put("fitLabelcode", fitLabelCode1);
+ }
+
+ if (lossRemark != null){
+ JSONObject lossRemark1 = new JSONObject();
+ lossRemark1.put("value", lossRemark);
+ data.put("lossremark", lossRemark1);
+ }
+
+
+
+ JSONObject fitsFeeRateType1 = new JSONObject();
+ fitsFeeRateType1.put("value", fitsFeeRateType);
+ data.put("fitsferatetype", fitsFeeRateType1);
+ if (originalFitsDiscountPrice != null){
+ JSONObject originalFitsDiscountPrice1 = new JSONObject();
+ originalFitsDiscountPrice1.put("value", originalFitsDiscountPrice);
+ data.put("originalfitsdiscountprice", originalFitsDiscountPrice1);
+ }
+
+ if ( originalFitsName!= null){
+ JSONObject originalFitsName1 = new JSONObject();
+ originalFitsName1.put("value", originalFitsName);
+ data.put("originalfitsname", originalFitsName1);
+ }
+
+ if ( originalFitsCode!= null){
+ JSONObject originalFitsCode1 = new JSONObject();
+ originalFitsCode1.put("value", originalFitsCode);
+ data.put("originalfitscode", originalFitsCode1);
+ }
+
+ if ( isHisOuterFits!= null){
+ JSONObject isHisOuterFits1 = new JSONObject();
+ isHisOuterFits1.put("value", isHisOuterFits);
+ data.put("ishisouterfits", isHisOuterFits1);
+ }
+
+ if ( isFitsUnique!= null){
+ JSONObject isFitsUnique1 = new JSONObject();
+ isFitsUnique1.put("value", isFitsUnique);
+ data.put("isfitsunique", isFitsUnique1);
+ }
+
+ if (fitsDiscount != null){
+ JSONObject fitsDiscount1 = new JSONObject();
+ fitsDiscount1.put("value", fitsDiscount);
+ data.put("fitsdiscount", fitsDiscount1);
+ }
+
+ if ( fitsFee!= null){
+ JSONObject fitsFee1 = new JSONObject();
+ fitsFee1.put("value", fitsFee);
+ data.put("fitsdiscount", fitsFee1);
+ }
+ if ( fitsFeeRate!= null){
+ JSONObject fitsFeeRate1 = new JSONObject();
+ fitsFeeRate1.put("value", fitsFeeRate);
+ data.put("fitsfeerate", fitsFeeRate1);
+ }
+
+
+ if (extendPrice != null){
+ JSONObject extendPrice1 = new JSONObject();
+ extendPrice1.put("value", extendPrice);
+ data.put("extendprice", extendPrice1);
+ }
+
+ if ( isLock!= null){
+ JSONObject isLock1 = new JSONObject();
+ isLock1.put("value", isLock);
+ data.put("islock", isLock1);
+ }
+
+ if ( carLimitCount!= null){
+ JSONObject carLimitCount1 = new JSONObject();
+ carLimitCount1.put("value", carLimitCount);
+ data.put("carlimitcount", carLimitCount1);
+ }
+
+ if ( dataSource!= null){
+ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1);
+ }
+
+ if (insuranceCodes != null){
+ JSONObject insuranceCodes1 = new JSONObject();
+ insuranceCodes1.put("value", insuranceCodes);
+ data.put("insurancecodes", insuranceCodes1);
+ }
+
+ if ( lossCompanyAmount!= null){
+ JSONObject lossCompanyAmount1 = new JSONObject();
+ lossCompanyAmount1.put("value", lossCompanyAmount);
+ data.put("losscompanyamount", lossCompanyAmount1);
+ }
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSunTwoFour_.java b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSunTwoFour_.java
new file mode 100644
index 0000000..ca7093f
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSunTwoFour_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class WaiXiuXiangMuDingSunTwoFour_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500732e399b68fe0f0db4");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f500732e399b68fe0f0db4");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSun_.java b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSun_.java
new file mode 100644
index 0000000..df0afac
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/WaiXiuXiangMuDingSun_.java
@@ -0,0 +1,74 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class WaiXiuXiangMuDingSun_ {
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500732e399b68fe0f0db4");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("field","data_sources");
+ data_sources.put("method","eq");
+ JSONArray jsonArraydata_sources = new JSONArray();
+ jsonArraydata_sources.add(data_sources1);
+ data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f500732e399b68fe0f0db4");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","");
+ data.put("match_field",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/XiuGaiJiLu.java b/src/main/java/com/example/sso/dao/XiuGaiJiLu.java
new file mode 100644
index 0000000..a52a0d9
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/XiuGaiJiLu.java
@@ -0,0 +1,134 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class XiuGaiJiLu {
+ public static void add(String reportNo, String lossSeqNo, String taskId, String idDcInsLossDetail,String operatorName,
+ String operatorUm,String operatorRole,Double fitsSurveyPrice,Double auditPrice,
+ Double auditDamagePrice,Double adjustFitsFee,String createDate,Integer dataSource,
+ String idDcCarLossRecord,Integer fitsCount,String isDel,Double reduceRemnant,Double verifyReduce,
+ String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500d85c9195bacf624dba");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", "定损");
+ data.put("data_sources", data_sources );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+
+ JSONObject operatorName1 = new JSONObject();
+ operatorName1.put("value", operatorName);
+ data.put("operatorname", operatorName1);
+
+ JSONObject operatorUm1 = new JSONObject();
+ operatorUm1.put("value", operatorUm);
+ data.put("operatorum", operatorUm1);
+ if (operatorRole != null){
+ JSONObject operatorRole1 = new JSONObject();
+ operatorRole1.put("value", operatorRole);
+ data.put("operatorrole", operatorRole1);
+ }
+
+
+ JSONObject fitsSurveyPrice1 = new JSONObject();
+ fitsSurveyPrice1.put("value", fitsSurveyPrice);
+ data.put("fitssurveyprice", fitsSurveyPrice1);
+
+ if ( auditPrice!= null){
+ JSONObject auditPrice1 = new JSONObject();
+ auditPrice1.put("value", auditPrice);
+ data.put("auditprice", auditPrice1);
+ }
+
+ if ( auditDamagePrice!= null){
+ JSONObject auditDamagePrice1 = new JSONObject();
+ auditDamagePrice1.put("value", auditDamagePrice);
+ data.put("auditdamageprice", auditDamagePrice1);
+ }
+
+ if (adjustFitsFee != null){
+ JSONObject adjustFitsFee1 = new JSONObject();
+ adjustFitsFee1.put("value", adjustFitsFee);
+ data.put("adjustfitsfee", adjustFitsFee1);
+ }
+
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1);
+
+ JSONObject idDcCarLossRecord1 = new JSONObject();
+ idDcCarLossRecord1.put("value", idDcCarLossRecord);
+ data.put("iddccarlossrecord", idDcCarLossRecord1);
+ if ( fitsCount!= null){
+ JSONObject fitsCount1 = new JSONObject();
+ fitsCount1.put("value", fitsCount);
+ data.put("fitscount", fitsCount1);
+ }
+
+
+ JSONObject isDel1 = new JSONObject();
+ isDel1.put("value", isDel);
+ data.put(isDel, isDel1);
+ if (reduceRemnant != null){
+ JSONObject reduceRemnant1 = new JSONObject();
+ reduceRemnant1.put("value", reduceRemnant);
+ data.put("reduceremnant", reduceRemnant1);
+ }
+
+ if (verifyReduce != null){
+ JSONObject verifyReduce1 = new JSONObject();
+ verifyReduce1.put("value", verifyReduce);
+ data.put("verifyreduce", verifyReduce1);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/XiuGaiJiLuTwoFour.java b/src/main/java/com/example/sso/dao/XiuGaiJiLuTwoFour.java
new file mode 100644
index 0000000..42e3c46
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/XiuGaiJiLuTwoFour.java
@@ -0,0 +1,129 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+
+
+public class XiuGaiJiLuTwoFour {
+
+ public static void add(String reportNo, String lossSeqNo, String taskId, String idDcInsLossDetail, String operatorName,
+ String operatorUm, String operatorRole, Double fitsSurveyPrice, Double auditPrice,
+ Double auditDamagePrice, Double adjustFitsFee, String createDate, Integer dataSource,
+ String idDcCarLossRecord, Integer fitsCount, String isDel, Double reduceRemnant, Double verifyReduce,
+ String orgName,String data_sources1,String time
+
+ ) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500d85c9195bacf624dba");
+ jsonObject.put("is_start_trigger", true);
+ JSONObject data = new JSONObject();
+ JSONObject uuid = new JSONObject();
+ uuid.put("value", time);
+ data.put("uuid", uuid);
+ JSONObject data_sources = new JSONObject();
+ data_sources.put("value", data_sources1);
+ data.put("data_sources", data_sources );
+
+ JSONObject reportNo1 = new JSONObject();
+ reportNo1.put("value", reportNo);
+ data.put("reportno", reportNo1);
+
+ JSONObject lossSeqNo1 = new JSONObject();
+ lossSeqNo1.put("value", lossSeqNo);
+ data.put("lossseqno", lossSeqNo1);
+
+ JSONObject taskId1 = new JSONObject();
+ taskId1.put("value", taskId);
+ data.put("taskid", taskId1);
+
+ JSONObject orgName1 = new JSONObject();
+ orgName1.put("value", orgName);
+ data.put("orgname", orgName1);
+
+ JSONObject idDcInsLossDetail1 = new JSONObject();
+ idDcInsLossDetail1.put("value", idDcInsLossDetail);
+ data.put("iddcinslossdetail", idDcInsLossDetail1);
+
+ JSONObject operatorName1 = new JSONObject();
+ operatorName1.put("value", operatorName);
+ data.put("operatorname", operatorName1);
+
+ JSONObject operatorUm1 = new JSONObject();
+ operatorUm1.put("value", operatorUm);
+ data.put("operatorum", operatorUm1);
+
+ JSONObject operatorRole1 = new JSONObject();
+ operatorRole1.put("value", operatorRole);
+ data.put("operatorrole", operatorRole1);
+
+ JSONObject fitsSurveyPrice1 = new JSONObject();
+ fitsSurveyPrice1.put("value", fitsSurveyPrice);
+ data.put("fitssurveyprice", fitsSurveyPrice1);
+
+ if ( auditPrice!= null){ JSONObject auditPrice1 = new JSONObject();
+ auditPrice1.put("value", auditPrice);
+ data.put("auditprice", auditPrice1); }
+
+ if ( auditDamagePrice!= null){ JSONObject auditDamagePrice1 = new JSONObject();
+ auditDamagePrice1.put("value", auditDamagePrice);
+ data.put("auditdamageprice", auditDamagePrice1); }
+
+ if ( adjustFitsFee!= null){ JSONObject adjustFitsFee1 = new JSONObject();
+ adjustFitsFee1.put("value", adjustFitsFee);
+ data.put("adjustfitsfee", adjustFitsFee1); }
+
+
+ JSONObject createDate1 = new JSONObject();
+ createDate1.put("value", createDate);
+ data.put("createdate", createDate1);
+
+ JSONObject dataSource1 = new JSONObject();
+ dataSource1.put("value", dataSource);
+ data.put("datasource", dataSource1);
+
+ JSONObject idDcCarLossRecord1 = new JSONObject();
+ idDcCarLossRecord1.put("value", idDcCarLossRecord);
+ data.put("iddccarlossrecord", idDcCarLossRecord1);
+ if ( fitsCount!= null){
+ JSONObject fitsCount1 = new JSONObject();
+ fitsCount1.put("value", fitsCount);
+ data.put("fitscount", fitsCount1);
+ }
+
+
+ JSONObject isDel1 = new JSONObject();
+ isDel1.put("value", isDel);
+ data.put("isdel", isDel1);
+ if ( reduceRemnant!= null){ JSONObject reduceRemnant1 = new JSONObject();
+ reduceRemnant1.put("value", reduceRemnant);
+ data.put("reduceremnant", reduceRemnant1);}
+
+ if ( verifyReduce!= null){
+ JSONObject verifyReduce1 = new JSONObject();
+ verifyReduce1.put("value", verifyReduce);
+ data.put("verifyreduce", verifyReduce1);
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ jsonObject.put("data", data);
+ String jsonString = jsonObject.toJSONString();
+ V5utils.add(jsonString);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/XiuGaiJiLuTwoFour_.java b/src/main/java/com/example/sso/dao/XiuGaiJiLuTwoFour_.java
new file mode 100644
index 0000000..2a9565d
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/XiuGaiJiLuTwoFour_.java
@@ -0,0 +1,77 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class XiuGaiJiLuTwoFour_ {
+
+ public static void list(String data_sources1,String lossseqno1) {
+
+
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500d85c9195bacf624dba");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+// JSONObject data_sources = new JSONObject();
+// data_sources.put("field","data_sources");
+// data_sources.put("method","eq");
+// JSONArray jsonArraydata_sources = new JSONArray();
+// jsonArraydata_sources.add(data_sources1);
+// data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ // cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f500d85c9195bacf624dba");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","失效");
+ data.put("effectiveness",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/dao/XiuGaiJiLu_.java b/src/main/java/com/example/sso/dao/XiuGaiJiLu_.java
new file mode 100644
index 0000000..61c8c23
--- /dev/null
+++ b/src/main/java/com/example/sso/dao/XiuGaiJiLu_.java
@@ -0,0 +1,75 @@
+package com.example.sso.dao;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.V5utils;
+
+import java.util.ArrayList;
+
+public class XiuGaiJiLu_ {
+
+ public static void list(String data_sources1,String lossseqno1) {
+ ArrayList de = new ArrayList<>();
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id", "6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id", "67f500d85c9195bacf624dba");
+ jsonObject.put("limit", 10000);
+
+ JSONObject filter = new JSONObject();
+ filter.put("rel","and");
+ JSONArray cond = new JSONArray();
+
+// JSONObject data_sources = new JSONObject();
+// data_sources.put("field","data_sources");
+// data_sources.put("method","eq");
+// JSONArray jsonArraydata_sources = new JSONArray();
+// jsonArraydata_sources.add(data_sources1);
+// data_sources.put("value",jsonArraydata_sources);
+
+ JSONObject lossseqno = new JSONObject();
+ lossseqno.put("field","lossseqno");
+ lossseqno.put("method","eq");
+ JSONArray jsonArraydata_sources1 = new JSONArray();
+ jsonArraydata_sources1.add(lossseqno1);
+ lossseqno.put("value",jsonArraydata_sources1);
+ // cond.add(data_sources);
+ cond.add(lossseqno);
+ filter.put("cond",cond);
+ jsonObject.put("filter",filter);
+ String jsonString = jsonObject.toJSONString();
+ String list = V5utils.list(jsonString);
+ JSONObject DATS = JSON.parseObject(list);
+ JSONArray jsonArray1 = DATS.getJSONArray("data");
+ for (Object o : jsonArray1){
+ JSONObject test = (JSONObject) o;
+ String string = test.getString("_id");
+
+ up(string);
+ }
+
+
+ }
+
+ public static void up(String id) {
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("app_id","6790ca1682b769eeefb022f2");
+ jsonObject.put("entry_id","67f500d85c9195bacf624dba");
+ jsonObject.put("data_id",id);
+ JSONObject data = new JSONObject();
+
+
+ JSONObject effectiveness = new JSONObject();
+ effectiveness.put("value","失效");
+ data.put("effectiveness",effectiveness);
+
+
+
+ jsonObject.put("data",data);
+ String jsonString = jsonObject.toJSONString();
+ String updata = V5utils.updata(jsonString);
+ System.out.println(updata);
+
+
+ }
+}
diff --git a/src/main/java/com/example/sso/newcontroller/Page.java b/src/main/java/com/example/sso/newcontroller/Page.java
new file mode 100644
index 0000000..17febef
--- /dev/null
+++ b/src/main/java/com/example/sso/newcontroller/Page.java
@@ -0,0 +1,142 @@
+package com.example.sso.newcontroller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.YiZhangUtil;
+import org.apache.commons.codec.binary.Base64;
+
+public class Page {
+ public static void main(String[] args) throws Exception {
+ String id = "YJIC";
+ String skey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6nzuQzigcBA7vy38odxTg+7Ez2Ah+WEz0FktbJhB9ZNQks001Y1Qf3gQr43V/eXefpOOToYYn7uXZ7PXoF4pSJSHRtkGag+8DL8WXSsPRe5ABTuSbic340oEZ0SzZEDVKqUlTAjKuCd/41sjVdbc2PHhaLH992RQOtzb40Bs/srJR2gX+qwJQFVtRfQEpsRqwpYtB7ESw7k6Ds9xpvWtzClyTL44xUL94pr0k9be2SXfedP5jgJzO2WQCYFbRTn+nP2gAqxXq36zaGUAo7J61s1h7G3b1mE1yc62WDSJfL3nBOoIOYlzbm7TuCYn79L+X0E8311w1cTqsYhAvjZEjAgMBAAECggEAHGHBHlmsEe6wEtoBAbdyjnDY10igqg5lza1iUn9sfJWMCfTW5iqwDZSnT8FtCjD/92CNV9N14rbbcBQwpdaGq82H4iv0uDoebH6kb0jolQBUu04zSFBh6dih17pPNsfXQv6R7zTjXkKUNHT94DDh5za1GwmvbgVInqBQlPCZZEtXX9xl/WBjkHo0reLru4H9rbrE0lI2si3cW7raxHRm5JlgLr0Gpigq3wXZ8dBYIXHmI2ru0DR4B0p2+Rlve4PvUx/7kYfp0QMed4Dvb3wXc+/UJNl+RvAebMi3sPB3CYqFbgU9byTvcmBkhcvuhJbMKpRl1Eg3vpYUPGaClNOXwQKBgQDplsLYs237nH3VRtbCsDPA8XRB06xmH/MNUuKSP5WNcCQZQXW9+YnZj5JgeV/q3WHCRPBxX4zuovpLDigf0Pc7+1HKvCoTLuF4xZsxiKaH3tANOzoOPnQEFcCFVshU9LAJg98XGFOtUdX8hvwKF2mssiXwSqF+6UCATGh+XEPmwwKBgQDMhuep+Tebs8cP46uSEUSbr9JQ7aUeR7bXowg+CJTWt4H+yhRKcmuC0FOZROpu0h+iw73fkA4UCxXGB3JtYJIp4e9yITNh5faqXjkYWYzTnyULe4ejNtYRMSkW5J+MGXlGXA8SL0yYskgFjgE9aD8hWRQNl1hVLGWrO/irz0bGIQKBgQCYvdJvLPUQAEZv/cBU0i8lTT2+BZHHvcCKx9YL17QNJnUUZq99J/0x3CXVG8jSpSxVggrPt7FKIhwUlA88rsHb4Pyc2umQXall9aEDhN2QHuxgmofd5IysVyTqi9K3asDpl+d7DJc60DZiyElqt+CL4nnYZJSxjgh1XIE/j0l/TQKBgCDZcg/sxS+u2kQFDyNwvpI61Q7GfIS2g/lyZ/p+qlkqNCjWEBg89GOYTjUJypVuDkK4KaDkpD434ZFi1NAYeKFddnXgOz54DvwiEg2FJIdAwlRrzMc8IXm1aaIRqkZ4OPBCDPGgwy6rQ8IQosZYHfufMQdVzYwwi0vLYA9IRVfBAoGBAIdl1XjIBd7mfpRMCI64yC5T9ITNbJlWcgvhd9VIHaoWSzX9xLKi19UNPQ6XY1UyfXfMCTQOv7LRJD3gTusQgHIArBaqXLXCoBJGf5/Zg8ywBfw1YGQPLiBBXuCaHdhzhVBAQwVVqjOkLZexL+QSBQ2p+HLNLp/ZJvJWitKdZukF";
+ String KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlvUJDbPFcmSznhckyikj16HCFeHHmjPfxxdUczC5kY6CuXkOmt/YOKmOWWZvLSrEMwBL8ljR7Vgq9xnKUqMXybWHUC2lWmoqhQhC/f4wndvcvzWeHnofgUByoavYQneEiNUfcMfQ44DvWSIU6hyzh+mHA1pwDKiHBA4XiAdFJpFoitVo97S3BJ915HAiH9gTDSC4Jy5f59MRqDgNaV5ooxfr+g5GWo2TCEsDYGTCj7OnoaZcK21MzlhfLWgIGpWvoi69i3AbdBV+vlNHgH23PCvEEcp7n7sPZ0lLFe/d6McdV0BqTbw/+bEP2QjCdhll8hVazECnMzItM6GDVLHYFQIDAQAB";
+
+
+
+
+
+ String jsonString ="{\n" +
+ " \"accessRole\": \"45\",\n" +
+ " \"accidentDate\": \"2021-07-25 16:20:00\",\n" +
+ " \"actualValue\": 14065.00,\n" +
+ " \"carMark\": \"晋H5748\",\n" +
+ " \"carMarkType\": \"01\",\n" +
+ " \"caseType\": \"1\",\n" +
+ " \"damageType\": \"01\",\n" +
+ " \"insuranceCodeList\": \"C060101200,C060101310\",\n" +
+ " \"insuranceCodes\": \"C060101200\",\n" +
+ " \"insuredName\": \"忠运输装卸服务队\",\n" +
+ " \"isYFast\": \"0\",\n" +
+ " \"orgName\": \"安诚财产保险股份有限公司榆林中心支公司\",\n" +
+ " \"reportNo\": \"BA030061002021005755\",\n" +
+ " \"rescueFeeInfo\": {\n" +
+ " \"cranePrice\": 0,\n" +
+ " \"craneStartingFare\": 0,\n" +
+ " \"craneWorkTime\": 0,\n" +
+ " \"otherFee\": 0,\n" +
+ " \"trailerMileagePrice\": 0,\n" +
+ " \"trailerOverMileage\": 0,\n" +
+ " \"trailerStartingFare\": 0\n" +
+ " },\n" +
+ " \"trafficMileage\": 20,\n" +
+ " \"vin\": \"LG6ZDCNH0GY2\",\n" +
+ " \n" +
+ " \"communicationList\": [],\n" +
+ " \"extensionBtnList\": [\n" +
+ " {\n" +
+ " \"btnLink\": \"http://10.1.4.124/claim/jsp/claimflow/flowStatic.jsp?rptNo=BA030061002021005755\",\n" +
+ " \"btnLocation\": 1,\n" +
+ " \"btnName\": \"流程图\",\n" +
+ " \"openType\": 1,\n" +
+ " \"seqNo\": 2\n" +
+ " }\n" +
+ " ],\n" +
+ " \"insuranceCompanyNo\": \"ACIC\",\n" +
+ " \"isSurvey\": \"N\",\n" +
+ " \"leakageMangement\": {\n" +
+ " \"caseTimes\": 1\n" +
+ " },\n" +
+ " \"lossFitsItemList\": [\n" +
+ " {\n" +
+ " \"adjustFitsFee\": 0.00,\n" +
+ " \"audit\": 0,\n" +
+ " \"auditDamagePrice\": 540.00,\n" +
+ " \"auditPrice\": 600.00,\n" +
+ " \"createDate\": \"2021-08-02 09:48:04\",\n" +
+ " \"fitsCount\": 1,\n" +
+ " \"fitsFeeRateTypeEx\": 3,\n" +
+ " \"fitsName\": \"前挡风玻璃\",\n" +
+ " \"fitsSurveyPrice\": 1250.00,\n" +
+ " \"idDcInsLossDetail\": \"C88A4CB3FCBD8A4FE0530438210AE9BF\",\n" +
+ " \"isDel\": \"N\",\n" +
+ " \"recycle\": 0,\n" +
+ " \"reduceRemnant\": 0.00,\n" +
+ " \"verifyReduce\": 0.00\n" +
+ " }\n" +
+ " ],\n" +
+ " \"lossManpowerItemList\": [\n" +
+ " {\n" +
+ " \"auditDamagePrice\": 500.00,\n" +
+ " \"createDate\": \"2021-08-02 09:48:04\",\n" +
+ " \"idDcInsLossDetail\": \"C88A4CB3FCE18A4FE0530438210AE9BF\",\n" +
+ " \"isDel\": \"N\",\n" +
+ " \"manpowerItemName\": \"拆装更换发动机受损件 水箱 中冷器 风圈\",\n" +
+ " \"manpowerSurveyPrice\": 1000.00\n" +
+ " }\n" +
+ " ],\n" +
+ " \"lossOuterFitsItemList\": [],\n" +
+ " \"lossSeqNo\": \"21000678297\",\n" +
+ " \"lossSeqNoHis\": \"\",\n" +
+ " \"operatorDptCde\": \"61\",\n" +
+ " \"operatorName\": \"李\",\n" +
+ " \"operatorRole\": \"47\",\n" +
+ " \"operatorUm\": \"161021491\",\n" +
+ " \"opinionDescribe\": \"双证在查勘前端资料,总价协商13000,工时费低请老师调整按13000审核\",\n" +
+ " \"lossAreaList\":[{\n" +
+ " \"provinceCode\":\"610000\",\n" +
+ " \"cityList\": [\n" +
+ " \"610100\",\n" +
+ " \"610200\",\n" +
+ " \"610300\",\n" +
+ " \"610400\",\n" +
+ " \"610500\",\n" +
+ " \"610600\",\n" +
+ " \"610700\",\n" +
+ " \"610800\",\n" +
+ " \"610900\",\n" +
+ " \"611000\"\n" +
+ " ]\n" +
+ " }],\n" +
+ " \"readonly\": \"Y\"\n" +
+ "}\n" ;
+ JSONObject jsonObject = JSON.parseObject(jsonString);
+ String jsonString2 = jsonObject.toJSONString();
+ System.out.println("我是转 " + jsonString2);
+
+ String s = Base64.encodeBase64String(jsonString.getBytes("UTF-8"));
+
+ String signatureData = YiZhangUtil.signatureData("YJIC" + Base64.encodeBase64String(jsonString.getBytes("UTF-8")), skey);
+
+ JSONObject object = new JSONObject();
+ object.put("siteCode" , id);
+ object.put("reqData" , s);
+ object.put("signature" , signatureData);
+ String jsonString1 = object.toJSONString();
+ System.out.println("我是参数 " + jsonString1);
+
+ String newlossplatform = YiZhangUtil.page(jsonString1);
+ JSONObject jsonObject1 = JSON.parseObject(newlossplatform);
+ String signature = jsonObject1.getString("signature");
+ String respData = jsonObject1.getString("respData");
+ String msg = jsonObject1.getString("msg");
+ String code = jsonObject1.getString("code");
+ boolean b = YiZhangUtil.verifySignature(code + msg + respData, KEY, signature);
+ byte[] bytes = Base64.decodeBase64(respData);
+ String result = new String(bytes);
+ System.out.println(result);
+ System.out.println(b);
+
+
+ }
+
+}
diff --git a/src/main/java/com/example/sso/newcontroller/PageTwoOne.java b/src/main/java/com/example/sso/newcontroller/PageTwoOne.java
new file mode 100644
index 0000000..7b4d02f
--- /dev/null
+++ b/src/main/java/com/example/sso/newcontroller/PageTwoOne.java
@@ -0,0 +1,164 @@
+package com.example.sso.newcontroller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.YiZhangUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.codec.binary.Base64;
+import org.springframework.scheduling.annotation.Async;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+import java.io.UnsupportedEncodingException;
+
+@RestController
+@Slf4j
+
+public class PageTwoOne {
+ @PostMapping("/twodianone")
+ public JSONObject PageTwoOne(@RequestBody JSONObject data) throws Exception {
+ log.info("我是twodianone参数 " + data.toJSONString());
+
+ String id = "YJIC";
+ String skey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6nzuQzigcBA7vy38odxTg+7Ez2Ah+WEz0FktbJhB9ZNQks001Y1Qf3gQr43V/eXefpOOToYYn7uXZ7PXoF4pSJSHRtkGag+8DL8WXSsPRe5ABTuSbic340oEZ0SzZEDVKqUlTAjKuCd/41sjVdbc2PHhaLH992RQOtzb40Bs/srJR2gX+qwJQFVtRfQEpsRqwpYtB7ESw7k6Ds9xpvWtzClyTL44xUL94pr0k9be2SXfedP5jgJzO2WQCYFbRTn+nP2gAqxXq36zaGUAo7J61s1h7G3b1mE1yc62WDSJfL3nBOoIOYlzbm7TuCYn79L+X0E8311w1cTqsYhAvjZEjAgMBAAECggEAHGHBHlmsEe6wEtoBAbdyjnDY10igqg5lza1iUn9sfJWMCfTW5iqwDZSnT8FtCjD/92CNV9N14rbbcBQwpdaGq82H4iv0uDoebH6kb0jolQBUu04zSFBh6dih17pPNsfXQv6R7zTjXkKUNHT94DDh5za1GwmvbgVInqBQlPCZZEtXX9xl/WBjkHo0reLru4H9rbrE0lI2si3cW7raxHRm5JlgLr0Gpigq3wXZ8dBYIXHmI2ru0DR4B0p2+Rlve4PvUx/7kYfp0QMed4Dvb3wXc+/UJNl+RvAebMi3sPB3CYqFbgU9byTvcmBkhcvuhJbMKpRl1Eg3vpYUPGaClNOXwQKBgQDplsLYs237nH3VRtbCsDPA8XRB06xmH/MNUuKSP5WNcCQZQXW9+YnZj5JgeV/q3WHCRPBxX4zuovpLDigf0Pc7+1HKvCoTLuF4xZsxiKaH3tANOzoOPnQEFcCFVshU9LAJg98XGFOtUdX8hvwKF2mssiXwSqF+6UCATGh+XEPmwwKBgQDMhuep+Tebs8cP46uSEUSbr9JQ7aUeR7bXowg+CJTWt4H+yhRKcmuC0FOZROpu0h+iw73fkA4UCxXGB3JtYJIp4e9yITNh5faqXjkYWYzTnyULe4ejNtYRMSkW5J+MGXlGXA8SL0yYskgFjgE9aD8hWRQNl1hVLGWrO/irz0bGIQKBgQCYvdJvLPUQAEZv/cBU0i8lTT2+BZHHvcCKx9YL17QNJnUUZq99J/0x3CXVG8jSpSxVggrPt7FKIhwUlA88rsHb4Pyc2umQXall9aEDhN2QHuxgmofd5IysVyTqi9K3asDpl+d7DJc60DZiyElqt+CL4nnYZJSxjgh1XIE/j0l/TQKBgCDZcg/sxS+u2kQFDyNwvpI61Q7GfIS2g/lyZ/p+qlkqNCjWEBg89GOYTjUJypVuDkK4KaDkpD434ZFi1NAYeKFddnXgOz54DvwiEg2FJIdAwlRrzMc8IXm1aaIRqkZ4OPBCDPGgwy6rQ8IQosZYHfufMQdVzYwwi0vLYA9IRVfBAoGBAIdl1XjIBd7mfpRMCI64yC5T9ITNbJlWcgvhd9VIHaoWSzX9xLKi19UNPQ6XY1UyfXfMCTQOv7LRJD3gTusQgHIArBaqXLXCoBJGf5/Zg8ywBfw1YGQPLiBBXuCaHdhzhVBAQwVVqjOkLZexL+QSBQ2p+HLNLp/ZJvJWitKdZukF";
+ String KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlvUJDbPFcmSznhckyikj16HCFeHHmjPfxxdUczC5kY6CuXkOmt/YOKmOWWZvLSrEMwBL8ljR7Vgq9xnKUqMXybWHUC2lWmoqhQhC/f4wndvcvzWeHnofgUByoavYQneEiNUfcMfQ44DvWSIU6hyzh+mHA1pwDKiHBA4XiAdFJpFoitVo97S3BJ915HAiH9gTDSC4Jy5f59MRqDgNaV5ooxfr+g5GWo2TCEsDYGTCj7OnoaZcK21MzlhfLWgIGpWvoi69i3AbdBV+vlNHgH23PCvEEcp7n7sPZ0lLFe/d6McdV0BqTbw/+bEP2QjCdhll8hVazECnMzItM6GDVLHYFQIDAQAB";
+
+
+ String string = data.getString("lossAreaList");
+ JSONArray jsonArray = JSON.parseArray(string);
+ data.put("lossAreaList",jsonArray);
+ String jsonString = data.toJSONString();
+ log.info("转换后的代码 " + jsonString);
+
+// String jsonString ="{\n" +
+// " \"accessRole\": \"45\",\n" +
+// " \"accidentDate\": \"2021-07-25 16:20:00\",\n" +
+// " \"actualValue\": 14065.00,\n" +
+// " \"carMark\": \"晋H5748\",\n" +
+// " \"carMarkType\": \"01\",\n" +
+// " \"caseType\": \"1\",\n" +
+// " \"damageType\": \"01\",\n" +
+// " \"insuranceCodeList\": \"C060101200,C060101310\",\n" +
+// " \"insuranceCodes\": \"C060101200\",\n" +
+// " \"insuredName\": \"忠运输装卸服务队\",\n" +
+// " \"isYFast\": \"0\",\n" +
+// " \"orgName\": \"安诚财产保险股份有限公司榆林中心支公司\",\n" +
+// " \"reportNo\": \"BA030061002021005755\",\n" +
+// " \"rescueFeeInfo\": {\n" +
+// " \"cranePrice\": 0,\n" +
+// " \"craneStartingFare\": 0,\n" +
+// " \"craneWorkTime\": 0,\n" +
+// " \"otherFee\": 0,\n" +
+// " \"trailerMileagePrice\": 0,\n" +
+// " \"trailerOverMileage\": 0,\n" +
+// " \"trailerStartingFare\": 0\n" +
+// " },\n" +
+// " \"trafficMileage\": 20,\n" +
+// " \"vin\": \"LG6ZDCNH0GY2\",\n" +
+// " \n" +
+// " \"communicationList\": [],\n" +
+// " \"extensionBtnList\": [\n" +
+// " {\n" +
+// " \"btnLink\": \"http://10.1.4.124/claim/jsp/claimflow/flowStatic.jsp?rptNo=BA030061002021005755\",\n" +
+// " \"btnLocation\": 1,\n" +
+// " \"btnName\": \"流程图\",\n" +
+// " \"openType\": 1,\n" +
+// " \"seqNo\": 2\n" +
+// " }\n" +
+// " ],\n" +
+// " \"insuranceCompanyNo\": \"ACIC\",\n" +
+// " \"isSurvey\": \"N\",\n" +
+// " \"leakageMangement\": {\n" +
+// " \"caseTimes\": 1\n" +
+// " },\n" +
+// " \"lossFitsItemList\": [\n" +
+// " {\n" +
+// " \"adjustFitsFee\": 0.00,\n" +
+// " \"audit\": 0,\n" +
+// " \"auditDamagePrice\": 540.00,\n" +
+// " \"auditPrice\": 600.00,\n" +
+// " \"createDate\": \"2021-08-02 09:48:04\",\n" +
+// " \"fitsCount\": 1,\n" +
+// " \"fitsFeeRateTypeEx\": 3,\n" +
+// " \"fitsName\": \"前挡风玻璃\",\n" +
+// " \"fitsSurveyPrice\": 1250.00,\n" +
+// " \"idDcInsLossDetail\": \"C88A4CB3FCBD8A4FE0530438210AE9BF\",\n" +
+// " \"isDel\": \"N\",\n" +
+// " \"recycle\": 0,\n" +
+// " \"reduceRemnant\": 0.00,\n" +
+// " \"verifyReduce\": 0.00\n" +
+// " }\n" +
+// " ],\n" +
+// " \"lossManpowerItemList\": [\n" +
+// " {\n" +
+// " \"auditDamagePrice\": 500.00,\n" +
+// " \"createDate\": \"2021-08-02 09:48:04\",\n" +
+// " \"idDcInsLossDetail\": \"C88A4CB3FCE18A4FE0530438210AE9BF\",\n" +
+// " \"isDel\": \"N\",\n" +
+// " \"manpowerItemName\": \"拆装更换发动机受损件 水箱 中冷器 风圈\",\n" +
+// " \"manpowerSurveyPrice\": 1000.00\n" +
+// " }\n" +
+// " ],\n" +
+// " \"lossOuterFitsItemList\": [],\n" +
+// " \"lossSeqNo\": \"21000678297\",\n" +
+// " \"lossSeqNoHis\": \"\",\n" +
+// " \"operatorDptCde\": \"61\",\n" +
+// " \"operatorName\": \"李\",\n" +
+// " \"operatorRole\": \"47\",\n" +
+// " \"operatorUm\": \"161021491\",\n" +
+// " \"opinionDescribe\": \"双证在查勘前端资料,总价协商13000,工时费低请老师调整按13000审核\",\n" +
+// " \"lossAreaList\":[{\n" +
+// " \"provinceCode\":\"610000\",\n" +
+// " \"cityList\": [\n" +
+// " \"610100\",\n" +
+// " \"610200\",\n" +
+// " \"610300\",\n" +
+// " \"610400\",\n" +
+// " \"610500\",\n" +
+// " \"610600\",\n" +
+// " \"610700\",\n" +
+// " \"610800\",\n" +
+// " \"610900\",\n" +
+// " \"611000\"\n" +
+// " ]\n" +
+// " }],\n" +
+// " \"readonly\": \"Y\"\n" +
+// "}\n" ;
+ String s = Base64.encodeBase64String(jsonString.getBytes("UTF-8"));
+
+ String signatureData = YiZhangUtil.signatureData("YJIC" + Base64.encodeBase64String(jsonString.getBytes("UTF-8")), skey);
+
+ JSONObject object = new JSONObject();
+ object.put("siteCode" , id);
+ object.put("reqData" , s);
+ object.put("signature" , signatureData);
+ String jsonString1 = object.toJSONString();
+ System.out.println("我是参数 " + jsonString1);
+
+ String newlossplatform = YiZhangUtil.page(jsonString1);
+ JSONObject jsonObject1 = JSON.parseObject(newlossplatform);
+ String signature = jsonObject1.getString("signature");
+ String respData = jsonObject1.getString("respData");
+ String msg = jsonObject1.getString("msg");
+ String code = jsonObject1.getString("code");
+ boolean b = YiZhangUtil.verifySignature(code + msg + respData, KEY, signature);
+ if (b == true) {
+ byte[] bytes = Base64.decodeBase64(respData);
+ String result = new String(bytes);
+ log.info("返回的url " +result );
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("url",result);
+ return jsonObject;
+
+ }else {
+
+
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("url", "失败: "+msg + msg);
+
+ return jsonObject;
+ }
+ }
+}
diff --git a/src/main/java/com/example/sso/newcontroller/PageTwoThree.java b/src/main/java/com/example/sso/newcontroller/PageTwoThree.java
new file mode 100644
index 0000000..933b1ca
--- /dev/null
+++ b/src/main/java/com/example/sso/newcontroller/PageTwoThree.java
@@ -0,0 +1,155 @@
+package com.example.sso.newcontroller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.YiZhangUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.codec.binary.Base64;
+import org.springframework.scheduling.annotation.Async;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@Slf4j
+
+public class PageTwoThree {
+ @PostMapping("/twodianthree")
+ public JSONObject PageTwoThree(@RequestBody JSONObject data) throws Exception {
+ log.info("我是PageTwoThree参数 " + data.toJSONString());
+
+ String id = "YJIC";
+ String skey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6nzuQzigcBA7vy38odxTg+7Ez2Ah+WEz0FktbJhB9ZNQks001Y1Qf3gQr43V/eXefpOOToYYn7uXZ7PXoF4pSJSHRtkGag+8DL8WXSsPRe5ABTuSbic340oEZ0SzZEDVKqUlTAjKuCd/41sjVdbc2PHhaLH992RQOtzb40Bs/srJR2gX+qwJQFVtRfQEpsRqwpYtB7ESw7k6Ds9xpvWtzClyTL44xUL94pr0k9be2SXfedP5jgJzO2WQCYFbRTn+nP2gAqxXq36zaGUAo7J61s1h7G3b1mE1yc62WDSJfL3nBOoIOYlzbm7TuCYn79L+X0E8311w1cTqsYhAvjZEjAgMBAAECggEAHGHBHlmsEe6wEtoBAbdyjnDY10igqg5lza1iUn9sfJWMCfTW5iqwDZSnT8FtCjD/92CNV9N14rbbcBQwpdaGq82H4iv0uDoebH6kb0jolQBUu04zSFBh6dih17pPNsfXQv6R7zTjXkKUNHT94DDh5za1GwmvbgVInqBQlPCZZEtXX9xl/WBjkHo0reLru4H9rbrE0lI2si3cW7raxHRm5JlgLr0Gpigq3wXZ8dBYIXHmI2ru0DR4B0p2+Rlve4PvUx/7kYfp0QMed4Dvb3wXc+/UJNl+RvAebMi3sPB3CYqFbgU9byTvcmBkhcvuhJbMKpRl1Eg3vpYUPGaClNOXwQKBgQDplsLYs237nH3VRtbCsDPA8XRB06xmH/MNUuKSP5WNcCQZQXW9+YnZj5JgeV/q3WHCRPBxX4zuovpLDigf0Pc7+1HKvCoTLuF4xZsxiKaH3tANOzoOPnQEFcCFVshU9LAJg98XGFOtUdX8hvwKF2mssiXwSqF+6UCATGh+XEPmwwKBgQDMhuep+Tebs8cP46uSEUSbr9JQ7aUeR7bXowg+CJTWt4H+yhRKcmuC0FOZROpu0h+iw73fkA4UCxXGB3JtYJIp4e9yITNh5faqXjkYWYzTnyULe4ejNtYRMSkW5J+MGXlGXA8SL0yYskgFjgE9aD8hWRQNl1hVLGWrO/irz0bGIQKBgQCYvdJvLPUQAEZv/cBU0i8lTT2+BZHHvcCKx9YL17QNJnUUZq99J/0x3CXVG8jSpSxVggrPt7FKIhwUlA88rsHb4Pyc2umQXall9aEDhN2QHuxgmofd5IysVyTqi9K3asDpl+d7DJc60DZiyElqt+CL4nnYZJSxjgh1XIE/j0l/TQKBgCDZcg/sxS+u2kQFDyNwvpI61Q7GfIS2g/lyZ/p+qlkqNCjWEBg89GOYTjUJypVuDkK4KaDkpD434ZFi1NAYeKFddnXgOz54DvwiEg2FJIdAwlRrzMc8IXm1aaIRqkZ4OPBCDPGgwy6rQ8IQosZYHfufMQdVzYwwi0vLYA9IRVfBAoGBAIdl1XjIBd7mfpRMCI64yC5T9ITNbJlWcgvhd9VIHaoWSzX9xLKi19UNPQ6XY1UyfXfMCTQOv7LRJD3gTusQgHIArBaqXLXCoBJGf5/Zg8ywBfw1YGQPLiBBXuCaHdhzhVBAQwVVqjOkLZexL+QSBQ2p+HLNLp/ZJvJWitKdZukF";
+ String KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlvUJDbPFcmSznhckyikj16HCFeHHmjPfxxdUczC5kY6CuXkOmt/YOKmOWWZvLSrEMwBL8ljR7Vgq9xnKUqMXybWHUC2lWmoqhQhC/f4wndvcvzWeHnofgUByoavYQneEiNUfcMfQ44DvWSIU6hyzh+mHA1pwDKiHBA4XiAdFJpFoitVo97S3BJ915HAiH9gTDSC4Jy5f59MRqDgNaV5ooxfr+g5GWo2TCEsDYGTCj7OnoaZcK21MzlhfLWgIGpWvoi69i3AbdBV+vlNHgH23PCvEEcp7n7sPZ0lLFe/d6McdV0BqTbw/+bEP2QjCdhll8hVazECnMzItM6GDVLHYFQIDAQAB";
+
+ String jsonString = data.toJSONString();
+
+// String jsonString ="{\n" +
+// " \"accessRole\": \"45\",\n" +
+// " \"accidentDate\": \"2021-07-25 16:20:00\",\n" +
+// " \"actualValue\": 14065.00,\n" +
+// " \"carMark\": \"晋H5748\",\n" +7777777
+// " \"carMarkType\": \"01\",\n" +
+// " \"caseType\": \"1\",\n" +
+// " \"damageType\": \"01\",\n" +
+// " \"insuranceCodeList\": \"C060101200,C060101310\",\n" +
+// " \"insuranceCodes\": \"C060101200\",\n" +
+// " \"insuredName\": \"忠运输装卸服务队\",\n" +
+// " \"isYFast\": \"0\",\n" +
+// " \"orgName\": \"安诚财产保险股份有限公司榆林中心支公司\",\n" +
+// " \"reportNo\": \"BA030061002021005755\",\n" +
+// " \"rescueFeeInfo\": {\n" +
+// " \"cranePrice\": 0,\n" +
+// " \"craneStartingFare\": 0,\n" +
+// " \"craneWorkTime\": 0,\n" +
+// " \"otherFee\": 0,\n" +
+// " \"trailerMileagePrice\": 0,\n" +
+// " \"trailerOverMileage\": 0,\n" +
+// " \"trailerStartingFare\": 0\n" +
+// " },\n" +
+// " \"trafficMileage\": 20,\n" +
+// " \"vin\": \"LG6ZDCNH0GY2\",\n" +
+// " \n" +
+// " \"communicationList\": [],\n" +
+// " \"extensionBtnList\": [\n" +
+// " {\n" +
+// " \"btnLink\": \"http://10.1.4.124/claim/jsp/claimflow/flowStatic.jsp?rptNo=BA030061002021005755\",\n" +
+// " \"btnLocation\": 1,\n" +
+// " \"btnName\": \"流程图\",\n" +
+// " \"openType\": 1,\n" +
+// " \"seqNo\": 2\n" +
+// " }\n" +
+// " ],\n" +
+// " \"insuranceCompanyNo\": \"ACIC\",\n" +
+// " \"isSurvey\": \"N\",\n" +
+// " \"leakageMangement\": {\n" +
+// " \"caseTimes\": 1\n" +
+// " },\n" +
+// " \"lossFitsItemList\": [\n" +
+// " {\n" +
+// " \"adjustFitsFee\": 0.00,\n" +
+// " \"audit\": 0,\n" +
+// " \"auditDamagePrice\": 540.00,\n" +
+// " \"auditPrice\": 600.00,\n" +
+// " \"createDate\": \"2021-08-02 09:48:04\",\n" +
+// " \"fitsCount\": 1,\n" +
+// " \"fitsFeeRateTypeEx\": 3,\n" +
+// " \"fitsName\": \"前挡风玻璃\",\n" +
+// " \"fitsSurveyPrice\": 1250.00,\n" +
+// " \"idDcInsLossDetail\": \"C88A4CB3FCBD8A4FE0530438210AE9BF\",\n" +
+// " \"isDel\": \"N\",\n" +
+// " \"recycle\": 0,\n" +
+// " \"reduceRemnant\": 0.00,\n" +
+// " \"verifyReduce\": 0.00\n" +
+// " }\n" +
+// " ],\n" +
+// " \"lossManpowerItemList\": [\n" +
+// " {\n" +
+// " \"auditDamagePrice\": 500.00,\n" +
+// " \"createDate\": \"2021-08-02 09:48:04\",\n" +
+// " \"idDcInsLossDetail\": \"C88A4CB3FCE18A4FE0530438210AE9BF\",\n" +
+// " \"isDel\": \"N\",\n" +
+// " \"manpowerItemName\": \"拆装更换发动机受损件 水箱 中冷器 风圈\",\n" +
+// " \"manpowerSurveyPrice\": 1000.00\n" +
+// " }\n" +
+// " ],\n" +
+// " \"lossOuterFitsItemList\": [],\n" +
+// " \"lossSeqNo\": \"21000678297\",\n" +
+// " \"lossSeqNoHis\": \"\",\n" +
+// " \"operatorDptCde\": \"61\",\n" +
+// " \"operatorName\": \"李\",\n" +
+// " \"operatorRole\": \"47\",\n" +
+// " \"operatorUm\": \"161021491\",\n" +
+// " \"opinionDescribe\": \"双证在查勘前端资料,总价协商13000,工时费低请老师调整按13000审核\",\n" +
+// " \"lossAreaList\":[{\n" +
+// " \"provinceCode\":\"610000\",\n" +
+// " \"cityList\": [\n" +
+// " \"610100\",\n" +
+// " \"610200\",\n" +
+// " \"610300\",\n" +
+// " \"610400\",\n" +
+// " \"610500\",\n" +
+// " \"610600\",\n" +
+// " \"610700\",\n" +
+// " \"610800\",\n" +
+// " \"610900\",\n" +
+// " \"611000\"\n" +
+// " ]\n" +
+// " }],\n" +
+// " \"readonly\": \"Y\"\n" +
+// "}\n" ;
+ String s = Base64.encodeBase64String(jsonString.getBytes("UTF-8"));
+
+ String signatureData = YiZhangUtil.signatureData("YJIC" + Base64.encodeBase64String(jsonString.getBytes("UTF-8")), skey);
+
+ JSONObject object = new JSONObject();
+ object.put("siteCode" , id);
+ object.put("reqData" , s);
+ object.put("signature" , signatureData);
+ String jsonString1 = object.toJSONString();
+ System.out.println("我是参数 " + jsonString1);
+
+ String newlossplatform = YiZhangUtil.quoteGuidepage(jsonString1);
+ JSONObject jsonObject1 = JSON.parseObject(newlossplatform);
+ String signature = jsonObject1.getString("signature");
+ String respData = jsonObject1.getString("respData");
+ String msg = jsonObject1.getString("msg");
+ String code = jsonObject1.getString("code");
+ boolean b = YiZhangUtil.verifySignature(code + msg + respData, KEY, signature);
+ if (b == true) {
+ byte[] bytes = Base64.decodeBase64(respData);
+ String result = new String(bytes);
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("url",result);
+ return jsonObject;
+
+ }else {
+
+
+ JSONObject jsonObject = new JSONObject();
+ jsonObject.put("url", "失败: "+msg + msg);
+
+ return jsonObject;
+ }
+ }
+}
diff --git a/src/main/java/com/example/sso/newcontroller/PushDataInsLoss.java b/src/main/java/com/example/sso/newcontroller/PushDataInsLoss.java
new file mode 100644
index 0000000..4cce44e
--- /dev/null
+++ b/src/main/java/com/example/sso/newcontroller/PushDataInsLoss.java
@@ -0,0 +1,500 @@
+package com.example.sso.newcontroller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.dao.*;
+import com.example.sso.util.TimeUtil;
+import com.example.sso.util.YiZhangUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.codec.binary.Base64;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+
+import java.util.concurrent.CompletableFuture;
+
+import static com.example.sso.util.YiZhangUtil.verifySignature;
+
+@RestController
+@Slf4j
+public class PushDataInsLoss {
+
+ @PostMapping("/api/insLoss/pushData")
+ public JSONObject pushdata(@RequestBody JSONObject data) throws Exception {
+ String now = TimeUtil.now();
+ log.info("我是insLoss参数 " + data.toJSONString());
+ String S = data.toJSONString();
+
+ //String S = "{\"reqData\":\"eyJiYXNlSW5mbyI6eyJyZXBvcnRObyI6IjEyMjIyMjIyMjIiLCJpbnN1cmFuY2VDb2RlTGlzdCI6IjEyMzQ1NSwzMzQ1NjQiLCJ2aW4iOiJMVk4xMjMxMjMxMiJ9LCJhZGRyZXNzIjoi5rWL6K+V5Zyw5Z2AIiwiY291bnR5Q29kZSI6IjEwMDExMCIsInByZUNoZWNrU3RhdGUiOiIyIn0=\",\"siteCode\":\"YJIC\",\"signature\":\"YVIxcXVqMkwzQTBaQ285em9wQy8yYVZmWVc2SEVjVnpVNmttQzdmVlFhY0I5U3ZvcnNnNkZxbEVRTzdnRDh6T05oOHkzZ2pGdUQxSkJPd2NZM2Y5Z05uWVBleElYRWZNV3FudXRCQ1RTaU5BSnNVWGZzb0thZUdtQ2RsdWhycXJMK0ZWWGkxblN6QlQ4a3VsZXBKa2NYcGlTUE1SdHlKYVRlNTAzN2FrT3JXUDFMTGYweGVsWitPV1ppOU5RTU5ualFvYTlqZGU2RzRXM1d5RE9qNnI4YzVhUnJvS2piRVJ2bFRDSzR6ZGRTL2tXaGU1OGRwdTllQmJNbzVvTVVPYUcvZjJLVjJTUXRwMzd0NkJla0t4MTY2TFkvN0V5dkM0azFRKzAvdkxDWEpqUVM1SlllbG5tckhjZnF2UVpCb0JEN0I5YzBFcWZOcjZ0K01uMDFtbFJRPT0=\"}";
+ String KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlvUJDbPFcmSznhckyikj16HCFeHHmjPfxxdUczC5kY6CuXkOmt/YOKmOWWZvLSrEMwBL8ljR7Vgq9xnKUqMXybWHUC2lWmoqhQhC/f4wndvcvzWeHnofgUByoavYQneEiNUfcMfQ44DvWSIU6hyzh+mHA1pwDKiHBA4XiAdFJpFoitVo97S3BJ915HAiH9gTDSC4Jy5f59MRqDgNaV5ooxfr+g5GWo2TCEsDYGTCj7OnoaZcK21MzlhfLWgIGpWvoi69i3AbdBV+vlNHgH23PCvEEcp7n7sPZ0lLFe/d6McdV0BqTbw/+bEP2QjCdhll8hVazECnMzItM6GDVLHYFQIDAQAB";
+
+ JSONObject jsonObject1 = JSON.parseObject(S);
+ String signature = jsonObject1.getString("signature");
+ String respData = jsonObject1.getString("reqData");
+ String siteCode = jsonObject1.getString("siteCode");
+ CompletableFuture.runAsync(() -> {
+ try {
+ boolean b = verifySignature(siteCode + respData, KEY, signature);
+
+ if (b == true) {
+
+ byte[] bytes = Base64.decodeBase64(respData);
+ String result = new String(bytes);
+ log.info("我是转换后insLoss参数 " + result);
+ JSONObject jsonObject = JSON.parseObject(result);
+ //外修定损项目
+ JSONArray lossFitsItemList = jsonObject.getJSONArray("lossFitsItemList");
+ // 2.2.2.2. 工时定损项目
+ JSONArray lossManpowerItemList = jsonObject.getJSONArray("lossManpowerItemList");
+ //2.2.2.3. 外修定损项目lossOuterFitsItemList
+ JSONArray lossOuterFitsItemList = jsonObject.getJSONArray("lossOuterFitsItemList");
+ // 2.2.2.5. 沟通信息communicationList
+ JSONArray communicationList = jsonObject.getJSONArray("communicationList");
+ //2.2.2.7. 施救费rescueFeeInfo
+ JSONObject rescueFeeInfo = jsonObject.getJSONObject("rescueFeeInfo");
+
+ //反渗漏结果
+ JSONObject leakageMangementResult = jsonObject.getJSONObject("leakageMangementResult");
+ JSONArray riskList = new JSONArray();
+ if(leakageMangementResult != null ) {
+ riskList = leakageMangementResult.getJSONArray("riskList");
+ }
+
+ // 2.2.2.10. 外修订单信息 repairOutsideFitList
+ JSONArray repairOutsideFitList = jsonObject.getJSONArray("repairOutsideFitList");
+
+ String reportNo = jsonObject.getString("reportNo");
+ String lossSeqNo = jsonObject.getString("lossSeqNo");
+ String taskId = jsonObject.getString("taskId");
+ Double rescueFee = jsonObject.getDouble("rescueFee");
+ Double surplusValue = jsonObject.getDouble("surplusValue");
+ String vin = jsonObject.getString("vin");
+ Double actualValue = jsonObject.getDouble("actualValue");
+ Double verifyReduce = jsonObject.getDouble("verifyReduce");
+ String auditType = jsonObject.getString("auditType");
+ String fitsPriceType = jsonObject.getString("fitsPriceType");
+ String fitLabelType = jsonObject.getString("fitLabelType");
+ String operatorUm = jsonObject.getString("operatorUm");
+ String operatorRole = jsonObject.getString("operatorRole");
+ String provinceCode = jsonObject.getString("provinceCode");
+ String cityCode = jsonObject.getString("cityCode");
+ String garageCode = jsonObject.getString("garageCode");
+ String garageName = jsonObject.getString("garageName");
+ String garageType = jsonObject.getString("garageType");
+ String brandName = jsonObject.getString("brandName");
+ String manufacturerName = jsonObject.getString("manufacturerName");
+ String modelCode = jsonObject.getString("modelCode");
+ String modelName = jsonObject.getString("modelName");
+ String lossPosition = jsonObject.getString("lossPosition");
+ String groupName = jsonObject.getString("groupName");
+ String modelCategoryCode = jsonObject.getString("modelCategoryCode");
+ String seriesName = jsonObject.getString("seriesName");
+ String address = jsonObject.getString("address");
+ Double lossAmount = jsonObject.getDouble("lossAmount");
+ String opinionDescribe = jsonObject.getString("opinionDescribe");
+ String brandList = jsonObject.getString("brandList");
+ String telephone = jsonObject.getString("telephone");
+ String idDcInsuranceGarageRule = jsonObject.getString("idDcInsuranceGarageRule");
+ String carDealerCode = jsonObject.getString("carDealerCode");
+ String modeRemark = jsonObject.getString("modeRemark");
+ String modelCategoryName = jsonObject.getString("modelCategoryName");
+ String isClaim = jsonObject.getString("isClaim");
+ String vinParseType = jsonObject.getString("vinParseType");
+ String organizeCode = jsonObject.getString("organizeCode");
+ String lossPosition2 = jsonObject.getString("lossPosition2");
+ String buriedType = jsonObject.getString("buriedType");
+ String pushLossInfoId = jsonObject.getString("pushLossInfoId");
+ String pushLossDate = jsonObject.getString("pushLossDate");
+
+
+ Result_.list("定损",lossSeqNo);
+
+
+ Result.add(reportNo, lossSeqNo, taskId, rescueFee, surplusValue, vin,
+ actualValue, verifyReduce, auditType, fitsPriceType, fitLabelType,
+ operatorUm, operatorRole, provinceCode, cityCode, garageCode, garageName,
+ garageType, brandName, manufacturerName, modelCode, modelName, lossPosition,
+ groupName, modelCategoryCode, seriesName, address, lossAmount, opinionDescribe,
+ brandList, telephone, idDcInsuranceGarageRule, carDealerCode, modeRemark, modelCategoryName,
+ isClaim, vinParseType, organizeCode, lossPosition2, buriedType, pushLossInfoId, pushLossDate,lossSeqNo+now);
+ //配件定损
+
+ JSONArray operationRecordListlossFitsItemList = new JSONArray();
+ String idDcInsLossDetaillossFitsItemList = "";
+
+ if (lossFitsItemList != null && lossFitsItemList.size() != 0) {
+ log.info("配件定损bug " + lossSeqNo);
+ PeiJianDingSun_.list("定损",lossSeqNo);
+ for (Object o : lossFitsItemList) {
+ JSONObject test = (JSONObject) o;
+ operationRecordListlossFitsItemList = test.getJSONArray("operationRecordList");
+ Integer audit = test.getInteger("audit");
+ Integer recycle = test.getInteger("recycle");
+ Integer fitsFeeRateType = test.getInteger("fitsFeeRateType");
+ Integer fitsFeeRateTypeEx = test.getInteger("fitsFeeRateTypeEx");
+ String createDate = test.getString("createDate");
+ Double adjustFitsFee = test.getDouble("adjustFitsFee");
+ Double fitsSurveyPrice = test.getDouble("fitsSurveyPrice");
+ Integer fitsCount = test.getInteger("fitsCount");
+ idDcInsLossDetaillossFitsItemList = test.getString("idDcInsLossDetail");
+ Double auditDamagePrice = test.getDouble("auditDamagePrice");
+ Double reduceRemnant = test.getDouble("reduceRemnant");
+ Double verifyReduce2 = test.getDouble("verifyReduce"); //111111111111111111111111
+ String fitsName = test.getString("fitsName");
+ String fitsCode = test.getString("fitsCode");
+ String originalFitsName = test.getString("originalFitsName");
+ String originalFitsCode = test.getString("originalFitsCode");
+ Double originalFitsDiscountPrice = test.getDouble("originalFitsDiscountPrice");
+ Double fitsFeeRate = test.getDouble("fitsFeeRate");
+ String fitLabelCode = test.getString("fitLabelCode");
+ String lossRemark = test.getString("lossRemark");
+ Integer serialNo = test.getInteger("groupSerialNo");
+ String isFitsUnique = test.getString("isFitsUnique");
+ Double upperLimitPrice = test.getDouble("upperLimitPrice");
+ Double fitsFee = test.getDouble("fitsFee");
+ Double fitsDiscount = test.getDouble("fitsDiscount");
+ String fitsReamrk = test.getString("fitsReamrk");
+ String fitsMaterial = test.getString("fitsMaterial");
+ String isAiLossFits = test.getString("isAiLossFits");
+ String isHisFits = test.getString("isHisFits");
+ String isLock = test.getString("isLock");
+ Double extendPrice = test.getDouble("extendPrice");
+ Integer carLimitCount = test.getInteger("carLimitCount");
+ String dataSource = test.getString("dataSource");
+ String insuranceCodes = test.getString("insuranceCodes");
+ String isEnquiry = test.getString("isEnquiry");
+ String isQuotation = test.getString("isQuotation");
+ Double historyLoss4SPrice = test.getDouble("historyLoss4SPrice");
+ Double historyLossMkPrice = test.getDouble("historyLossMkPrice");
+ String isMultipleFitsUnique = test.getString("isMultipleFitsUnique");
+
+
+
+ PeiJianDingSun.add(reportNo, lossSeqNo, taskId, audit, recycle, fitsFeeRateType,
+ fitsFeeRateTypeEx, createDate, adjustFitsFee, fitsSurveyPrice, fitsCount,
+ idDcInsLossDetaillossFitsItemList, auditDamagePrice, reduceRemnant, verifyReduce2, fitsName,
+ fitsCode, originalFitsName, originalFitsCode, originalFitsDiscountPrice,
+ fitsFeeRate, fitLabelCode, lossRemark, serialNo, isFitsUnique, upperLimitPrice,
+ fitsFee, fitsDiscount, fitsReamrk, fitsMaterial, isAiLossFits, isHisFits,
+ isLock, extendPrice, carLimitCount, dataSource, insuranceCodes, isEnquiry,
+ isQuotation, historyLoss4SPrice, historyLossMkPrice, isMultipleFitsUnique,lossSeqNo+now);
+
+
+
+
+ }
+ }
+
+ if (operationRecordListlossFitsItemList != null && operationRecordListlossFitsItemList.size() != 0) {
+ XiuGaiJiLu_.list("定损",lossSeqNo);
+ for (Object o1 : operationRecordListlossFitsItemList) {
+ JSONObject test1 = (JSONObject) o1;
+ String operatorName = test1.getString("operatorName");
+ String operatorUm1 = test1.getString("operatorUm");//111111111111111111
+ String operatorRole1 = test1.getString("operatorRole");//11111111111111111
+ Double fitsSurveyPrice1 = test1.getDouble("fitsSurveyPrice");
+ Double auditPrice = test1.getDouble("auditPrice");
+ Double auditDamagePrice1 = test1.getDouble("auditDamagePrice");
+ Double adjustFitsFee1 = test1.getDouble("adjustFitsFee");
+ String createDate1 = test1.getString("createDate");
+ Integer dataSource1 = test1.getInteger("dataSource");
+ String idDcCarLossRecord = test1.getString("idDcCarLossRecord");
+ Integer fitsCount1 = test1.getInteger("fitsCount");
+ String isDel = test1.getString("isDel");
+ Double reduceRemnant1 = test1.getDouble("reduceRemnant");
+ Double verifyReduce1 = test1.getDouble("verifyReduce"); //1111111111111111
+
+ XiuGaiJiLu.add(reportNo, lossSeqNo, taskId, idDcInsLossDetaillossFitsItemList, operatorName,
+ operatorUm1, operatorRole1, fitsSurveyPrice1, auditPrice,
+ auditDamagePrice1, adjustFitsFee1, createDate1, dataSource1,
+ idDcCarLossRecord, fitsCount1, isDel, reduceRemnant1, verifyReduce1,lossSeqNo+now);
+
+
+ }
+
+
+ }
+
+ JSONArray operationRecordListlossManpowerItemList = new JSONArray();
+ String idDcInsLossDetaillossManpowerItemList = "";
+ //2.2.2.2. 工时定损项目
+ if (lossManpowerItemList != null && lossManpowerItemList.size() != 0) {
+ GongShiDingSun_.list("定损",lossSeqNo);
+ for (Object o : lossManpowerItemList) {
+
+ JSONObject test = (JSONObject) o;
+ operationRecordListlossManpowerItemList = test.getJSONArray("operationRecordList");
+ String createDate = test.getString("createDate");
+ Double manpowerSurveyPrice = test.getDouble("manpowerSurveyPrice");
+ idDcInsLossDetaillossManpowerItemList = test.getString("idDcInsLossDetail");
+ Double auditDamagePrice = test.getDouble("auditDamagePrice");
+ String manpowerItemName = test.getString("manpowerItemName");
+ String manpowerItemCode = test.getString("manpowerItemCode");
+ Double manpowerDiscountPrice = test.getDouble("manpowerDiscountPrice");
+ String remark = test.getString("remark");
+ Double manpowerDiscount = test.getDouble("manpowerDiscount");
+ Double multiaspectRuleDiscount = test.getDouble("multiaspectRuleDiscount");
+ Integer serialNo = test.getInteger("groupSerialNo");
+ String manpowerGroupName = test.getString("manpowerGroupName");
+ String seriesName1 = test.getString("seriesName"); //111111111111111111111111
+ String seriesGroupName = test.getString("seriesGroupName");
+ String schemeName = test.getString("schemeName");
+ String isAiLossManpower = test.getString("isAiLossManpower");
+ String isHisManpower = test.getString("isHisManpower");
+ String isLock = test.getString("isLock");
+ String insuranceCodes = test.getString("insuranceCodes");
+
+
+ GongShiDingSun.add(reportNo, lossSeqNo, taskId, createDate, manpowerSurveyPrice, idDcInsLossDetaillossManpowerItemList,
+ auditDamagePrice, manpowerItemName, manpowerItemCode, manpowerDiscountPrice,
+ remark, manpowerDiscount, multiaspectRuleDiscount, serialNo, manpowerGroupName,
+ seriesName1, seriesGroupName, schemeName, isAiLossManpower, isHisManpower,
+ isLock, insuranceCodes,lossSeqNo+now);
+
+
+ }
+
+
+ }
+
+ if (operationRecordListlossManpowerItemList != null && operationRecordListlossManpowerItemList.size() != 0) {
+ XiuGaiJiLu_.list("定损",lossSeqNo);
+ for (Object o1 : operationRecordListlossManpowerItemList) {
+ JSONObject test1 = (JSONObject) o1;
+ String operatorName = test1.getString("operatorName");
+ String operatorUm1 = test1.getString("operatorUm");//111111111111111111
+ String operatorRole1 = test1.getString("operatorRole");//11111111111111111
+ Double fitsSurveyPrice1 = test1.getDouble("fitsSurveyPrice");
+ Double auditPrice = test1.getDouble("auditPrice");
+ Double auditDamagePrice1 = test1.getDouble("auditDamagePrice");
+ Double adjustFitsFee1 = test1.getDouble("adjustFitsFee");
+ String createDate1 = test1.getString("createDate");
+ Integer dataSource1 = test1.getInteger("dataSource");
+ String idDcCarLossRecord = test1.getString("idDcCarLossRecord");
+ Integer fitsCount1 = test1.getInteger("fitsCount");
+ String isDel = test1.getString("isDel");
+ Double reduceRemnant1 = test1.getDouble("reduceRemnant");
+ Double verifyReduce1 = test1.getDouble("verifyReduce"); //1111111111111111
+
+
+ XiuGaiJiLu.add(reportNo, lossSeqNo, taskId, idDcInsLossDetaillossManpowerItemList, operatorName,
+ operatorUm1, operatorRole1, fitsSurveyPrice1, auditPrice,
+ auditDamagePrice1, adjustFitsFee1, createDate1, dataSource1,
+ idDcCarLossRecord, fitsCount1, isDel, reduceRemnant1, verifyReduce1,lossSeqNo+now);
+
+
+ }
+
+
+ }
+ // 外修定损
+
+ JSONArray operationRecordListlossOuterFitsItemList = null;
+ String idDcInsLossDetaillossOuterFitsItemList = "";
+
+ if (lossOuterFitsItemList != null && lossOuterFitsItemList.size() != 0) {
+ WaiXiuXiangMuDingSun_.list("定损",lossSeqNo);
+ for (Object o : lossOuterFitsItemList) {
+ JSONObject test = (JSONObject) o;
+ operationRecordListlossOuterFitsItemList = test.getJSONArray("operationRecordList");
+ String outerGarage = test.getString("outerGarage");
+ String createDate = test.getString("createDate");
+ Double fitsSurveyPrice = test.getDouble("fitsSurveyPrice");
+ idDcInsLossDetaillossOuterFitsItemList = test.getString("idDcInsLossDetail");
+ Double auditDamagePrice = test.getDouble("auditDamagePrice");
+ Integer serialNo = test.getInteger("groupSerialNo");
+ String fitsName = test.getString("fitsName");
+ String fitsCode = test.getString("fitsCode");
+ String fitsReamrk = test.getString("fitsReamrk");
+ String fitsMaterial = test.getString("fitsMaterial");
+ String fitLabelCode = test.getString("fitLabelCode");
+ String lossRemark = test.getString("lossRemark");
+ Integer fitsFeeRateType = test.getInteger("fitsFeeRateType");
+ Double originalFitsDiscountPrice = test.getDouble("originalFitsDiscountPrice");
+ String originalFitsName = test.getString("originalFitsName");
+ String originalFitsCode = test.getString("originalFitsCode");
+ String isHisOuterFits = test.getString("isHisOuterFits");
+ String isFitsUnique = test.getString("isFitsUnique");
+ Double fitsDiscount = test.getDouble("fitsDiscount");
+ Double fitsFee = test.getDouble("fitsFee");
+ Double fitsFeeRate = test.getDouble("fitsFeeRate");
+ String isLock = test.getString("isLock");
+ Double extendPrice = test.getDouble("extendPrice");
+ Integer carLimitCount = test.getInteger("carLimitCount");
+ String dataSource = test.getString("dataSource");
+ String insuranceCodes = test.getString("insuranceCodes");
+ Double lossCompanyAmount = test.getDouble("lossCompanyAmount");
+
+ WaiXiuXiangMuDingSun.add(reportNo, lossSeqNo, taskId, outerGarage, createDate, fitsSurveyPrice,
+ idDcInsLossDetaillossOuterFitsItemList, auditDamagePrice, serialNo, fitsName, fitsCode, fitsReamrk,
+ fitsMaterial, fitLabelCode, lossRemark, fitsFeeRateType, originalFitsDiscountPrice,
+ originalFitsName, originalFitsCode, isHisOuterFits, isFitsUnique, fitsDiscount,
+ fitsFee, fitsFeeRate, isLock, extendPrice, carLimitCount, dataSource,
+ insuranceCodes, lossCompanyAmount,lossSeqNo+now);
+
+ }
+
+
+ }
+
+ if (operationRecordListlossOuterFitsItemList != null && operationRecordListlossOuterFitsItemList.size() != 0) {
+ XiuGaiJiLu_.list("定损",lossSeqNo);
+ for (Object o1 : operationRecordListlossOuterFitsItemList) {
+ JSONObject test1 = (JSONObject) o1;
+ String operatorName = test1.getString("operatorName");
+ String operatorUm1 = test1.getString("operatorUm");//111111111111111111
+ String operatorRole1 = test1.getString("operatorRole");//11111111111111111
+ Double fitsSurveyPrice1 = test1.getDouble("fitsSurveyPrice");
+ Double auditPrice = test1.getDouble("auditPrice");
+ Double auditDamagePrice1 = test1.getDouble("auditDamagePrice");
+ Double adjustFitsFee1 = test1.getDouble("adjustFitsFee");
+ String createDate1 = test1.getString("createDate");
+ Integer dataSource1 = test1.getInteger("dataSource");
+ String idDcCarLossRecord = test1.getString("idDcCarLossRecord");
+ Integer fitsCount1 = test1.getInteger("fitsCount");
+ String isDel = test1.getString("isDel");
+ Double reduceRemnant1 = test1.getDouble("reduceRemnant");
+ Double verifyReduce1 = test1.getDouble("verifyReduce"); //1111111111111111
+
+
+ XiuGaiJiLu.add(reportNo, lossSeqNo, taskId, idDcInsLossDetaillossOuterFitsItemList, operatorName,
+ operatorUm1, operatorRole1, fitsSurveyPrice1, auditPrice,
+ auditDamagePrice1, adjustFitsFee1, createDate1, dataSource1,
+ idDcCarLossRecord, fitsCount1, isDel, reduceRemnant1, verifyReduce1,lossSeqNo+now);
+
+
+ }
+
+
+ }
+
+ //2.2.2.5. 沟通信息communicationList
+ if (communicationList != null && communicationList.size() != 0) {
+ GouTongXinXi_.list("定损",lossSeqNo);
+ for (Object o : communicationList) {
+ JSONObject test = (JSONObject) o;
+
+ String operatorName = test.getString("operatorName");
+ String operatorUm1 = test.getString("operatorUm");// 111111111
+ String operatorRole1 = test.getString("operatorRole"); //111111111111
+ String createDate = test.getString("createDate");
+ String opinion = test.getString("opinion");
+ String opinionDescribe1 = test.getString("opinionDescribe");//111111111111111
+ Integer dataSource = test.getInteger("dataSource");
+ String idDcCommunication = test.getString("idDcCommunication");
+ String os = test.getString("os");
+
+ GouTongXinXi.add(reportNo, lossSeqNo, taskId, operatorName, operatorUm1,
+ operatorRole1, createDate, opinion, opinionDescribe1, dataSource,
+ idDcCommunication, os,lossSeqNo+now);
+ }
+
+
+ }
+
+ //2.2.2.7. 施救费rescueFeeInfo
+ if (rescueFeeInfo != null) {
+ Double trailerStartingFare = rescueFeeInfo.getDouble("trailerStartingFare");
+ Double trailerMileagePrice = rescueFeeInfo.getDouble("trailerMileagePrice");
+ Double trailerOverMileage = rescueFeeInfo.getDouble("trailerOverMileage");
+ Double craneStartingFare = rescueFeeInfo.getDouble("craneStartingFare");
+ Double cranePrice = rescueFeeInfo.getDouble("cranePrice");
+ Double craneWorkTime = rescueFeeInfo.getDouble("craneWorkTime");
+ Double otherFee = rescueFeeInfo.getDouble("otherFee");
+ String remark = rescueFeeInfo.getString("remark");
+ String insuranceCodes = rescueFeeInfo.getString("insuranceCodes");
+ ShiJiuFei_.list("定损",lossSeqNo);
+
+ ShiJiuFei.add(reportNo, lossSeqNo, taskId, trailerStartingFare,
+ trailerMileagePrice, trailerOverMileage, craneStartingFare,
+ cranePrice, craneWorkTime, otherFee, remark,
+ insuranceCodes,lossSeqNo+now);
+ }
+
+
+ Integer fxxx = 1;
+ //2.2.2.9. 风险信息列表、锁死规则列表 riskList
+ if (riskList != null && riskList.size() != 0) {
+ FengXianXinXi_.list("定损",lossSeqNo);
+ for (Object o : riskList) {
+ JSONObject test = (JSONObject) o;
+
+ String ruleName = test.getString("ruleName");
+ Double overAmount = test.getDouble("overAmount");
+ String lossName = test.getString("lossName");
+ String requestId = test.getString("requestId");
+ String riskClass = test.getString("riskClass");
+ String riskCategory = test.getString("riskCategory");
+ String riskClassCode = test.getString("riskClassCode");
+ String riskCategoryCode = test.getString("riskCategoryCode");
+
+ FengXianXinXi.add(reportNo, lossSeqNo, taskId, ruleName, overAmount, lossName,
+ requestId, riskClass, riskCategory, riskClassCode, riskCategoryCode,fxxx,lossSeqNo+now);
+
+ fxxx += 1;
+
+ }
+
+
+ }
+ Integer wxdd = 1;
+ //2.2.2.10. 外修订单信息 repairOutsideFitList
+ if (repairOutsideFitList != null && repairOutsideFitList.size() != 0) {
+ WaiXiuDingDanXinXi_.list("定损",lossSeqNo);
+ for (Object o : repairOutsideFitList) {
+ JSONObject test = (JSONObject) o;
+
+ String idClmOuterRepairDetail = test.getString("idClmOuterRepairDetail");
+ String fitsName = test.getString("fitsName");
+ String fitsCode = test.getString("fitsCode");
+ String lossCompanyAmount = test.getString("lossCompanyAmount");
+ String lossAmountInsurance = test.getString("lossAmountInsurance");
+ String remark1 = test.getString("remark"); //11111111111111
+ String status = test.getString("status");
+ String idRepairOutsideInfo = test.getString("idRepairOutsideInfo");
+ String garageName1 = test.getString("garageName"); //11111111111111
+ String lossAmountReference = test.getString("lossAmountReference");
+
+ WaiXiuDingDanXinXi.add(reportNo, lossSeqNo, taskId, idClmOuterRepairDetail, fitsName,
+ fitsCode, lossCompanyAmount, lossAmountInsurance, remark1,
+ status, idRepairOutsideInfo, garageName1, lossAmountReference,wxdd,lossSeqNo+now);
+ wxdd += 1;
+
+
+ }
+
+
+ }
+
+
+ }
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ });
+
+
+
+
+ String skey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6nzuQzigcBA7vy38odxTg+7Ez2Ah+WEz0FktbJhB9ZNQks001Y1Qf3gQr43V/eXefpOOToYYn7uXZ7PXoF4pSJSHRtkGag+8DL8WXSsPRe5ABTuSbic340oEZ0SzZEDVKqUlTAjKuCd/41sjVdbc2PHhaLH992RQOtzb40Bs/srJR2gX+qwJQFVtRfQEpsRqwpYtB7ESw7k6Ds9xpvWtzClyTL44xUL94pr0k9be2SXfedP5jgJzO2WQCYFbRTn+nP2gAqxXq36zaGUAo7J61s1h7G3b1mE1yc62WDSJfL3nBOoIOYlzbm7TuCYn79L+X0E8311w1cTqsYhAvjZEjAgMBAAECggEAHGHBHlmsEe6wEtoBAbdyjnDY10igqg5lza1iUn9sfJWMCfTW5iqwDZSnT8FtCjD/92CNV9N14rbbcBQwpdaGq82H4iv0uDoebH6kb0jolQBUu04zSFBh6dih17pPNsfXQv6R7zTjXkKUNHT94DDh5za1GwmvbgVInqBQlPCZZEtXX9xl/WBjkHo0reLru4H9rbrE0lI2si3cW7raxHRm5JlgLr0Gpigq3wXZ8dBYIXHmI2ru0DR4B0p2+Rlve4PvUx/7kYfp0QMed4Dvb3wXc+/UJNl+RvAebMi3sPB3CYqFbgU9byTvcmBkhcvuhJbMKpRl1Eg3vpYUPGaClNOXwQKBgQDplsLYs237nH3VRtbCsDPA8XRB06xmH/MNUuKSP5WNcCQZQXW9+YnZj5JgeV/q3WHCRPBxX4zuovpLDigf0Pc7+1HKvCoTLuF4xZsxiKaH3tANOzoOPnQEFcCFVshU9LAJg98XGFOtUdX8hvwKF2mssiXwSqF+6UCATGh+XEPmwwKBgQDMhuep+Tebs8cP46uSEUSbr9JQ7aUeR7bXowg+CJTWt4H+yhRKcmuC0FOZROpu0h+iw73fkA4UCxXGB3JtYJIp4e9yITNh5faqXjkYWYzTnyULe4ejNtYRMSkW5J+MGXlGXA8SL0yYskgFjgE9aD8hWRQNl1hVLGWrO/irz0bGIQKBgQCYvdJvLPUQAEZv/cBU0i8lTT2+BZHHvcCKx9YL17QNJnUUZq99J/0x3CXVG8jSpSxVggrPt7FKIhwUlA88rsHb4Pyc2umQXall9aEDhN2QHuxgmofd5IysVyTqi9K3asDpl+d7DJc60DZiyElqt+CL4nnYZJSxjgh1XIE/j0l/TQKBgCDZcg/sxS+u2kQFDyNwvpI61Q7GfIS2g/lyZ/p+qlkqNCjWEBg89GOYTjUJypVuDkK4KaDkpD434ZFi1NAYeKFddnXgOz54DvwiEg2FJIdAwlRrzMc8IXm1aaIRqkZ4OPBCDPGgwy6rQ8IQosZYHfufMQdVzYwwi0vLYA9IRVfBAoGBAIdl1XjIBd7mfpRMCI64yC5T9ITNbJlWcgvhd9VIHaoWSzX9xLKi19UNPQ6XY1UyfXfMCTQOv7LRJD3gTusQgHIArBaqXLXCoBJGf5/Zg8ywBfw1YGQPLiBBXuCaHdhzhVBAQwVVqjOkLZexL+QSBQ2p+HLNLp/ZJvJWitKdZukF";
+
+ JSONObject jsonObject = new JSONObject();
+ String jsonString = jsonObject.toJSONString();
+ String s = Base64.encodeBase64String(jsonString.getBytes("UTF-8"));
+
+ String signatureData = YiZhangUtil.signatureData("200"+ "请求成功" + Base64.encodeBase64String(jsonString.getBytes("UTF-8")), skey);
+
+
+ JSONObject object = new JSONObject();
+ object.put("code", 200);
+ object.put("msg", "请求成功");
+ object.put("respData" , s);
+ object.put("signature" , signatureData);
+ return object;
+
+ }
+}
\ No newline at end of file
diff --git a/src/main/java/com/example/sso/newcontroller/PushDataQuoteGuide.java b/src/main/java/com/example/sso/newcontroller/PushDataQuoteGuide.java
new file mode 100644
index 0000000..144743e
--- /dev/null
+++ b/src/main/java/com/example/sso/newcontroller/PushDataQuoteGuide.java
@@ -0,0 +1,496 @@
+package com.example.sso.newcontroller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONArray;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.dao.*;
+import com.example.sso.util.TimeUtil;
+import com.example.sso.util.YiZhangUtil;
+import lombok.extern.slf4j.Slf4j;
+import org.apache.commons.codec.binary.Base64;
+
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
+
+
+import java.util.concurrent.CompletableFuture;
+import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
+
+import static com.example.sso.util.YiZhangUtil.verifySignature;
+
+@RestController
+@Slf4j
+
+public class PushDataQuoteGuide {
+
+
+ @PostMapping("/api/quoteGuide/pushData")
+ public JSONObject pushdata(@RequestBody JSONObject data) throws Exception {
+ String now = TimeUtil.now();
+ log.info("我是quoteGuide参数 " + data.toJSONString());
+ String S = data.toJSONString();
+
+
+ // 提交任务到线程池
+
+ // 在线程池中处理业务逻辑
+ //String S = "{\"reqData\":\"eyJiYXNlSW5mbyI6eyJyZXBvcnRObyI6IjEyMjIyMjIyMjIiLCJpbnN1cmFuY2VDb2RlTGlzdCI6IjEyMzQ1NSwzMzQ1NjQiLCJ2aW4iOiJMVk4xMjMxMjMxMiJ9LCJhZGRyZXNzIjoi5rWL6K+V5Zyw5Z2AIiwiY291bnR5Q29kZSI6IjEwMDExMCIsInByZUNoZWNrU3RhdGUiOiIyIn0=\",\"siteCode\":\"YJIC\",\"signature\":\"YVIxcXVqMkwzQTBaQ285em9wQy8yYVZmWVc2SEVjVnpVNmttQzdmVlFhY0I5U3ZvcnNnNkZxbEVRTzdnRDh6T05oOHkzZ2pGdUQxSkJPd2NZM2Y5Z05uWVBleElYRWZNV3FudXRCQ1RTaU5BSnNVWGZzb0thZUdtQ2RsdWhycXJMK0ZWWGkxblN6QlQ4a3VsZXBKa2NYcGlTUE1SdHlKYVRlNTAzN2FrT3JXUDFMTGYweGVsWitPV1ppOU5RTU5ualFvYTlqZGU2RzRXM1d5RE9qNnI4YzVhUnJvS2piRVJ2bFRDSzR6ZGRTL2tXaGU1OGRwdTllQmJNbzVvTVVPYUcvZjJLVjJTUXRwMzd0NkJla0t4MTY2TFkvN0V5dkM0azFRKzAvdkxDWEpqUVM1SlllbG5tckhjZnF2UVpCb0JEN0I5YzBFcWZOcjZ0K01uMDFtbFJRPT0=\"}";
+ String KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlvUJDbPFcmSznhckyikj16HCFeHHmjPfxxdUczC5kY6CuXkOmt/YOKmOWWZvLSrEMwBL8ljR7Vgq9xnKUqMXybWHUC2lWmoqhQhC/f4wndvcvzWeHnofgUByoavYQneEiNUfcMfQ44DvWSIU6hyzh+mHA1pwDKiHBA4XiAdFJpFoitVo97S3BJ915HAiH9gTDSC4Jy5f59MRqDgNaV5ooxfr+g5GWo2TCEsDYGTCj7OnoaZcK21MzlhfLWgIGpWvoi69i3AbdBV+vlNHgH23PCvEEcp7n7sPZ0lLFe/d6McdV0BqTbw/+bEP2QjCdhll8hVazECnMzItM6GDVLHYFQIDAQAB";
+
+
+ JSONObject jsonObject1 = JSON.parseObject(S);
+ String signature = jsonObject1.getString("signature");
+ String respData = jsonObject1.getString("reqData");
+ String siteCode = jsonObject1.getString("siteCode");
+
+ CompletableFuture.runAsync(() -> {
+ boolean b = false;
+ try {
+ b = verifySignature(siteCode + respData, KEY, signature);
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
+ if (b == true) {
+ byte[] bytes = Base64.decodeBase64(respData);
+ String result = new String(bytes);
+ log.info("我是转换后quoteGuide参数 " + result);
+
+ JSONObject jsonObject = JSON.parseObject(result);
+
+ //2.4.2.1. 配件定损项目lossFitsItemList
+ JSONArray lossFitsItemList = jsonObject.getJSONArray("lossFitsItemList");
+
+ //2.4.2.1.2.4.2.2. 工时定损项目lossManpowerItemList
+ JSONArray lossManpowerItemList = jsonObject.getJSONArray("lossManpowerItemList");
+
+ //22.4.2.3. 外修定损项目lossOuterFitsItemList
+ JSONArray lossOuterFitsItemList = jsonObject.getJSONArray("lossOuterFitsItemList");
+
+ // 2.2.2.5. 沟通信息communicationList
+ JSONArray communicationList = jsonObject.getJSONArray("communicationList");
+
+ //2.2.2.7. 施救费rescueFeeInfo
+ JSONObject rescueFeeInfo = jsonObject.getJSONObject("rescueFeeInfo");
+
+ // 2.2.2.10. 外修订单信息 repairOutsideFitList
+ JSONArray repairOutsideFitList = jsonObject.getJSONArray("repairOutsideFitList");
+
+
+ String data_sources1 = "";
+
+
+ String reportNo = jsonObject.getString("reportNo");
+ String lossSeqNo = jsonObject.getString("lossSeqNo");
+ String taskId = jsonObject.getString("taskId");
+ Double rescueFee = jsonObject.getDouble("rescueFee");
+ Double verifyReduce = jsonObject.getDouble("verifyReduce");
+ Double actualValue = jsonObject.getDouble("actualValue");
+ Double surplusValue = jsonObject.getDouble("surplusValue");
+ String auditType = jsonObject.getString("auditType");
+ String operatorRole = jsonObject.getString("operatorRole");
+ String operatorUm = jsonObject.getString("operatorUm");
+ String opinionDescribe = jsonObject.getString("opinionDescribe");
+ Double guideAmount = jsonObject.getDouble("guideAmount");
+ String lossPosition2 = jsonObject.getString("lossPosition2");
+ String pushQuoteInfoId = jsonObject.getString("pushQuoteInfoId");
+ String pushQuoteDate = jsonObject.getString("pushQuoteDate");
+ if (operatorRole.equals("3")) {
+ data_sources1 = "核价";
+ }
+ if (operatorRole.equals("2")) {
+ data_sources1 = "核损";
+ }
+ HeJiaHeSunJieGuo_.list(data_sources1,lossSeqNo);
+
+ HeJiaHeSunJieGuo.add(reportNo, lossSeqNo, taskId, rescueFee, verifyReduce,
+ actualValue, surplusValue, auditType, operatorRole,
+ operatorUm, opinionDescribe, guideAmount, lossPosition2,
+ pushQuoteInfoId, pushQuoteDate,data_sources1,lossSeqNo+now);
+
+ //配件定损项目lossFitsItemList
+ JSONArray operationRecordList = null;
+ String idDcInsLossDetaillossFitsItemList = "";
+ if (lossFitsItemList != null && lossFitsItemList.size() != 0) {
+ PeiJianDingSunTwoFour_.list(data_sources1,lossSeqNo);
+
+ for (Object o : lossFitsItemList) {
+ JSONObject test = (JSONObject) o;
+ operationRecordList = test.getJSONArray("operationRecordList");
+ Integer audit = test.getInteger("audit");
+ Integer recycle = test.getInteger("recycle");
+ Integer fitsFeeRateType = test.getInteger("fitsFeeRateType");
+ Integer fitsFeeRateTypeEx = test.getInteger("fitsFeeRateTypeEx");
+ String createDate = test.getString("createDate");
+ Double adjustFitsFee = test.getDouble("adjustFitsFee");
+ Double fitsSurveyPrice = test.getDouble("fitsSurveyPrice");
+ Integer fitsCount = test.getInteger("fitsCount");
+ idDcInsLossDetaillossFitsItemList = test.getString("idDcInsLossDetail");
+ Double auditDamagePrice = test.getDouble("auditDamagePrice");
+ Double reduceRemnant = test.getDouble("reduceRemnant");
+ Double verifyReduce2 = test.getDouble("verifyReduce"); //111111111111111111111111
+ String fitsName = test.getString("fitsName");
+ String fitsCode = test.getString("fitsCode");
+ String originalFitsName = test.getString("originalFitsName");
+ String originalFitsCode = test.getString("originalFitsCode");
+ Double originalFitsDiscountPrice = test.getDouble("originalFitsDiscountPrice");
+ Double fitsFeeRate = test.getDouble("fitsFeeRate");
+ String fitLabelCode = test.getString("fitLabelCode");
+ String lossRemark = test.getString("lossRemark");
+ Integer serialNo = test.getInteger("groupSerialNo");
+ String isFitsUnique = test.getString("isFitsUnique");
+ Double upperLimitPrice = test.getDouble("upperLimitPrice");
+ Double fitsFee = test.getDouble("fitsFee");
+ Double fitsDiscount = test.getDouble("fitsDiscount");
+ String fitsReamrk = test.getString("fitsReamrk");
+ String fitsMaterial = test.getString("fitsMaterial");
+ String isAiLossFits = test.getString("isAiLossFits");
+ String isHisFits = test.getString("isHisFits");
+ String isLock = test.getString("isLock");
+ Double extendPrice = test.getDouble("extendPrice");
+ Integer carLimitCount = test.getInteger("carLimitCount");
+ String dataSource = test.getString("dataSource");
+ String insuranceCodes = test.getString("insuranceCodes");
+ String isMultipleFitsUnique = test.getString("isMultipleFitsUnique");
+ Double auditPrice = test.getDouble("auditPrice");
+
+
+ PeiJianDingSunTwoFour.add(reportNo, lossSeqNo, taskId, audit, recycle, fitsFeeRateType,
+ fitsFeeRateTypeEx, createDate, adjustFitsFee, fitsSurveyPrice, fitsCount,
+ idDcInsLossDetaillossFitsItemList, auditDamagePrice, reduceRemnant, verifyReduce2, fitsName,
+ fitsCode, originalFitsName, originalFitsCode, originalFitsDiscountPrice,
+ fitsFeeRate, fitLabelCode, lossRemark, serialNo, isFitsUnique, upperLimitPrice,
+ fitsFee, fitsDiscount, fitsReamrk, fitsMaterial, isAiLossFits, isHisFits,
+ isLock, extendPrice, carLimitCount, dataSource, insuranceCodes,
+ isMultipleFitsUnique,data_sources1,auditPrice,lossSeqNo+now);
+
+
+
+
+
+
+
+
+
+
+ }
+ }
+
+ if (operationRecordList != null && operationRecordList.size() != 0) {
+ XiuGaiJiLuTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o1 : operationRecordList) {
+ JSONObject test1 = (JSONObject) o1;
+ String orgName = test1.getString("orgName");
+ String operatorName = test1.getString("operatorName");
+ String operatorUm1 = test1.getString("operatorUm");//111111111111111111
+ String operatorRole1 = test1.getString("operatorRole");//11111111111111111
+ Double fitsSurveyPrice1 = test1.getDouble("fitsSurveyPrice");
+ Double auditPrice1 = test1.getDouble("auditPrice");
+ Double auditDamagePrice1 = test1.getDouble("auditDamagePrice");
+ Double adjustFitsFee1 = test1.getDouble("adjustFitsFee");
+ String createDate1 = test1.getString("createDate");
+ Integer dataSource1 = test1.getInteger("dataSource");
+ String idDcCarLossRecord = test1.getString("idDcCarLossRecord");
+ Integer fitsCount1 = test1.getInteger("fitsCount");
+ String isDel = test1.getString("isDel");
+ Double reduceRemnant1 = test1.getDouble("reduceRemnant");
+ Double verifyReduce1 = test1.getDouble("verifyReduce"); //1111111111111111
+
+
+ XiuGaiJiLuTwoFour.add(reportNo, lossSeqNo, taskId, idDcInsLossDetaillossFitsItemList, operatorName,
+ operatorUm1, operatorRole1, fitsSurveyPrice1, auditPrice1,
+ auditDamagePrice1, adjustFitsFee1, createDate1, dataSource1,
+ idDcCarLossRecord, fitsCount1, isDel, reduceRemnant1, verifyReduce1, orgName,data_sources1,lossSeqNo+now);
+
+
+ }
+
+
+ }
+ JSONArray operationRecordListlossManpowerItemList = null;
+ String idDcInsLossDetaillossManpowerItemList = "";
+ //2.2.2.2. 工时定损项目
+ if (lossManpowerItemList != null && lossManpowerItemList.size() != 0) {
+ GongShiDingSunTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o : lossManpowerItemList) {
+ JSONObject test = (JSONObject) o;
+ operationRecordListlossManpowerItemList = test.getJSONArray("operationRecordList");
+ String createDate = test.getString("createDate");
+ Double manpowerSurveyPrice = test.getDouble("manpowerSurveyPrice");
+ idDcInsLossDetaillossManpowerItemList = test.getString("idDcInsLossDetail");
+ Double auditDamagePrice = test.getDouble("auditDamagePrice");
+ String manpowerItemName = test.getString("manpowerItemName");
+ String manpowerItemCode = test.getString("manpowerItemCode");
+ Double manpowerDiscountPrice = test.getDouble("manpowerDiscountPrice");
+ String remark = test.getString("remark");
+ Double manpowerDiscount = test.getDouble("manpowerDiscount");
+ Double multiaspectRuleDiscount = test.getDouble("multiaspectRuleDiscount");
+ Integer serialNo = test.getInteger("groupSerialNo");
+ String manpowerGroupName = test.getString("manpowerGroupName");
+ String seriesName1 = test.getString("seriesName"); //111111111111111111111111
+ String seriesGroupName = test.getString("seriesGroupName");
+ String schemeName = test.getString("schemeName");
+ String isAiLossManpower = test.getString("isAiLossManpower");
+ String isHisManpower = test.getString("isHisManpower");
+ String isLock = test.getString("isLock");
+ String insuranceCodes = test.getString("insuranceCodes");
+
+
+ GongShiDingSunTwoFour.add(reportNo, lossSeqNo, taskId, createDate, manpowerSurveyPrice, idDcInsLossDetaillossManpowerItemList,
+ auditDamagePrice, manpowerItemName, manpowerItemCode, manpowerDiscountPrice,
+ remark, manpowerDiscount, multiaspectRuleDiscount, serialNo, manpowerGroupName,
+ seriesName1, seriesGroupName, schemeName, isAiLossManpower, isHisManpower,
+ isLock, insuranceCodes,data_sources1,lossSeqNo+now);
+
+
+ }
+
+
+ }
+
+ if (operationRecordListlossManpowerItemList != null && operationRecordListlossManpowerItemList.size() != 0) {
+ XiuGaiJiLuTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o1 : operationRecordListlossManpowerItemList) {
+ JSONObject test1 = (JSONObject) o1;
+ String operatorName = test1.getString("operatorName");
+ String orgName = test1.getString("orgName");
+ String operatorUm1 = test1.getString("operatorUm");//111111111111111111
+ String operatorRole1 = test1.getString("operatorRole");//11111111111111111
+ Double fitsSurveyPrice1 = test1.getDouble("fitsSurveyPrice");
+ Double auditPrice = test1.getDouble("auditPrice");
+ Double auditDamagePrice1 = test1.getDouble("auditDamagePrice");
+ Double adjustFitsFee1 = test1.getDouble("adjustFitsFee");
+ String createDate1 = test1.getString("createDate");
+ Integer dataSource1 = test1.getInteger("dataSource");
+ String idDcCarLossRecord = test1.getString("idDcCarLossRecord");
+ Integer fitsCount1 = test1.getInteger("fitsCount");
+ String isDel = test1.getString("isDel");
+ Double reduceRemnant1 = test1.getDouble("reduceRemnant");
+ Double verifyReduce1 = test1.getDouble("verifyReduce"); //1111111111111111
+
+
+ XiuGaiJiLuTwoFour.add(reportNo, lossSeqNo, taskId, idDcInsLossDetaillossManpowerItemList, operatorName,
+ operatorUm1, operatorRole1, fitsSurveyPrice1, auditPrice,
+ auditDamagePrice1, adjustFitsFee1, createDate1, dataSource1,
+ idDcCarLossRecord, fitsCount1, isDel, reduceRemnant1, verifyReduce1, orgName,data_sources1,lossSeqNo+now);
+
+
+ }
+
+
+ }
+
+ // 外修定损
+
+ JSONArray operationRecordListlossOuterFitsItemList = null;
+ String idDcInsLossDetaillossOuterFitsItemList = "";
+ if (lossOuterFitsItemList != null && lossOuterFitsItemList.size() != 0) {
+ WaiXiuXiangMuDingSunTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o : lossOuterFitsItemList) {
+ JSONObject test = (JSONObject) o;
+ operationRecordListlossOuterFitsItemList = test.getJSONArray("operationRecordList");
+ String outerGarage = test.getString("outerGarage");
+ String createDate = test.getString("createDate");
+ Double fitsSurveyPrice = test.getDouble("fitsSurveyPrice");
+ idDcInsLossDetaillossOuterFitsItemList = test.getString("idDcInsLossDetail");
+ Double auditDamagePrice = test.getDouble("auditDamagePrice");
+ Integer serialNo = test.getInteger("groupSerialNo");
+ String fitsName = test.getString("fitsName");
+ String fitsCode = test.getString("fitsCode");
+ String fitsReamrk = test.getString("fitsReamrk");
+ String fitsMaterial = test.getString("fitsMaterial");
+ String fitLabelCode = test.getString("fitLabelCode");
+ String lossRemark = test.getString("lossRemark");
+ Integer fitsFeeRateType = test.getInteger("fitsFeeRateType");
+ Double originalFitsDiscountPrice = test.getDouble("originalFitsDiscountPrice");
+ String originalFitsName = test.getString("originalFitsName");
+ String originalFitsCode = test.getString("originalFitsCode");
+ String isHisOuterFits = test.getString("isHisOuterFits");
+ String isFitsUnique = test.getString("isFitsUnique");
+ Double fitsDiscount = test.getDouble("fitsDiscount");
+ Double fitsFee = test.getDouble("fitsFee");
+ Double fitsFeeRate = test.getDouble("fitsFeeRate");
+ String isLock = test.getString("isLock");
+ Double extendPrice = test.getDouble("extendPrice");
+ Integer carLimitCount = test.getInteger("carLimitCount");
+ String dataSource = test.getString("dataSource");
+ String insuranceCodes = test.getString("insuranceCodes");
+ Double lossCompanyAmount = test.getDouble("lossCompanyAmount");
+
+ WaiXiuXiangMuDingSunTwoFour.add(reportNo, lossSeqNo, taskId, outerGarage, createDate, fitsSurveyPrice,
+ idDcInsLossDetaillossOuterFitsItemList, auditDamagePrice, serialNo, fitsName, fitsCode, fitsReamrk,
+ fitsMaterial, fitLabelCode, lossRemark, fitsFeeRateType, originalFitsDiscountPrice,
+ originalFitsName, originalFitsCode, isHisOuterFits, isFitsUnique, fitsDiscount,
+ fitsFee, fitsFeeRate, isLock, extendPrice, carLimitCount, dataSource,
+ insuranceCodes, lossCompanyAmount,data_sources1,lossSeqNo+now);
+
+ }
+
+
+ }
+
+ if (operationRecordListlossOuterFitsItemList != null && operationRecordListlossOuterFitsItemList.size() != 0) {
+ XiuGaiJiLuTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o1 : operationRecordListlossOuterFitsItemList) {
+ JSONObject test1 = (JSONObject) o1;
+ String orgName = test1.getString("orgName");
+ String operatorName = test1.getString("operatorName");
+ String operatorUm1 = test1.getString("operatorUm");//111111111111111111
+ String operatorRole1 = test1.getString("operatorRole");//11111111111111111
+ Double fitsSurveyPrice1 = test1.getDouble("fitsSurveyPrice");
+ Double auditPrice = test1.getDouble("auditPrice");
+ Double auditDamagePrice1 = test1.getDouble("auditDamagePrice");
+ Double adjustFitsFee1 = test1.getDouble("adjustFitsFee");
+ String createDate1 = test1.getString("createDate");
+ Integer dataSource1 = test1.getInteger("dataSource");
+ String idDcCarLossRecord = test1.getString("idDcCarLossRecord");
+ Integer fitsCount1 = test1.getInteger("fitsCount");
+ String isDel = test1.getString("isDel");
+ Double reduceRemnant1 = test1.getDouble("reduceRemnant");
+ Double verifyReduce1 = test1.getDouble("verifyReduce"); //1111111111111111
+
+
+ XiuGaiJiLuTwoFour.add(reportNo, lossSeqNo, taskId, idDcInsLossDetaillossOuterFitsItemList, operatorName,
+ operatorUm1, operatorRole1, fitsSurveyPrice1, auditPrice,
+ auditDamagePrice1, adjustFitsFee1, createDate1, dataSource1,
+ idDcCarLossRecord, fitsCount1, isDel, reduceRemnant1, verifyReduce1, orgName,data_sources1,lossSeqNo+now);
+
+
+ }
+
+
+ }
+
+ //2.2.2.5. 沟通信息communicationList
+ if (communicationList != null && communicationList.size() != 0) {
+ GouTongJiLuTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o : communicationList) {
+ JSONObject test = (JSONObject) o;
+
+ String operatorName = test.getString("operatorName");
+ String operatorUm1 = test.getString("operatorUm");// 111111111
+ String operatorRole1 = test.getString("operatorRole"); //111111111111
+ String createDate = test.getString("createDate");
+ String opinion = test.getString("opinion");
+ String opinionDescribe1 = test.getString("opinionDescribe");//111111111111111
+ Integer dataSource = test.getInteger("dataSource");
+ String idDcCommunication = test.getString("idDcCommunication");
+ String os = test.getString("os");
+
+ GouTongJiLuTwoFour.add(reportNo, lossSeqNo, taskId, operatorName, operatorUm1,
+ operatorRole1, createDate, opinion, opinionDescribe1, dataSource,
+ idDcCommunication, os,data_sources1,lossSeqNo+now);
+ }
+
+
+ }
+
+ //反渗漏结果
+ JSONObject leakageMangementResult = jsonObject.getJSONObject("leakageMangementResult");
+ JSONArray riskList = leakageMangementResult.getJSONArray("riskList");
+
+ //2.2.2.7. 施救费rescueFeeInfo
+ if (rescueFeeInfo != null) {
+ Double trailerStartingFare = rescueFeeInfo.getDouble("trailerStartingFare");
+ Double trailerMileagePrice = rescueFeeInfo.getDouble("trailerMileagePrice");
+ Double trailerOverMileage = rescueFeeInfo.getDouble("trailerOverMileage");
+ Double craneStartingFare = rescueFeeInfo.getDouble("craneStartingFare");
+ Double cranePrice = rescueFeeInfo.getDouble("cranePrice");
+ Double craneWorkTime = rescueFeeInfo.getDouble("craneWorkTime");
+ Double otherFee = rescueFeeInfo.getDouble("otherFee");
+ String remark = rescueFeeInfo.getString("remark");
+ String insuranceCodes = rescueFeeInfo.getString("insuranceCodes");
+ ShiJiuFeiTwoFour_.list(data_sources1,lossSeqNo);
+
+ ShiJiuFeiTwoFour.add(reportNo, lossSeqNo, taskId, trailerStartingFare,
+ trailerMileagePrice, trailerOverMileage, craneStartingFare,
+ cranePrice, craneWorkTime, otherFee, remark,
+ insuranceCodes,data_sources1,lossSeqNo+now);
+ }
+ Integer fxxx = 1;
+ //2.2.2.9. 风险信息列表、锁死规则列表 riskList
+ if (riskList != null && riskList.size() != 0) {
+ FengXianXinXiTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o : riskList) {
+ JSONObject test = (JSONObject) o;
+
+ String ruleName = test.getString("ruleName");
+ Double overAmount = test.getDouble("overAmount");
+ String lossName = test.getString("lossName");
+ String requestId = test.getString("requestId");
+ String riskClass = test.getString("riskClass");
+ String riskCategory = test.getString("riskCategory");
+ String riskClassCode = test.getString("riskClassCode");
+ String riskCategoryCode = test.getString("riskCategoryCode");
+ String isConfirmRisk = test.getString("isConfirmRisk");
+
+ FengXianXinXiTwoFour.add(reportNo, lossSeqNo, taskId, ruleName, overAmount, lossName,
+ requestId, riskClass, riskCategory, riskClassCode, riskCategoryCode, isConfirmRisk,
+ data_sources1,fxxx,lossSeqNo+now);
+ fxxx += 1;
+
+ }
+
+
+ }
+ Integer wxdd = 1;
+ //2.2.2.10. 外修订单信息 repairOutsideFitList
+ if (repairOutsideFitList != null && repairOutsideFitList.size() != 0) {
+ WaiXiuDingDanXinXiTwoFour_.list(data_sources1,lossSeqNo);
+ for (Object o : repairOutsideFitList) {
+ JSONObject test = (JSONObject) o;
+
+ String idClmOuterRepairDetail = test.getString("idClmOuterRepairDetail");
+ String fitsName = test.getString("fitsName");
+ String fitsCode = test.getString("fitsCode");
+ String lossCompanyAmount = test.getString("lossCompanyAmount");
+ String lossAmountInsurance = test.getString("lossAmountInsurance");
+ String remark1 = test.getString("remark"); //11111111111111
+ String status = test.getString("status");
+ String idRepairOutsideInfo = test.getString("idRepairOutsideInfo");
+ String garageName1 = test.getString("garageName"); //11111111111111
+ String lossAmountReference = test.getString("lossAmountReference");
+
+ WaiXiuDingDanXinXiTwoFour.add(reportNo, lossSeqNo, taskId, idClmOuterRepairDetail, fitsName,
+ fitsCode, lossCompanyAmount, lossAmountInsurance, remark1,
+ status, idRepairOutsideInfo, garageName1, lossAmountReference,data_sources1,wxdd,lossSeqNo+now);
+ wxdd += 1;
+
+
+ }
+
+
+ }
+
+
+ }
+
+ });
+
+
+
+
+
+
+
+
+
+
+ String skey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6nzuQzigcBA7vy38odxTg+7Ez2Ah+WEz0FktbJhB9ZNQks001Y1Qf3gQr43V/eXefpOOToYYn7uXZ7PXoF4pSJSHRtkGag+8DL8WXSsPRe5ABTuSbic340oEZ0SzZEDVKqUlTAjKuCd/41sjVdbc2PHhaLH992RQOtzb40Bs/srJR2gX+qwJQFVtRfQEpsRqwpYtB7ESw7k6Ds9xpvWtzClyTL44xUL94pr0k9be2SXfedP5jgJzO2WQCYFbRTn+nP2gAqxXq36zaGUAo7J61s1h7G3b1mE1yc62WDSJfL3nBOoIOYlzbm7TuCYn79L+X0E8311w1cTqsYhAvjZEjAgMBAAECggEAHGHBHlmsEe6wEtoBAbdyjnDY10igqg5lza1iUn9sfJWMCfTW5iqwDZSnT8FtCjD/92CNV9N14rbbcBQwpdaGq82H4iv0uDoebH6kb0jolQBUu04zSFBh6dih17pPNsfXQv6R7zTjXkKUNHT94DDh5za1GwmvbgVInqBQlPCZZEtXX9xl/WBjkHo0reLru4H9rbrE0lI2si3cW7raxHRm5JlgLr0Gpigq3wXZ8dBYIXHmI2ru0DR4B0p2+Rlve4PvUx/7kYfp0QMed4Dvb3wXc+/UJNl+RvAebMi3sPB3CYqFbgU9byTvcmBkhcvuhJbMKpRl1Eg3vpYUPGaClNOXwQKBgQDplsLYs237nH3VRtbCsDPA8XRB06xmH/MNUuKSP5WNcCQZQXW9+YnZj5JgeV/q3WHCRPBxX4zuovpLDigf0Pc7+1HKvCoTLuF4xZsxiKaH3tANOzoOPnQEFcCFVshU9LAJg98XGFOtUdX8hvwKF2mssiXwSqF+6UCATGh+XEPmwwKBgQDMhuep+Tebs8cP46uSEUSbr9JQ7aUeR7bXowg+CJTWt4H+yhRKcmuC0FOZROpu0h+iw73fkA4UCxXGB3JtYJIp4e9yITNh5faqXjkYWYzTnyULe4ejNtYRMSkW5J+MGXlGXA8SL0yYskgFjgE9aD8hWRQNl1hVLGWrO/irz0bGIQKBgQCYvdJvLPUQAEZv/cBU0i8lTT2+BZHHvcCKx9YL17QNJnUUZq99J/0x3CXVG8jSpSxVggrPt7FKIhwUlA88rsHb4Pyc2umQXall9aEDhN2QHuxgmofd5IysVyTqi9K3asDpl+d7DJc60DZiyElqt+CL4nnYZJSxjgh1XIE/j0l/TQKBgCDZcg/sxS+u2kQFDyNwvpI61Q7GfIS2g/lyZ/p+qlkqNCjWEBg89GOYTjUJypVuDkK4KaDkpD434ZFi1NAYeKFddnXgOz54DvwiEg2FJIdAwlRrzMc8IXm1aaIRqkZ4OPBCDPGgwy6rQ8IQosZYHfufMQdVzYwwi0vLYA9IRVfBAoGBAIdl1XjIBd7mfpRMCI64yC5T9ITNbJlWcgvhd9VIHaoWSzX9xLKi19UNPQ6XY1UyfXfMCTQOv7LRJD3gTusQgHIArBaqXLXCoBJGf5/Zg8ywBfw1YGQPLiBBXuCaHdhzhVBAQwVVqjOkLZexL+QSBQ2p+HLNLp/ZJvJWitKdZukF";
+
+ JSONObject jsonObject = new JSONObject();
+ String jsonString = jsonObject.toJSONString();
+ String s = Base64.encodeBase64String(jsonString.getBytes("UTF-8"));
+
+ String signatureData = YiZhangUtil.signatureData("200"+ "请求成功" + Base64.encodeBase64String(jsonString.getBytes("UTF-8")), skey);
+
+
+ JSONObject object = new JSONObject();
+ object.put("code", 200);
+ object.put("msg", "请求成功");
+ object.put("respData" , s);
+ object.put("signature" , signatureData);
+ return object;
+ }
+}
diff --git a/src/main/java/com/example/sso/newcontroller/QuoTeGuidePage.java b/src/main/java/com/example/sso/newcontroller/QuoTeGuidePage.java
new file mode 100644
index 0000000..9f8ef55
--- /dev/null
+++ b/src/main/java/com/example/sso/newcontroller/QuoTeGuidePage.java
@@ -0,0 +1,96 @@
+package com.example.sso.newcontroller;
+
+import com.alibaba.fastjson.JSON;
+import com.alibaba.fastjson.JSONObject;
+import com.example.sso.util.YiZhangUtil;
+import org.apache.commons.codec.binary.Base64;
+
+public class QuoTeGuidePage {
+ public static void main(String[] args) throws Exception {
+ String id = "YJIC";
+ String skey = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQC6nzuQzigcBA7vy38odxTg+7Ez2Ah+WEz0FktbJhB9ZNQks001Y1Qf3gQr43V/eXefpOOToYYn7uXZ7PXoF4pSJSHRtkGag+8DL8WXSsPRe5ABTuSbic340oEZ0SzZEDVKqUlTAjKuCd/41sjVdbc2PHhaLH992RQOtzb40Bs/srJR2gX+qwJQFVtRfQEpsRqwpYtB7ESw7k6Ds9xpvWtzClyTL44xUL94pr0k9be2SXfedP5jgJzO2WQCYFbRTn+nP2gAqxXq36zaGUAo7J61s1h7G3b1mE1yc62WDSJfL3nBOoIOYlzbm7TuCYn79L+X0E8311w1cTqsYhAvjZEjAgMBAAECggEAHGHBHlmsEe6wEtoBAbdyjnDY10igqg5lza1iUn9sfJWMCfTW5iqwDZSnT8FtCjD/92CNV9N14rbbcBQwpdaGq82H4iv0uDoebH6kb0jolQBUu04zSFBh6dih17pPNsfXQv6R7zTjXkKUNHT94DDh5za1GwmvbgVInqBQlPCZZEtXX9xl/WBjkHo0reLru4H9rbrE0lI2si3cW7raxHRm5JlgLr0Gpigq3wXZ8dBYIXHmI2ru0DR4B0p2+Rlve4PvUx/7kYfp0QMed4Dvb3wXc+/UJNl+RvAebMi3sPB3CYqFbgU9byTvcmBkhcvuhJbMKpRl1Eg3vpYUPGaClNOXwQKBgQDplsLYs237nH3VRtbCsDPA8XRB06xmH/MNUuKSP5WNcCQZQXW9+YnZj5JgeV/q3WHCRPBxX4zuovpLDigf0Pc7+1HKvCoTLuF4xZsxiKaH3tANOzoOPnQEFcCFVshU9LAJg98XGFOtUdX8hvwKF2mssiXwSqF+6UCATGh+XEPmwwKBgQDMhuep+Tebs8cP46uSEUSbr9JQ7aUeR7bXowg+CJTWt4H+yhRKcmuC0FOZROpu0h+iw73fkA4UCxXGB3JtYJIp4e9yITNh5faqXjkYWYzTnyULe4ejNtYRMSkW5J+MGXlGXA8SL0yYskgFjgE9aD8hWRQNl1hVLGWrO/irz0bGIQKBgQCYvdJvLPUQAEZv/cBU0i8lTT2+BZHHvcCKx9YL17QNJnUUZq99J/0x3CXVG8jSpSxVggrPt7FKIhwUlA88rsHb4Pyc2umQXall9aEDhN2QHuxgmofd5IysVyTqi9K3asDpl+d7DJc60DZiyElqt+CL4nnYZJSxjgh1XIE/j0l/TQKBgCDZcg/sxS+u2kQFDyNwvpI61Q7GfIS2g/lyZ/p+qlkqNCjWEBg89GOYTjUJypVuDkK4KaDkpD434ZFi1NAYeKFddnXgOz54DvwiEg2FJIdAwlRrzMc8IXm1aaIRqkZ4OPBCDPGgwy6rQ8IQosZYHfufMQdVzYwwi0vLYA9IRVfBAoGBAIdl1XjIBd7mfpRMCI64yC5T9ITNbJlWcgvhd9VIHaoWSzX9xLKi19UNPQ6XY1UyfXfMCTQOv7LRJD3gTusQgHIArBaqXLXCoBJGf5/Zg8ywBfw1YGQPLiBBXuCaHdhzhVBAQwVVqjOkLZexL+QSBQ2p+HLNLp/ZJvJWitKdZukF";
+ String KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAlvUJDbPFcmSznhckyikj16HCFeHHmjPfxxdUczC5kY6CuXkOmt/YOKmOWWZvLSrEMwBL8ljR7Vgq9xnKUqMXybWHUC2lWmoqhQhC/f4wndvcvzWeHnofgUByoavYQneEiNUfcMfQ44DvWSIU6hyzh+mHA1pwDKiHBA4XiAdFJpFoitVo97S3BJ915HAiH9gTDSC4Jy5f59MRqDgNaV5ooxfr+g5GWo2TCEsDYGTCj7OnoaZcK21MzlhfLWgIGpWvoi69i3AbdBV+vlNHgH23PCvEEcp7n7sPZ0lLFe/d6McdV0BqTbw/+bEP2QjCdhll8hVazECnMzItM6GDVLHYFQIDAQAB";
+
+
+
+
+// JSONObject jsonObject = new JSONObject();
+//
+// jsonObject.put("insuranceCompanyNo", "YJIC");
+// jsonObject.put("accessUm", "ZhuLiting");
+// jsonObject.put("lossSeqNo", "20250221000010szcsrw");
+// jsonObject.put("taskId", "ShG-20250221000010szcsrw001");
+//
+//
+// List