commit
8f1ef834a1
184 changed files with 11255 additions and 0 deletions
@ -0,0 +1,33 @@
|
||||
HELP.md |
||||
target/ |
||||
!.mvn/wrapper/maven-wrapper.jar |
||||
!**/src/main/**/target/ |
||||
!**/src/test/**/target/ |
||||
|
||||
### 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/ |
||||
!**/src/main/**/build/ |
||||
!**/src/test/**/build/ |
||||
|
||||
### VS Code ### |
||||
.vscode/ |
||||
@ -0,0 +1,19 @@
|
||||
# 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 |
||||
# |
||||
# http://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. |
||||
wrapperVersion=3.3.2 |
||||
distributionType=only-script |
||||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.9/apache-maven-3.9.9-bin.zip |
||||
@ -0,0 +1,259 @@
|
||||
#!/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 |
||||
# |
||||
# http://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. |
||||
# ---------------------------------------------------------------------------- |
||||
|
||||
# ---------------------------------------------------------------------------- |
||||
# Apache Maven Wrapper startup batch script, version 3.3.2 |
||||
# |
||||
# Optional ENV vars |
||||
# ----------------- |
||||
# JAVA_HOME - location of a JDK home dir, required when download maven via java source |
||||
# MVNW_REPOURL - repo url base for downloading maven distribution |
||||
# MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven |
||||
# MVNW_VERBOSE - true: enable verbose log; debug: trace the mvnw script; others: silence the output |
||||
# ---------------------------------------------------------------------------- |
||||
|
||||
set -euf |
||||
[ "${MVNW_VERBOSE-}" != debug ] || set -x |
||||
|
||||
# OS specific support. |
||||
native_path() { printf %s\\n "$1"; } |
||||
case "$(uname)" in |
||||
CYGWIN* | MINGW*) |
||||
[ -z "${JAVA_HOME-}" ] || JAVA_HOME="$(cygpath --unix "$JAVA_HOME")" |
||||
native_path() { cygpath --path --windows "$1"; } |
||||
;; |
||||
esac |
||||
|
||||
# set JAVACMD and JAVACCMD |
||||
set_java_home() { |
||||
# For Cygwin and MinGW, ensure paths are in Unix format before anything is touched |
||||
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" |
||||
JAVACCMD="$JAVA_HOME/jre/sh/javac" |
||||
else |
||||
JAVACMD="$JAVA_HOME/bin/java" |
||||
JAVACCMD="$JAVA_HOME/bin/javac" |
||||
|
||||
if [ ! -x "$JAVACMD" ] || [ ! -x "$JAVACCMD" ]; then |
||||
echo "The JAVA_HOME environment variable is not defined correctly, so mvnw cannot run." >&2 |
||||
echo "JAVA_HOME is set to \"$JAVA_HOME\", but \"\$JAVA_HOME/bin/java\" or \"\$JAVA_HOME/bin/javac\" does not exist." >&2 |
||||
return 1 |
||||
fi |
||||
fi |
||||
else |
||||
JAVACMD="$( |
||||
'set' +e |
||||
'unset' -f command 2>/dev/null |
||||
'command' -v java |
||||
)" || : |
||||
JAVACCMD="$( |
||||
'set' +e |
||||
'unset' -f command 2>/dev/null |
||||
'command' -v javac |
||||
)" || : |
||||
|
||||
if [ ! -x "${JAVACMD-}" ] || [ ! -x "${JAVACCMD-}" ]; then |
||||
echo "The java/javac command does not exist in PATH nor is JAVA_HOME set, so mvnw cannot run." >&2 |
||||
return 1 |
||||
fi |
||||
fi |
||||
} |
||||
|
||||
# hash string like Java String::hashCode |
||||
hash_string() { |
||||
str="${1:-}" h=0 |
||||
while [ -n "$str" ]; do |
||||
char="${str%"${str#?}"}" |
||||
h=$(((h * 31 + $(LC_CTYPE=C printf %d "'$char")) % 4294967296)) |
||||
str="${str#?}" |
||||
done |
||||
printf %x\\n $h |
||||
} |
||||
|
||||
verbose() { :; } |
||||
[ "${MVNW_VERBOSE-}" != true ] || verbose() { printf %s\\n "${1-}"; } |
||||
|
||||
die() { |
||||
printf %s\\n "$1" >&2 |
||||
exit 1 |
||||
} |
||||
|
||||
trim() { |
||||
# MWRAPPER-139: |
||||
# Trims trailing and leading whitespace, carriage returns, tabs, and linefeeds. |
||||
# Needed for removing poorly interpreted newline sequences when running in more |
||||
# exotic environments such as mingw bash on Windows. |
||||
printf "%s" "${1}" | tr -d '[:space:]' |
||||
} |
||||
|
||||
# parse distributionUrl and optional distributionSha256Sum, requires .mvn/wrapper/maven-wrapper.properties |
||||
while IFS="=" read -r key value; do |
||||
case "${key-}" in |
||||
distributionUrl) distributionUrl=$(trim "${value-}") ;; |
||||
distributionSha256Sum) distributionSha256Sum=$(trim "${value-}") ;; |
||||
esac |
||||
done <"${0%/*}/.mvn/wrapper/maven-wrapper.properties" |
||||
[ -n "${distributionUrl-}" ] || die "cannot read distributionUrl property in ${0%/*}/.mvn/wrapper/maven-wrapper.properties" |
||||
|
||||
case "${distributionUrl##*/}" in |
||||
maven-mvnd-*bin.*) |
||||
MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ |
||||
case "${PROCESSOR_ARCHITECTURE-}${PROCESSOR_ARCHITEW6432-}:$(uname -a)" in |
||||
*AMD64:CYGWIN* | *AMD64:MINGW*) distributionPlatform=windows-amd64 ;; |
||||
:Darwin*x86_64) distributionPlatform=darwin-amd64 ;; |
||||
:Darwin*arm64) distributionPlatform=darwin-aarch64 ;; |
||||
:Linux*x86_64*) distributionPlatform=linux-amd64 ;; |
||||
*) |
||||
echo "Cannot detect native platform for mvnd on $(uname)-$(uname -m), use pure java version" >&2 |
||||
distributionPlatform=linux-amd64 |
||||
;; |
||||
esac |
||||
distributionUrl="${distributionUrl%-bin.*}-$distributionPlatform.zip" |
||||
;; |
||||
maven-mvnd-*) MVN_CMD=mvnd.sh _MVNW_REPO_PATTERN=/maven/mvnd/ ;; |
||||
*) MVN_CMD="mvn${0##*/mvnw}" _MVNW_REPO_PATTERN=/org/apache/maven/ ;; |
||||
esac |
||||
|
||||
# apply MVNW_REPOURL and calculate MAVEN_HOME |
||||
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash> |
||||
[ -z "${MVNW_REPOURL-}" ] || distributionUrl="$MVNW_REPOURL$_MVNW_REPO_PATTERN${distributionUrl#*"$_MVNW_REPO_PATTERN"}" |
||||
distributionUrlName="${distributionUrl##*/}" |
||||
distributionUrlNameMain="${distributionUrlName%.*}" |
||||
distributionUrlNameMain="${distributionUrlNameMain%-bin}" |
||||
MAVEN_USER_HOME="${MAVEN_USER_HOME:-${HOME}/.m2}" |
||||
MAVEN_HOME="${MAVEN_USER_HOME}/wrapper/dists/${distributionUrlNameMain-}/$(hash_string "$distributionUrl")" |
||||
|
||||
exec_maven() { |
||||
unset MVNW_VERBOSE MVNW_USERNAME MVNW_PASSWORD MVNW_REPOURL || : |
||||
exec "$MAVEN_HOME/bin/$MVN_CMD" "$@" || die "cannot exec $MAVEN_HOME/bin/$MVN_CMD" |
||||
} |
||||
|
||||
if [ -d "$MAVEN_HOME" ]; then |
||||
verbose "found existing MAVEN_HOME at $MAVEN_HOME" |
||||
exec_maven "$@" |
||||
fi |
||||
|
||||
case "${distributionUrl-}" in |
||||
*?-bin.zip | *?maven-mvnd-?*-?*.zip) ;; |
||||
*) die "distributionUrl is not valid, must match *-bin.zip or maven-mvnd-*.zip, but found '${distributionUrl-}'" ;; |
||||
esac |
||||
|
||||
# prepare tmp dir |
||||
if TMP_DOWNLOAD_DIR="$(mktemp -d)" && [ -d "$TMP_DOWNLOAD_DIR" ]; then |
||||
clean() { rm -rf -- "$TMP_DOWNLOAD_DIR"; } |
||||
trap clean HUP INT TERM EXIT |
||||
else |
||||
die "cannot create temp dir" |
||||
fi |
||||
|
||||
mkdir -p -- "${MAVEN_HOME%/*}" |
||||
|
||||
# Download and Install Apache Maven |
||||
verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." |
||||
verbose "Downloading from: $distributionUrl" |
||||
verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" |
||||
|
||||
# select .zip or .tar.gz |
||||
if ! command -v unzip >/dev/null; then |
||||
distributionUrl="${distributionUrl%.zip}.tar.gz" |
||||
distributionUrlName="${distributionUrl##*/}" |
||||
fi |
||||
|
||||
# verbose opt |
||||
__MVNW_QUIET_WGET=--quiet __MVNW_QUIET_CURL=--silent __MVNW_QUIET_UNZIP=-q __MVNW_QUIET_TAR='' |
||||
[ "${MVNW_VERBOSE-}" != true ] || __MVNW_QUIET_WGET='' __MVNW_QUIET_CURL='' __MVNW_QUIET_UNZIP='' __MVNW_QUIET_TAR=v |
||||
|
||||
# normalize http auth |
||||
case "${MVNW_PASSWORD:+has-password}" in |
||||
'') MVNW_USERNAME='' MVNW_PASSWORD='' ;; |
||||
has-password) [ -n "${MVNW_USERNAME-}" ] || MVNW_USERNAME='' MVNW_PASSWORD='' ;; |
||||
esac |
||||
|
||||
if [ -z "${MVNW_USERNAME-}" ] && command -v wget >/dev/null; then |
||||
verbose "Found wget ... using wget" |
||||
wget ${__MVNW_QUIET_WGET:+"$__MVNW_QUIET_WGET"} "$distributionUrl" -O "$TMP_DOWNLOAD_DIR/$distributionUrlName" || die "wget: Failed to fetch $distributionUrl" |
||||
elif [ -z "${MVNW_USERNAME-}" ] && command -v curl >/dev/null; then |
||||
verbose "Found curl ... using curl" |
||||
curl ${__MVNW_QUIET_CURL:+"$__MVNW_QUIET_CURL"} -f -L -o "$TMP_DOWNLOAD_DIR/$distributionUrlName" "$distributionUrl" || die "curl: Failed to fetch $distributionUrl" |
||||
elif set_java_home; then |
||||
verbose "Falling back to use Java to download" |
||||
javaSource="$TMP_DOWNLOAD_DIR/Downloader.java" |
||||
targetZip="$TMP_DOWNLOAD_DIR/$distributionUrlName" |
||||
cat >"$javaSource" <<-END |
||||
public class Downloader extends java.net.Authenticator |
||||
{ |
||||
protected java.net.PasswordAuthentication getPasswordAuthentication() |
||||
{ |
||||
return new java.net.PasswordAuthentication( System.getenv( "MVNW_USERNAME" ), System.getenv( "MVNW_PASSWORD" ).toCharArray() ); |
||||
} |
||||
public static void main( String[] args ) throws Exception |
||||
{ |
||||
setDefault( new Downloader() ); |
||||
java.nio.file.Files.copy( java.net.URI.create( args[0] ).toURL().openStream(), java.nio.file.Paths.get( args[1] ).toAbsolutePath().normalize() ); |
||||
} |
||||
} |
||||
END |
||||
# For Cygwin/MinGW, switch paths to Windows format before running javac and java |
||||
verbose " - Compiling Downloader.java ..." |
||||
"$(native_path "$JAVACCMD")" "$(native_path "$javaSource")" || die "Failed to compile Downloader.java" |
||||
verbose " - Running Downloader.java ..." |
||||
"$(native_path "$JAVACMD")" -cp "$(native_path "$TMP_DOWNLOAD_DIR")" Downloader "$distributionUrl" "$(native_path "$targetZip")" |
||||
fi |
||||
|
||||
# If specified, validate the SHA-256 sum of the Maven distribution zip file |
||||
if [ -n "${distributionSha256Sum-}" ]; then |
||||
distributionSha256Result=false |
||||
if [ "$MVN_CMD" = mvnd.sh ]; then |
||||
echo "Checksum validation is not supported for maven-mvnd." >&2 |
||||
echo "Please disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 |
||||
exit 1 |
||||
elif command -v sha256sum >/dev/null; then |
||||
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | sha256sum -c >/dev/null 2>&1; then |
||||
distributionSha256Result=true |
||||
fi |
||||
elif command -v shasum >/dev/null; then |
||||
if echo "$distributionSha256Sum $TMP_DOWNLOAD_DIR/$distributionUrlName" | shasum -a 256 -c >/dev/null 2>&1; then |
||||
distributionSha256Result=true |
||||
fi |
||||
else |
||||
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available." >&2 |
||||
echo "Please install either command, or disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." >&2 |
||||
exit 1 |
||||
fi |
||||
if [ $distributionSha256Result = false ]; then |
||||
echo "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised." >&2 |
||||
echo "If you updated your Maven version, you need to update the specified distributionSha256Sum property." >&2 |
||||
exit 1 |
||||
fi |
||||
fi |
||||
|
||||
# unzip and move |
||||
if command -v unzip >/dev/null; then |
||||
unzip ${__MVNW_QUIET_UNZIP:+"$__MVNW_QUIET_UNZIP"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -d "$TMP_DOWNLOAD_DIR" || die "failed to unzip" |
||||
else |
||||
tar xzf${__MVNW_QUIET_TAR:+"$__MVNW_QUIET_TAR"} "$TMP_DOWNLOAD_DIR/$distributionUrlName" -C "$TMP_DOWNLOAD_DIR" || die "failed to untar" |
||||
fi |
||||
printf %s\\n "$distributionUrl" >"$TMP_DOWNLOAD_DIR/$distributionUrlNameMain/mvnw.url" |
||||
mv -- "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" "$MAVEN_HOME" || [ -d "$MAVEN_HOME" ] || die "fail to move MAVEN_HOME" |
||||
|
||||
clean || : |
||||
exec_maven "$@" |
||||
@ -0,0 +1,149 @@
|
||||
<# : batch portion |
||||
@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 http://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 Apache Maven Wrapper startup batch script, version 3.3.2 |
||||
@REM |
||||
@REM Optional ENV vars |
||||
@REM MVNW_REPOURL - repo url base for downloading maven distribution |
||||
@REM MVNW_USERNAME/MVNW_PASSWORD - user and password for downloading maven |
||||
@REM MVNW_VERBOSE - true: enable verbose log; others: silence the output |
||||
@REM ---------------------------------------------------------------------------- |
||||
|
||||
@IF "%__MVNW_ARG0_NAME__%"=="" (SET __MVNW_ARG0_NAME__=%~nx0) |
||||
@SET __MVNW_CMD__= |
||||
@SET __MVNW_ERROR__= |
||||
@SET __MVNW_PSMODULEP_SAVE=%PSModulePath% |
||||
@SET PSModulePath= |
||||
@FOR /F "usebackq tokens=1* delims==" %%A IN (`powershell -noprofile "& {$scriptDir='%~dp0'; $script='%__MVNW_ARG0_NAME__%'; icm -ScriptBlock ([Scriptblock]::Create((Get-Content -Raw '%~f0'))) -NoNewScope}"`) DO @( |
||||
IF "%%A"=="MVN_CMD" (set __MVNW_CMD__=%%B) ELSE IF "%%B"=="" (echo %%A) ELSE (echo %%A=%%B) |
||||
) |
||||
@SET PSModulePath=%__MVNW_PSMODULEP_SAVE% |
||||
@SET __MVNW_PSMODULEP_SAVE= |
||||
@SET __MVNW_ARG0_NAME__= |
||||
@SET MVNW_USERNAME= |
||||
@SET MVNW_PASSWORD= |
||||
@IF NOT "%__MVNW_CMD__%"=="" (%__MVNW_CMD__% %*) |
||||
@echo Cannot start maven from wrapper >&2 && exit /b 1 |
||||
@GOTO :EOF |
||||
: end batch / begin powershell #> |
||||
|
||||
$ErrorActionPreference = "Stop" |
||||
if ($env:MVNW_VERBOSE -eq "true") { |
||||
$VerbosePreference = "Continue" |
||||
} |
||||
|
||||
# calculate distributionUrl, requires .mvn/wrapper/maven-wrapper.properties |
||||
$distributionUrl = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionUrl |
||||
if (!$distributionUrl) { |
||||
Write-Error "cannot read distributionUrl property in $scriptDir/.mvn/wrapper/maven-wrapper.properties" |
||||
} |
||||
|
||||
switch -wildcard -casesensitive ( $($distributionUrl -replace '^.*/','') ) { |
||||
"maven-mvnd-*" { |
||||
$USE_MVND = $true |
||||
$distributionUrl = $distributionUrl -replace '-bin\.[^.]*$',"-windows-amd64.zip" |
||||
$MVN_CMD = "mvnd.cmd" |
||||
break |
||||
} |
||||
default { |
||||
$USE_MVND = $false |
||||
$MVN_CMD = $script -replace '^mvnw','mvn' |
||||
break |
||||
} |
||||
} |
||||
|
||||
# apply MVNW_REPOURL and calculate MAVEN_HOME |
||||
# maven home pattern: ~/.m2/wrapper/dists/{apache-maven-<version>,maven-mvnd-<version>-<platform>}/<hash> |
||||
if ($env:MVNW_REPOURL) { |
||||
$MVNW_REPO_PATTERN = if ($USE_MVND) { "/org/apache/maven/" } else { "/maven/mvnd/" } |
||||
$distributionUrl = "$env:MVNW_REPOURL$MVNW_REPO_PATTERN$($distributionUrl -replace '^.*'+$MVNW_REPO_PATTERN,'')" |
||||
} |
||||
$distributionUrlName = $distributionUrl -replace '^.*/','' |
||||
$distributionUrlNameMain = $distributionUrlName -replace '\.[^.]*$','' -replace '-bin$','' |
||||
$MAVEN_HOME_PARENT = "$HOME/.m2/wrapper/dists/$distributionUrlNameMain" |
||||
if ($env:MAVEN_USER_HOME) { |
||||
$MAVEN_HOME_PARENT = "$env:MAVEN_USER_HOME/wrapper/dists/$distributionUrlNameMain" |
||||
} |
||||
$MAVEN_HOME_NAME = ([System.Security.Cryptography.MD5]::Create().ComputeHash([byte[]][char[]]$distributionUrl) | ForEach-Object {$_.ToString("x2")}) -join '' |
||||
$MAVEN_HOME = "$MAVEN_HOME_PARENT/$MAVEN_HOME_NAME" |
||||
|
||||
if (Test-Path -Path "$MAVEN_HOME" -PathType Container) { |
||||
Write-Verbose "found existing MAVEN_HOME at $MAVEN_HOME" |
||||
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" |
||||
exit $? |
||||
} |
||||
|
||||
if (! $distributionUrlNameMain -or ($distributionUrlName -eq $distributionUrlNameMain)) { |
||||
Write-Error "distributionUrl is not valid, must end with *-bin.zip, but found $distributionUrl" |
||||
} |
||||
|
||||
# prepare tmp dir |
||||
$TMP_DOWNLOAD_DIR_HOLDER = New-TemporaryFile |
||||
$TMP_DOWNLOAD_DIR = New-Item -Itemtype Directory -Path "$TMP_DOWNLOAD_DIR_HOLDER.dir" |
||||
$TMP_DOWNLOAD_DIR_HOLDER.Delete() | Out-Null |
||||
trap { |
||||
if ($TMP_DOWNLOAD_DIR.Exists) { |
||||
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } |
||||
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } |
||||
} |
||||
} |
||||
|
||||
New-Item -Itemtype Directory -Path "$MAVEN_HOME_PARENT" -Force | Out-Null |
||||
|
||||
# Download and Install Apache Maven |
||||
Write-Verbose "Couldn't find MAVEN_HOME, downloading and installing it ..." |
||||
Write-Verbose "Downloading from: $distributionUrl" |
||||
Write-Verbose "Downloading to: $TMP_DOWNLOAD_DIR/$distributionUrlName" |
||||
|
||||
$webclient = New-Object System.Net.WebClient |
||||
if ($env:MVNW_USERNAME -and $env:MVNW_PASSWORD) { |
||||
$webclient.Credentials = New-Object System.Net.NetworkCredential($env:MVNW_USERNAME, $env:MVNW_PASSWORD) |
||||
} |
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 |
||||
$webclient.DownloadFile($distributionUrl, "$TMP_DOWNLOAD_DIR/$distributionUrlName") | Out-Null |
||||
|
||||
# If specified, validate the SHA-256 sum of the Maven distribution zip file |
||||
$distributionSha256Sum = (Get-Content -Raw "$scriptDir/.mvn/wrapper/maven-wrapper.properties" | ConvertFrom-StringData).distributionSha256Sum |
||||
if ($distributionSha256Sum) { |
||||
if ($USE_MVND) { |
||||
Write-Error "Checksum validation is not supported for maven-mvnd. `nPlease disable validation by removing 'distributionSha256Sum' from your maven-wrapper.properties." |
||||
} |
||||
Import-Module $PSHOME\Modules\Microsoft.PowerShell.Utility -Function Get-FileHash |
||||
if ((Get-FileHash "$TMP_DOWNLOAD_DIR/$distributionUrlName" -Algorithm SHA256).Hash.ToLower() -ne $distributionSha256Sum) { |
||||
Write-Error "Error: Failed to validate Maven distribution SHA-256, your Maven distribution might be compromised. If you updated your Maven version, you need to update the specified distributionSha256Sum property." |
||||
} |
||||
} |
||||
|
||||
# unzip and move |
||||
Expand-Archive "$TMP_DOWNLOAD_DIR/$distributionUrlName" -DestinationPath "$TMP_DOWNLOAD_DIR" | Out-Null |
||||
Rename-Item -Path "$TMP_DOWNLOAD_DIR/$distributionUrlNameMain" -NewName $MAVEN_HOME_NAME | Out-Null |
||||
try { |
||||
Move-Item -Path "$TMP_DOWNLOAD_DIR/$MAVEN_HOME_NAME" -Destination $MAVEN_HOME_PARENT | Out-Null |
||||
} catch { |
||||
if (! (Test-Path -Path "$MAVEN_HOME" -PathType Container)) { |
||||
Write-Error "fail to move MAVEN_HOME" |
||||
} |
||||
} finally { |
||||
try { Remove-Item $TMP_DOWNLOAD_DIR -Recurse -Force | Out-Null } |
||||
catch { Write-Warning "Cannot remove $TMP_DOWNLOAD_DIR" } |
||||
} |
||||
|
||||
Write-Output "MVN_CMD=$MAVEN_HOME/bin/$MVN_CMD" |
||||
@ -0,0 +1,237 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||
<modelVersion>4.0.0</modelVersion> |
||||
<parent> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-parent</artifactId> |
||||
<version>3.3.4</version> |
||||
<relativePath/> <!-- lookup parent from repository --> |
||||
</parent> |
||||
<groupId>com.biutag</groupId> |
||||
<artifactId>supervision-data</artifactId> |
||||
<version>1.0.0</version> |
||||
<name>supervision-data</name> |
||||
<description>数字督察 数据同步</description> |
||||
|
||||
<properties> |
||||
<java.version>21</java.version> |
||||
</properties> |
||||
|
||||
<repositories> |
||||
<repository> |
||||
<id>SpringCloudRepo</id> |
||||
<name>SpringCloudRepo</name> |
||||
<url>https://repo.spring.io/milestone</url> |
||||
</repository> |
||||
<repository> |
||||
<id>spring-snapshots</id> |
||||
<name>Spring Snapshots</name> |
||||
<url>https://repo.spring.io/snapshot</url> |
||||
</repository> |
||||
<repository> |
||||
<id>AsposeJavaAPI</id> |
||||
<name>Aspose Java API</name> |
||||
<url>https://repository.aspose.com/repo/</url> |
||||
</repository> |
||||
<repository> |
||||
<id>maven2</id> |
||||
<name>maven2</name> |
||||
<url>https://repo1.maven.org/maven2</url> |
||||
</repository> |
||||
<repository> |
||||
<id>meethour</id> |
||||
<name>meethour</name> |
||||
<url>https://repo.meethour.io/maven/releases/</url> |
||||
</repository> |
||||
</repositories> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>cn.hutool</groupId> |
||||
<artifactId>hutool-core</artifactId> |
||||
<version>5.8.29</version> |
||||
</dependency> |
||||
|
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter</artifactId> |
||||
</dependency> |
||||
|
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-web</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-test</artifactId> |
||||
<scope>test</scope> |
||||
<exclusions> |
||||
<exclusion> |
||||
<groupId>com.jayway.jsonpath</groupId> |
||||
<artifactId>json-path</artifactId> |
||||
</exclusion> |
||||
</exclusions> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.jayway.jsonpath</groupId> |
||||
<artifactId>json-path</artifactId> |
||||
<version>2.9.0</version> |
||||
<scope>test</scope> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.mysql</groupId> |
||||
<artifactId>mysql-connector-j</artifactId> |
||||
<scope>runtime</scope> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-jdbc</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>commons-codec</groupId> |
||||
<artifactId>commons-codec</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>io.projectreactor</groupId> |
||||
<artifactId>reactor-test</artifactId> |
||||
<scope>test</scope> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-data-redis</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.apache.commons</groupId> |
||||
<artifactId>commons-pool2</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.baomidou</groupId> |
||||
<artifactId>mybatis-plus-spring-boot3-starter</artifactId> |
||||
<version>3.5.7</version> |
||||
</dependency> |
||||
<!-- <dependency>--> |
||||
<!-- <groupId>com.baomidou</groupId>--> |
||||
<!-- <artifactId>mybatis-plus-jsqlparser</artifactId>--> |
||||
<!-- <version>3.5.9</version>--> |
||||
<!-- </dependency>--> |
||||
<!-- <dependency>--> |
||||
<!-- <groupId>com.baomidou</groupId>--> |
||||
<!-- <artifactId>mybatis-plus-generator</artifactId>--> |
||||
<!-- <version>3.5.9</version>--> |
||||
<!-- </dependency>--> |
||||
<dependency> |
||||
<groupId>commons-io</groupId> |
||||
<artifactId>commons-io</artifactId> |
||||
<version>2.17.0</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.security</groupId> |
||||
<artifactId>spring-security-crypto</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.gbase</groupId> |
||||
<artifactId>gbase-jdbc</artifactId> |
||||
<version>8.3.81.53-build55.2.1-bin</version> |
||||
</dependency> |
||||
|
||||
<dependency> |
||||
<groupId>org.projectlombok</groupId> |
||||
<artifactId>lombok</artifactId> |
||||
<version>1.18.30</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>com.alibaba.fastjson2</groupId> |
||||
<artifactId>fastjson2</artifactId> |
||||
<version>2.0.45</version> |
||||
<scope>compile</scope> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.jetbrains</groupId> |
||||
<artifactId>annotations</artifactId> |
||||
<version>24.0.1</version> |
||||
<scope>compile</scope> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.apache.commons</groupId> |
||||
<artifactId>commons-lang3</artifactId> |
||||
<version>3.13.0</version> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework</groupId> |
||||
<artifactId>spring-context-indexer</artifactId> |
||||
<optional>true</optional> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.retry</groupId> |
||||
<artifactId>spring-retry</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-aop</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>net.logstash.logback</groupId> |
||||
<artifactId>logstash-logback-encoder</artifactId> |
||||
<version>4.9</version> |
||||
</dependency> |
||||
</dependencies> |
||||
|
||||
<build> |
||||
<finalName>${project.artifactId}</finalName> |
||||
|
||||
<resources> |
||||
<resource> |
||||
<directory>src/main/resources</directory> |
||||
<filtering>false</filtering> |
||||
</resource> |
||||
<resource> |
||||
<directory>src/main/resources</directory> |
||||
<includes> |
||||
<include>application.yml</include> |
||||
</includes> |
||||
<filtering>true</filtering> |
||||
</resource> |
||||
</resources> |
||||
|
||||
<plugins> |
||||
<plugin> |
||||
<groupId>org.apache.maven.plugins</groupId> |
||||
<artifactId>maven-resources-plugin</artifactId> |
||||
<version>3.3.1</version> |
||||
</plugin> |
||||
<plugin> |
||||
<!--打包跳过测试--> |
||||
<groupId>org.apache.maven.plugins</groupId> |
||||
<artifactId>maven-surefire-plugin</artifactId> |
||||
<version>3.2.5</version> |
||||
<configuration> |
||||
<skipTests>true</skipTests> |
||||
</configuration> |
||||
</plugin> |
||||
<plugin> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-maven-plugin</artifactId> |
||||
<version>3.3.0</version> |
||||
<executions> |
||||
<execution> |
||||
<goals> |
||||
<goal>repackage</goal> |
||||
</goals> |
||||
</execution> |
||||
</executions> |
||||
</plugin> |
||||
<plugin> |
||||
<groupId>org.apache.maven.plugins</groupId> |
||||
<artifactId>maven-compiler-plugin</artifactId> |
||||
<version>3.13.0</version> |
||||
<configuration> |
||||
<parameters>true</parameters> |
||||
<source>21</source> |
||||
<target>21</target> |
||||
</configuration> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
|
||||
</project> |
||||
@ -0,0 +1,19 @@
|
||||
package com.biutag.supervisiondata; |
||||
|
||||
import org.springframework.boot.SpringApplication; |
||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||
import org.springframework.retry.annotation.EnableRetry; |
||||
import org.springframework.scheduling.annotation.EnableScheduling; |
||||
import org.springframework.stereotype.Indexed; |
||||
|
||||
@Indexed |
||||
@EnableRetry |
||||
@EnableScheduling |
||||
@SpringBootApplication |
||||
public class SupervisionDataApplication { |
||||
|
||||
public static void main(String[] args) { |
||||
SpringApplication.run(SupervisionDataApplication.class, args); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,56 @@
|
||||
package com.biutag.supervisiondata.common.exception; |
||||
|
||||
import com.biutag.supervisiondata.common.response.StatusCode; |
||||
import lombok.Data; |
||||
import lombok.EqualsAndHashCode; |
||||
|
||||
import java.io.Serial; |
||||
|
||||
/** |
||||
* 业务异常 |
||||
* |
||||
* @author kami |
||||
* @since 12:02 2021/1/8 |
||||
*/ |
||||
@EqualsAndHashCode(callSuper = true) |
||||
@Data |
||||
public class BusinessException extends RuntimeException { |
||||
|
||||
/** |
||||
* 错误码 |
||||
*/ |
||||
private int statusCode; |
||||
/** |
||||
* 重定向的路径 |
||||
*/ |
||||
private String url; |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
public BusinessException(StatusCode statusCode) { |
||||
super(); |
||||
this.statusCode = statusCode.getCode(); |
||||
} |
||||
|
||||
public BusinessException(StatusCode statusCode, Throwable throwable) { |
||||
super(throwable); |
||||
this.statusCode = statusCode.getCode(); |
||||
} |
||||
|
||||
public BusinessException(StatusCode statusCode, String message) { |
||||
super(message); |
||||
this.statusCode = statusCode.getCode(); |
||||
} |
||||
|
||||
public BusinessException(StatusCode statusCode, String message, String url) { |
||||
super(message); |
||||
this.statusCode = statusCode.getCode(); |
||||
this.url = url; |
||||
} |
||||
|
||||
public BusinessException(StatusCode statusCode, String message, Throwable throwable) { |
||||
super(message, throwable); |
||||
this.statusCode = statusCode.getCode(); |
||||
} |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.common.interfaces; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2022/7/8 13:50 |
||||
*/ |
||||
@FunctionalInterface |
||||
public interface AssertInterface { |
||||
|
||||
void run(String str); |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.common.interfaces; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2022/12/20 11:36 |
||||
*/ |
||||
@FunctionalInterface |
||||
public interface AssertObjInterface<T> { |
||||
|
||||
T run(String str); |
||||
} |
||||
@ -0,0 +1,13 @@
|
||||
package com.biutag.supervisiondata.common.interfaces; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2021/11/22 17:37 |
||||
*/ |
||||
@FunctionalInterface |
||||
public interface CompletableFutureMine { |
||||
|
||||
void run(); |
||||
|
||||
} |
||||
@ -0,0 +1,13 @@
|
||||
package com.biutag.supervisiondata.common.interfaces; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2021/11/22 17:37 |
||||
*/ |
||||
@FunctionalInterface |
||||
public interface CompletableFutureResult { |
||||
|
||||
Boolean run(); |
||||
|
||||
} |
||||
@ -0,0 +1,13 @@
|
||||
package com.biutag.supervisiondata.common.interfaces; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2021/11/22 17:37 |
||||
*/ |
||||
@FunctionalInterface |
||||
public interface CompletableFutureType<T> { |
||||
|
||||
T run(); |
||||
|
||||
} |
||||
@ -0,0 +1,173 @@
|
||||
package com.biutag.supervisiondata.common.interfaces; |
||||
|
||||
|
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.slf4j.MDC; |
||||
|
||||
import java.util.Map; |
||||
import java.util.concurrent.CompletableFuture; |
||||
import java.util.concurrent.Executor; |
||||
import java.util.concurrent.Executors; |
||||
import java.util.concurrent.TimeUnit; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2021/11/22 17:39 |
||||
*/ |
||||
@Slf4j |
||||
public class CompletableFutureUtil { |
||||
|
||||
private CompletableFutureUtil(){} |
||||
|
||||
public static final String TRACE_ID = "trace_id"; |
||||
|
||||
private static void run(CompletableFutureMine completableFutureMine, Map<String, String> previous) { |
||||
if (previous == null) { |
||||
MDC.clear(); |
||||
} else { |
||||
MDC.setContextMap(previous); |
||||
} |
||||
if (MDC.get(TRACE_ID) == null || MDC.get(TRACE_ID).isEmpty()) { |
||||
MDC.put(TRACE_ID, System.nanoTime() + ""); |
||||
} |
||||
completableFutureMine.run(); |
||||
MDC.clear(); |
||||
} |
||||
|
||||
private static Boolean runResult(CompletableFutureResult result, Map<String, String> previous) { |
||||
if (previous == null) { |
||||
MDC.clear(); |
||||
} else { |
||||
MDC.setContextMap(previous); |
||||
} |
||||
if (MDC.get(TRACE_ID) == null || MDC.get(TRACE_ID).isEmpty()) { |
||||
MDC.put(TRACE_ID, System.nanoTime() + ""); |
||||
} |
||||
Boolean rs = result.run(); |
||||
MDC.clear(); |
||||
return rs; |
||||
} |
||||
|
||||
public static void runSync(CompletableFutureMine completableFutureMine) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
CompletableFuture.runAsync(() -> run(completableFutureMine, previous)).exceptionally(e -> { |
||||
log.error("",e); |
||||
MDC.clear(); |
||||
return null; |
||||
}); |
||||
} |
||||
|
||||
public static void runSyncVirtual(CompletableFutureMine completableFutureMine) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
CompletableFuture.runAsync(() -> run(completableFutureMine, previous), Executors.newVirtualThreadPerTaskExecutor()).exceptionally(e -> { |
||||
log.error("",e); |
||||
MDC.clear(); |
||||
return null; |
||||
}); |
||||
} |
||||
|
||||
public static CompletableFuture runSyncObject(CompletableFutureMine completableFutureMine) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
return CompletableFuture.runAsync(() -> { |
||||
if (previous == null) { |
||||
MDC.clear(); |
||||
} else { |
||||
MDC.setContextMap(previous); |
||||
} |
||||
if (MDC.get(TRACE_ID) == null || MDC.get(TRACE_ID).isEmpty()) { |
||||
MDC.put(TRACE_ID, System.nanoTime() + ""); |
||||
} |
||||
run(completableFutureMine, previous); |
||||
MDC.clear(); |
||||
}).exceptionally(e -> { |
||||
log.error("",e); |
||||
MDC.clear(); |
||||
return null; |
||||
}); |
||||
} |
||||
|
||||
public static void run(CompletableFutureMine completableFutureMine) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
CompletableFuture.runAsync(() -> run(completableFutureMine, previous)).exceptionally(e -> { |
||||
log.error("",e); |
||||
MDC.clear(); |
||||
return null; |
||||
}).join(); |
||||
} |
||||
|
||||
public static void runSyncEach(CompletableFutureResult result, Long time) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
CompletableFuture.runAsync(() -> { |
||||
Boolean goOn = true; |
||||
while (Boolean.TRUE.equals(goOn)) { |
||||
try { |
||||
TimeUnit.SECONDS.sleep(time); |
||||
} catch (InterruptedException e) { |
||||
log.error("",e); |
||||
Thread.currentThread().interrupt(); |
||||
} |
||||
goOn = runResult(result, previous); |
||||
} |
||||
}).exceptionally(e -> { |
||||
log.error("",e); |
||||
MDC.clear(); |
||||
return null; |
||||
}); |
||||
} |
||||
|
||||
public static void runSyncEach(CompletableFutureResult result, Executor ex, Long time) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
CompletableFuture.runAsync(() -> { |
||||
Boolean goOn = true; |
||||
while (goOn) { |
||||
try { |
||||
TimeUnit.SECONDS.sleep(time); |
||||
} catch (InterruptedException e) { |
||||
log.error("",e); |
||||
Thread.currentThread().interrupt(); |
||||
} |
||||
goOn = runResult(result, previous); |
||||
} |
||||
}, ex).exceptionally(e -> { |
||||
log.error("",e); |
||||
MDC.clear(); |
||||
return null; |
||||
}); |
||||
} |
||||
|
||||
public static void runSync(CompletableFutureMine completableFutureMine, Executor ex) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
CompletableFuture.runAsync(() -> run(completableFutureMine, previous), ex).exceptionally(e -> { |
||||
log.error("", e); |
||||
MDC.clear(); |
||||
return null; |
||||
}); |
||||
} |
||||
|
||||
public static void runSyncAssert(Boolean assets, CompletableFutureMine completableFutureMine) { |
||||
if(Boolean.TRUE.equals(assets)) { |
||||
CompletableFuture.runAsync(completableFutureMine::run).exceptionally(e -> { |
||||
log.error("",e); |
||||
return null; |
||||
}); |
||||
} |
||||
} |
||||
|
||||
public static <T> CompletableFuture<T> createRunner(CompletableFutureType<T> completableFutureType) { |
||||
Map<String, String> previous = MDC.getCopyOfContextMap(); |
||||
return CompletableFuture.supplyAsync(() -> { |
||||
if (previous == null) { |
||||
MDC.clear(); |
||||
} else { |
||||
MDC.setContextMap(previous); |
||||
} |
||||
if (MDC.get(TRACE_ID) == null || MDC.get(TRACE_ID).isEmpty()) { |
||||
MDC.put(TRACE_ID, System.nanoTime() + ""); |
||||
} |
||||
T t = completableFutureType.run(); |
||||
MDC.clear(); |
||||
return t; |
||||
}); |
||||
} |
||||
} |
||||
@ -0,0 +1,131 @@
|
||||
package com.biutag.supervisiondata.common.response; |
||||
|
||||
import com.biutag.supervisiondata.pojo.constants.ThreadConstants; |
||||
import com.biutag.supervisiondata.util.RandomUtil; |
||||
import lombok.Data; |
||||
import lombok.experimental.Accessors; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.slf4j.MDC; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.util.Optional; |
||||
|
||||
/** |
||||
* 统一返回 |
||||
* @author kami on 2023-03-02 17:52:16 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@Accessors(chain = true) |
||||
@Slf4j |
||||
public class RS<T> implements Serializable { |
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 状态码 |
||||
* @mock 200 |
||||
*/ |
||||
|
||||
private Integer code; |
||||
|
||||
/** |
||||
* 响应信息 |
||||
* @mock 请求成功 |
||||
*/ |
||||
private String msg; |
||||
/** |
||||
* 请求id |
||||
* @mock 7792667269210689 |
||||
*/ |
||||
private String id; |
||||
/** |
||||
* 响应时间 |
||||
* @mock 1698039324139 |
||||
*/ |
||||
private Long time; |
||||
|
||||
/** |
||||
* 数据 |
||||
*/ |
||||
private T data; |
||||
|
||||
/** |
||||
* 构建基础 带id、时间戳 |
||||
* @return RS |
||||
*/ |
||||
private static <T> RS<T> basic() { |
||||
return new RS<T>().setId(Optional.ofNullable(MDC.get(ThreadConstants.TRACE_ID)).orElse(RandomUtil.generateUpperString(8))).setTime(System.currentTimeMillis()); |
||||
} |
||||
|
||||
/** |
||||
* 加入状态码 |
||||
* @param code 状态码 |
||||
* @return RS |
||||
*/ |
||||
private static <T> RS <T> coder(StatusCode code){ |
||||
RS<T> rs = basic(); |
||||
return rs.setCode(code.getCode()); |
||||
} |
||||
|
||||
/** |
||||
* 成功响应 |
||||
* @return RS |
||||
*/ |
||||
public static <T> RS<T> success() { |
||||
RS<T> rs = coder(StatusCode.SUCCESS); |
||||
return rs.setMsg("成功"); |
||||
} |
||||
|
||||
/** |
||||
* 成功响应 |
||||
* @return RS |
||||
*/ |
||||
public static <T> RS<T> success(T data) { |
||||
RS<T> rs = success(); |
||||
return rs.setData(data); |
||||
} |
||||
|
||||
/** |
||||
* 失败响应 |
||||
* @return RS |
||||
*/ |
||||
public static <T> RS<T> error() { |
||||
return error("逻辑异常"); |
||||
} |
||||
|
||||
/** |
||||
* 失败响应 |
||||
* @param msg 响应消息 |
||||
* @return RS |
||||
*/ |
||||
public static <T> RS<T> error(String msg) { |
||||
RS<T> rs = coder(StatusCode.BUSINESS); |
||||
return rs.setMsg(msg); |
||||
} |
||||
|
||||
/** |
||||
* 响应 |
||||
* @param code 状态码 |
||||
* @param msg 响应消息 |
||||
* @return RS |
||||
*/ |
||||
public static <T> RS<T> build(StatusCode code,String msg) { |
||||
RS<T> rs = coder(code); |
||||
return rs.setMsg(msg); |
||||
} |
||||
|
||||
/** |
||||
* 响应 |
||||
* @param code 状态码 |
||||
* @param msg 响应消息 |
||||
* @return RS |
||||
*/ |
||||
public static <T> RS <T> build(StatusCode code,String msg,T data) { |
||||
RS<T> rs = coder(code); |
||||
return rs.setMsg(msg).setData(data); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,38 @@
|
||||
package com.biutag.supervisiondata.common.response; |
||||
|
||||
import lombok.Getter; |
||||
|
||||
/** |
||||
* 状态码 |
||||
*/ |
||||
@Getter |
||||
public enum StatusCode { |
||||
SUCCESS(200),// OK 一切正常,对GET和POST请求的应答文档跟在后面。
|
||||
SUCCESS_INSERT(201), //新增或同本书籍已存在
|
||||
YOU_FAIL(100),//参数错误
|
||||
FAIL(0), |
||||
UN_AUTH(101), |
||||
RE_AUTH(333), // 需要二次权限校验
|
||||
DISABLE(402),// 没有权限
|
||||
NOT_AUTH(403),// 服务器无法正常提供信息,或是服务器无法回应
|
||||
METHOD_NOT_ALLOWED(405), |
||||
UNSUPPORTED_MEDIA_TYPE(415), //媒体类型
|
||||
SERVICE_UNAVAILABLE(503), |
||||
BAD_REQUEST(400),// Bad Request 请求出现语法错误。
|
||||
NOT_FOUND(404),// 服务器无法正常提供信息,或是服务器无法回应
|
||||
ERROR(500), //服务器遇到了意料不到的情况,不能完成客户的请求。
|
||||
BUSINESS(5000), //业务错误
|
||||
DIFF(600), //不一致异常。
|
||||
REDIRECT_PAGE(602), // 重定向页面
|
||||
DIFF_RESULT(601), // 队列
|
||||
SERVICE_FAIL(1000), // 服务器熔断。
|
||||
|
||||
UPLOADED(1), |
||||
UPLOADING(2); |
||||
|
||||
private final Integer code; |
||||
|
||||
StatusCode(Integer code) { |
||||
this.code = code; |
||||
} |
||||
} |
||||
@ -0,0 +1,46 @@
|
||||
package com.biutag.supervisiondata.common.thread; |
||||
|
||||
import java.util.List; |
||||
import java.util.concurrent.BlockingQueue; |
||||
import java.util.concurrent.LinkedBlockingQueue; |
||||
|
||||
/** |
||||
* @author kami on 2023-10-19 10:05:00 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public class GenericPool<T> { |
||||
|
||||
private final BlockingQueue<T> pool = new LinkedBlockingQueue<>(); |
||||
|
||||
/** |
||||
* 添加对象 |
||||
* @param object 对象 |
||||
*/ |
||||
public void add(T object) { |
||||
pool.add(object); |
||||
} |
||||
|
||||
/** |
||||
* 初始化 |
||||
* @param objects 对象集合 |
||||
*/ |
||||
public void init(List<T> objects) { |
||||
pool.clear(); |
||||
pool.addAll(objects); |
||||
} |
||||
|
||||
/** |
||||
* 获取 |
||||
* @return T |
||||
*/ |
||||
public T get() { |
||||
try { |
||||
T key = pool.take(); |
||||
add(key); |
||||
return key; |
||||
} catch (InterruptedException e) { |
||||
throw new RuntimeException(e); |
||||
} |
||||
} |
||||
} |
||||
@ -0,0 +1,40 @@
|
||||
package com.biutag.supervisiondata.common.thread; |
||||
|
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; |
||||
|
||||
import java.util.concurrent.ThreadPoolExecutor; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2022/8/10 16:21 |
||||
*/ |
||||
@Configuration |
||||
public class ThreadPoolConfig { |
||||
/** |
||||
* 自定义消费队列线程池 |
||||
* CallerRunsPolicy 这个策略重试添加当前的任务,他会自动重复调用 execute() 方法,直到成功。 |
||||
* AbortPolicy 对拒绝任务抛弃处理,并且抛出异常。 |
||||
* DiscardPolicy 对拒绝任务直接无声抛弃,没有异常信息。 |
||||
* DiscardOldestPolicy 对拒绝任务不抛弃,而是抛弃队列里面等待最久的一个线程,然后把拒绝任务加到队列。 |
||||
* @return 线程池对象 |
||||
*/ |
||||
@Bean(value = "completeThread") |
||||
public ThreadPoolTaskExecutor completeThread() { |
||||
ThreadPoolTaskExecutor threadPool = new ThreadPoolTaskExecutor(); |
||||
threadPool.setCorePoolSize(4); |
||||
threadPool.setMaxPoolSize(32); |
||||
// 最大线程数
|
||||
// 队列大小
|
||||
int queueSize = 100; |
||||
threadPool.setQueueCapacity(queueSize); |
||||
threadPool.setThreadNamePrefix("han-thread-"); |
||||
// 线程最大空闲时间
|
||||
int keepAliveSeconds = 100; |
||||
threadPool.setKeepAliveSeconds(keepAliveSeconds); |
||||
threadPool.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy()); |
||||
return threadPool; |
||||
} |
||||
} |
||||
@ -0,0 +1,89 @@
|
||||
package com.biutag.supervisiondata.config.cache; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonAutoDetect; |
||||
import com.fasterxml.jackson.annotation.JsonTypeInfo; |
||||
import com.fasterxml.jackson.annotation.PropertyAccessor; |
||||
import com.fasterxml.jackson.databind.ObjectMapper; |
||||
import com.fasterxml.jackson.databind.jsontype.impl.LaissezFaireSubTypeValidator; |
||||
import org.apache.commons.pool2.impl.GenericObjectPoolConfig; |
||||
import org.springframework.beans.factory.annotation.Value; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
import org.springframework.data.redis.connection.RedisConnectionFactory; |
||||
import org.springframework.data.redis.connection.RedisStandaloneConfiguration; |
||||
import org.springframework.data.redis.connection.lettuce.LettuceClientConfiguration; |
||||
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory; |
||||
import org.springframework.data.redis.connection.lettuce.LettucePoolingClientConfiguration; |
||||
import org.springframework.data.redis.core.RedisTemplate; |
||||
import org.springframework.data.redis.serializer.GenericJackson2JsonRedisSerializer; |
||||
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer; |
||||
import org.springframework.data.redis.serializer.StringRedisSerializer; |
||||
|
||||
import java.time.Duration; |
||||
|
||||
/** |
||||
* redis配置 |
||||
* |
||||
* @author kami |
||||
* @since 2020-12-24 |
||||
*/ |
||||
@Configuration |
||||
public class RedisConfig { |
||||
|
||||
@Bean(name = "redisTemplate") |
||||
public RedisTemplate<String, Object> redisTemplate(@Value("${spring.data.redis.host}") String host, |
||||
@Value("${spring.data.redis.port}") Integer port, |
||||
@Value("${spring.data.redis.database}") Integer database, |
||||
@Value("${spring.data.redis.password}") String password, |
||||
@Value("${spring.data.redis.lettuce.pool.max-active}") int maxActive, |
||||
@Value("${spring.data.redis.lettuce.pool.max-wait}") int maxWait, |
||||
@Value("${spring.data.redis.lettuce.pool.max-idle}") int maxIdle, |
||||
@Value("${spring.data.redis.lettuce.pool.min-idle}") int minIdle) { |
||||
LettuceConnectionFactory connectionFactory = this.lettuceConnectionFactory(password,host,port,database, |
||||
maxActive, maxWait, maxIdle, minIdle); |
||||
return this.createRedisTemplate(connectionFactory); |
||||
} |
||||
|
||||
private RedisTemplate<String, Object> createRedisTemplate(RedisConnectionFactory redisConnectionFactory) { |
||||
RedisTemplate<String, Object> template = new RedisTemplate<>(); |
||||
ObjectMapper om = new ObjectMapper(); |
||||
om.setVisibility(PropertyAccessor.ALL, JsonAutoDetect.Visibility.ANY); |
||||
om.activateDefaultTyping(LaissezFaireSubTypeValidator.instance, ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.PROPERTY); |
||||
Jackson2JsonRedisSerializer<Object> jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer<>(om, Object.class); |
||||
// 设置序列化Key的实例化对象
|
||||
template.setKeySerializer(new StringRedisSerializer()); |
||||
// 设置序列化Value的实例化对象
|
||||
template.setValueSerializer(new GenericJackson2JsonRedisSerializer()); |
||||
template.setHashKeySerializer(jackson2JsonRedisSerializer); |
||||
template.setHashValueSerializer(jackson2JsonRedisSerializer); |
||||
template.setConnectionFactory(redisConnectionFactory); |
||||
return template; |
||||
} |
||||
|
||||
/** |
||||
* lettuce 连接池工厂 |
||||
* |
||||
* @param password 密码 |
||||
* @param maxActive 连接池最大连接数(使用负值表示没有限制) 默认 8 |
||||
* @param maxWait 连接池最大阻塞等待时间(使用负值表示没有限制),当连接池资源耗尽时,调用者最大阻塞的时间,超时将跑出异常。单位,毫秒数;默认为-1.表示永不超时. |
||||
* @param maxIdle 连接池中的最大空闲的连接数,默认为8 |
||||
* @param minIdle 连接池中的最少空闲的连接数,默认为0 |
||||
*/ |
||||
private LettuceConnectionFactory lettuceConnectionFactory(String password,String host,int port,int database, int maxActive, Integer maxWait, int maxIdle, int minIdle) { |
||||
RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(host,port); |
||||
redisStandaloneConfiguration.setPassword(password); |
||||
redisStandaloneConfiguration.setDatabase(database); |
||||
//线程池设置
|
||||
GenericObjectPoolConfig poolConfig = new GenericObjectPoolConfig(); |
||||
poolConfig.setMaxIdle(maxIdle); |
||||
poolConfig.setMaxTotal(maxActive); |
||||
poolConfig.setMinIdle(minIdle); |
||||
poolConfig.setMaxWait(Duration.ofSeconds(maxWait)); |
||||
LettuceClientConfiguration clientConfiguration = |
||||
LettucePoolingClientConfiguration.builder().poolConfig(poolConfig).build(); |
||||
LettuceConnectionFactory lettuceConnectionFactory = new LettuceConnectionFactory(redisStandaloneConfiguration, clientConfiguration); |
||||
lettuceConnectionFactory.setShareNativeConnection(true); |
||||
lettuceConnectionFactory.afterPropertiesSet(); |
||||
return lettuceConnectionFactory; |
||||
} |
||||
} |
||||
@ -0,0 +1,505 @@
|
||||
package com.biutag.supervisiondata.config.cache; |
||||
|
||||
import lombok.Data; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.data.redis.core.*; |
||||
import org.springframework.data.redis.support.atomic.RedisAtomicLong; |
||||
|
||||
import java.util.*; |
||||
import java.util.concurrent.TimeUnit; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @since 14:41 2020/11/24 |
||||
*/ |
||||
@Data |
||||
@Slf4j |
||||
public class RedisDao { |
||||
|
||||
private static final RedisDao REDIS_DAO = new RedisDao(); |
||||
|
||||
private RedisTemplate redis; |
||||
|
||||
private RedisDao() { |
||||
} |
||||
|
||||
public void init(RedisTemplate redisTemplate) { |
||||
redis = redisTemplate; |
||||
} |
||||
|
||||
public static RedisDao getInstance() { |
||||
return REDIS_DAO; |
||||
} |
||||
|
||||
/** |
||||
* 批量插入key,会替换已经存在key的value,三种方式批量插入:mset pinpile管道 lua表达式 |
||||
* |
||||
* @param map key:对应的reids的key, value:对应每个key的value |
||||
* 示例:MSET key1 "Hello" key2 "World |
||||
*/ |
||||
public void mset(Map<String, Object> map) { |
||||
redis.opsForValue().multiSet(map); |
||||
} |
||||
|
||||
public Boolean persist(String key) { |
||||
return redis.persist(key); |
||||
} |
||||
|
||||
public void pipeLineExec(RedisInterface redisInterface) { |
||||
redis.executePipelined((RedisCallback<Void>) connection -> { |
||||
connection.openPipeline(); |
||||
redisInterface.run(connection, redis.getKeySerializer(), redis.getValueSerializer()); |
||||
connection.close(); |
||||
return null; |
||||
}); |
||||
} |
||||
|
||||
/** |
||||
* 获取整个list |
||||
*/ |
||||
public List list(String key) { |
||||
return redis.boundListOps(key).range(0, -1); |
||||
} |
||||
|
||||
/** |
||||
* 获取list大小 |
||||
*/ |
||||
public long listSize(String key) { |
||||
return redis.boundListOps(key).size(); |
||||
} |
||||
|
||||
/** |
||||
* 获取list指定下表对象 |
||||
*/ |
||||
public Object listIndex(String key, long index) { |
||||
return redis.boundListOps(key).index(index); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 从right存入list的一个值 |
||||
*/ |
||||
public void rightPush(String key, Object value) { |
||||
redis.boundListOps(key).rightPush(value); |
||||
} |
||||
|
||||
public List<String> pipelinGet(String... keys) { |
||||
return redis.executePipelined((RedisCallback<String>) connection -> { |
||||
connection.openPipeline(); |
||||
for (int i = 0, arrLen = keys.length; i < arrLen; i++) { |
||||
connection.get(redis.getKeySerializer().serialize(keys[i])); |
||||
} |
||||
return null; |
||||
}, redis.getValueSerializer()); |
||||
} |
||||
|
||||
public List<String> pipelinGet(List<String> keys) { |
||||
return redis.executePipelined((RedisCallback<String>) connection -> { |
||||
connection.openPipeline(); |
||||
for (int i = 0, arrLen = keys.size(); i < arrLen; i++) { |
||||
connection.get(redis.getKeySerializer().serialize(keys.get(i))); |
||||
} |
||||
return null; |
||||
}, redis.getValueSerializer()); |
||||
} |
||||
|
||||
public Boolean getBit(String key, int offset) { |
||||
return redis.opsForValue().getBit(key, offset); |
||||
} |
||||
|
||||
public Boolean setBit(String key, int offset, Boolean b) { |
||||
return redis.opsForValue().setBit(key, offset, b); |
||||
} |
||||
|
||||
/** |
||||
* 从right存入list |
||||
*/ |
||||
public void rightPushAll(String key, Object value) { |
||||
redis.boundListOps(key).rightPushAll(value); |
||||
} |
||||
|
||||
/** |
||||
* 弹出list左边的一个对象 |
||||
*/ |
||||
public Object leftPop(String key, long timeout) { |
||||
return redis.opsForList().leftPop(key, timeout, TimeUnit.SECONDS); |
||||
} |
||||
|
||||
/** |
||||
* 弹出list左边的一个对象 |
||||
*/ |
||||
public Object leftPush(String key, String val) { |
||||
return redis.boundListOps(key).leftPush(key, val); |
||||
} |
||||
|
||||
/** |
||||
* 弹出list左边的一个对象 |
||||
*/ |
||||
public Object leftPop(String key) { |
||||
return redis.boundListOps(key).leftPop(); |
||||
} |
||||
|
||||
public void removeListAll(String key) { |
||||
redis.boundListOps(key).trim(1, 0); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 批量获取key |
||||
*/ |
||||
public List<Object> mget(List<String> keys) { |
||||
return redis.opsForValue().multiGet(keys); |
||||
} |
||||
|
||||
/** |
||||
* set如果存在则设置(string存储) |
||||
*/ |
||||
public boolean setIfAbsent(String key, Object value) { |
||||
boolean success = redis.opsForValue().setIfAbsent(key, value); |
||||
if (success) { |
||||
redis.expire(key, 3, TimeUnit.DAYS); |
||||
} |
||||
return success; |
||||
} |
||||
|
||||
/** |
||||
* set如果存在则设置(string存储) |
||||
*/ |
||||
public boolean setIfAbsent(String key, String value, long timeout, TimeUnit unit) { |
||||
return redis.opsForValue().setIfAbsent(key, value, timeout, unit); |
||||
} |
||||
|
||||
/** |
||||
* set如果存在则设置(map存储) |
||||
*/ |
||||
public boolean setIfAbsent(String mapName, String key, String value) { |
||||
return redis.boundHashOps(mapName).putIfAbsent(key, value); |
||||
} |
||||
|
||||
/** |
||||
* 单个key存储, 注意:批量插入请尽量使用mset方法,否则效率非常低,而且事务不好处理 |
||||
*/ |
||||
public void set(String key, Object value) { |
||||
redis.opsForValue().set(key, value, 30, TimeUnit.DAYS); |
||||
} |
||||
|
||||
public void setOver(String key, Object value) { |
||||
redis.opsForValue().set(key, value, 0); |
||||
} |
||||
|
||||
/** |
||||
* 单个key存储,且设置过期时间 |
||||
* |
||||
* @param key |
||||
* @param value |
||||
* @param timeOut 过期时间 单位:s |
||||
*/ |
||||
public void set(String key, Object value, long timeOut) { |
||||
redis.opsForValue().set(key, value, timeOut, TimeUnit.SECONDS); |
||||
} |
||||
|
||||
public Object get(String key) { |
||||
return redis.opsForValue().get(key); |
||||
} |
||||
|
||||
public Object getAndDelete(String key) { |
||||
return redis.opsForValue().getAndDelete(key); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* @param key |
||||
* @return |
||||
* @Title: generate |
||||
* @Description: Atomically increments by one the current value. |
||||
*/ |
||||
public long generate(String key) { |
||||
RedisAtomicLong counter = new RedisAtomicLong(key, redis.getConnectionFactory()); |
||||
return counter.incrementAndGet(); |
||||
} |
||||
|
||||
/** |
||||
* key重命名 |
||||
* |
||||
* @param odlKey |
||||
* @param newKey |
||||
*/ |
||||
@SuppressWarnings("unchecked") |
||||
public void rename(final String odlKey, final String newKey) { |
||||
redis.rename(odlKey, newKey); |
||||
} |
||||
|
||||
/** |
||||
* 删除缓存 |
||||
* 根据key精确匹配删除 |
||||
* |
||||
* @param keys |
||||
*/ |
||||
public void remove(List<String> keys) { |
||||
if (keys == null || keys.isEmpty()) { |
||||
return; |
||||
} |
||||
redis.delete(keys); |
||||
} |
||||
|
||||
public void remove(String key) { |
||||
redis.delete(key); |
||||
} |
||||
|
||||
/** |
||||
* 批量删除<br> |
||||
* (该操作会执行模糊查询,请尽量不要使用,以免影响性能或误删) |
||||
*/ |
||||
public void batchDel(String... pattern) { |
||||
for (String kp : pattern) { |
||||
redis.delete(redis.keys(kp + "*")); |
||||
} |
||||
} |
||||
|
||||
/** |
||||
* 查询key是否存在 |
||||
*/ |
||||
public boolean exists(final String key) { |
||||
return redis.hasKey(key); |
||||
} |
||||
|
||||
/** |
||||
* 设置key在某一个时刻(timeout)时效 |
||||
*/ |
||||
public boolean expireAt(String key, Date timeout) { |
||||
return redis.expireAt(key, timeout); |
||||
} |
||||
|
||||
/** |
||||
* 设置key的时效时间 |
||||
*/ |
||||
public boolean expire(String key, long timeout, TimeUnit unit) { |
||||
return redis.expire(key, timeout, unit); |
||||
} |
||||
|
||||
/** |
||||
* 获取key的有效时间,单位是seconds |
||||
*/ |
||||
public Long getExpire(String key) { |
||||
return redis.getExpire(key); |
||||
} |
||||
|
||||
/** |
||||
* 根据正在表达式获取key |
||||
*/ |
||||
public Set<String> keys(String pattern) { |
||||
return redis.keys(pattern); |
||||
} |
||||
|
||||
/** |
||||
* scan 实现 |
||||
*/ |
||||
public Set<String> scan(String pattern) { |
||||
return (Set<String>) redis.execute((RedisCallback<Set<String>>) connection -> { |
||||
Set<String> keysTmp = new HashSet<>(); |
||||
try (Cursor<byte[]> cursor = connection.scan(ScanOptions.scanOptions().match(pattern).count(10000).build())) { |
||||
while (cursor.hasNext()) { |
||||
keysTmp.add(new String(cursor.next(), "Utf-8")); |
||||
} |
||||
} catch (Exception e) { |
||||
log.error(e.getMessage()); |
||||
throw new RuntimeException(e); |
||||
} |
||||
return keysTmp; |
||||
}); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 返回key的数量 |
||||
*/ |
||||
public long dbSize() { |
||||
return (long) redis.execute((RedisCallback) connection -> connection.dbSize()); |
||||
} |
||||
|
||||
/** |
||||
* 如果后面没有参数时返回PONG,否则会返回后面带的参数。 这个命令经常用来测试一个连接是否还是可用的,或者用来测试一个连接的延时。 |
||||
* 如果客户端处于频道订阅模式下,它将是一个multi-bulk返回,第一次时返回"pong",之后返回空(empty bulk),除非命令后面更随了参数。 |
||||
*/ |
||||
public String ping() { |
||||
return (String) redis.execute((RedisCallback) connection -> connection.ping()); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 储存MAP, |
||||
*/ |
||||
public void saveMapAll(String key, Map objMap) { |
||||
redis.boundHashOps(key).putAll(objMap); |
||||
} |
||||
|
||||
/** |
||||
* 存储单个map的key |
||||
*/ |
||||
public void saveMapKey(String mapName, String mapKey, Object value) { |
||||
redis.boundHashOps(mapName).put(mapKey, value); |
||||
} |
||||
|
||||
/** |
||||
* 删除某个map中的key |
||||
*/ |
||||
public Long removeMapKey(String mapName, String mapKey) { |
||||
return redis.boundHashOps(mapName).delete(mapKey); |
||||
} |
||||
|
||||
/** |
||||
* 获取整个MAP,包括key与value, |
||||
*/ |
||||
public Map hGetAll(String key) { |
||||
return redis.boundHashOps(key).entries(); |
||||
} |
||||
|
||||
/** |
||||
* 获取MAP的某个key值 |
||||
*/ |
||||
public Object hGet(String key, String mapKey) { |
||||
return redis.boundHashOps(key).get(mapKey); |
||||
} |
||||
|
||||
|
||||
/** |
||||
* 获取MAP的某几个key值, |
||||
*/ |
||||
public Object hMget(final String key, List<String> keys) { |
||||
return redis.boundHashOps(key).multiGet(keys); |
||||
} |
||||
|
||||
/** |
||||
* map的某个key自增 |
||||
*/ |
||||
public double mapKeyIncry(String mapeName, String mapKey, double loanAmount) { |
||||
BoundHashOperations<String, String, Object> ops = redis.boundHashOps(mapeName); |
||||
if (!ops.putIfAbsent(mapKey, loanAmount)) { |
||||
return ops.increment(mapKey, loanAmount); |
||||
} |
||||
return loanAmount; |
||||
} |
||||
|
||||
/** |
||||
* map的某个key自增,并设置超时时间 |
||||
*/ |
||||
public double mapKeyIncryAndExpire(String mapeName, String mapKey, double loanAmount, Long timeoutHours) { |
||||
BoundHashOperations<String, String, Object> ops = redis.boundHashOps(mapeName); |
||||
if (ops.putIfAbsent(mapKey, loanAmount)) { |
||||
redis.expire(mapeName, timeoutHours, TimeUnit.HOURS); |
||||
} else { |
||||
return ops.increment(mapKey, loanAmount); |
||||
} |
||||
return loanAmount; |
||||
} |
||||
|
||||
|
||||
/** |
||||
* key 自增+1 |
||||
*/ |
||||
public Long incry(String key, int timeOut) { |
||||
Long result = redis.opsForValue().increment(key, 1L); |
||||
this.expire(key, timeOut, TimeUnit.MINUTES); |
||||
return result; |
||||
} |
||||
|
||||
/** |
||||
* key 自增+1 |
||||
*/ |
||||
public Long incry(String key) { |
||||
Long result = redis.opsForValue().increment(key, 1L); |
||||
return result; |
||||
} |
||||
|
||||
public void zset(String zSetKey, String member, double score) { |
||||
redis.boundZSetOps(zSetKey).add(member, score); |
||||
} |
||||
|
||||
public long zremove(String zSetKey, String member) { |
||||
return redis.boundZSetOps(zSetKey).remove(member); |
||||
} |
||||
|
||||
public Set<ZSetOperations.TypedTuple> zrange(String zSetKey, long begin, long end) { |
||||
return redis.boundZSetOps(zSetKey).rangeWithScores(begin, end); |
||||
} |
||||
|
||||
|
||||
public void hSet(String key, String mapKey, String mapValue) { |
||||
redis.boundHashOps(key).put(mapKey, mapValue); |
||||
} |
||||
|
||||
public void hSet(String key, String mapKey, Object mapValue) { |
||||
redis.boundHashOps(key).put(mapKey, mapValue); |
||||
} |
||||
|
||||
public Long hDele(String key, String mapKey) { |
||||
return redis.boundHashOps(key).delete(mapKey); |
||||
} |
||||
|
||||
public Map<String, Object> hScan(String key, int length) { |
||||
ScanOptions scanOptions = ScanOptions.scanOptions().count(length).build(); |
||||
Cursor<Map.Entry<String, Object>> result = redis.boundHashOps(key).scan(scanOptions); |
||||
Map<String, Object> elements = new HashMap<>(16); |
||||
int count = 0; |
||||
while (result.hasNext() && count++ < length) { |
||||
Map.Entry<String, Object> entry = result.next(); |
||||
elements.put(entry.getKey(), entry.getValue()); |
||||
} |
||||
try { |
||||
result.close(); |
||||
} catch (Exception e) { |
||||
log.error("redis异常:" , e); |
||||
} |
||||
|
||||
return elements; |
||||
} |
||||
|
||||
|
||||
public Double zget(String zSetKey, String member) { |
||||
return redis.boundZSetOps(zSetKey).score(member); |
||||
} |
||||
|
||||
/** |
||||
* 保存 |
||||
*/ |
||||
public void opsForHashSave(String group, String key, Object o) { |
||||
redis.opsForHash().put(group, key, o); |
||||
} |
||||
|
||||
/** |
||||
* 是否存在 |
||||
*/ |
||||
public boolean opsForHashExsit(String group, String key) { |
||||
return redis.opsForHash().hasKey(group, key); |
||||
} |
||||
|
||||
/** |
||||
* 按key删除 |
||||
*/ |
||||
public void opsForHashDel(String group, String key) { |
||||
redis.opsForHash().delete(group, key); |
||||
} |
||||
|
||||
/** |
||||
* 删除所有 |
||||
*/ |
||||
public void opsForHashDelAll(String group) { |
||||
redis.delete(group); |
||||
} |
||||
|
||||
/** |
||||
* 获取所有 |
||||
*/ |
||||
public List opsForHashGet(String group) { |
||||
return redis.opsForHash().values(group); |
||||
} |
||||
|
||||
public Object opsForHashGetByGroupAndKey(String group, String key) { |
||||
return redis.opsForHash().get(group, key); |
||||
} |
||||
|
||||
public Map opsForHashGetMap(String group) { |
||||
return redis.opsForHash().entries(group); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.config.cache; |
||||
|
||||
import org.springframework.data.redis.connection.RedisConnection; |
||||
import org.springframework.data.redis.serializer.RedisSerializer; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2022/1/9 17:30 |
||||
*/ |
||||
@FunctionalInterface |
||||
public interface RedisInterface { |
||||
|
||||
void run(RedisConnection connection, RedisSerializer key, RedisSerializer value); |
||||
} |
||||
@ -0,0 +1,67 @@
|
||||
package com.biutag.supervisiondata.config.db; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.DbType; |
||||
import com.baomidou.mybatisplus.core.config.GlobalConfig; |
||||
import com.baomidou.mybatisplus.core.toolkit.GlobalConfigUtils; |
||||
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
||||
import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean; |
||||
import com.zaxxer.hikari.HikariDataSource; |
||||
import org.apache.ibatis.session.SqlSessionFactory; |
||||
import org.mybatis.spring.annotation.MapperScan; |
||||
import org.springframework.beans.factory.annotation.Qualifier; |
||||
import org.springframework.boot.context.properties.ConfigurationProperties; |
||||
import org.springframework.boot.jdbc.DataSourceBuilder; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
import org.springframework.context.annotation.Primary; |
||||
import org.springframework.core.io.support.PathMatchingResourcePatternResolver; |
||||
import org.springframework.jdbc.datasource.DataSourceTransactionManager; |
||||
|
||||
import javax.sql.DataSource; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-09 10:29:41 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Configuration |
||||
@MapperScan(basePackages = {"com.biutag.supervisiondata.mapper.ads"}, |
||||
sqlSessionFactoryRef = "adsSqlSessionFactory") |
||||
public class Ads { |
||||
|
||||
@Bean(name = "adsBean") |
||||
@ConfigurationProperties(prefix = "spring.datasource.ads") |
||||
public DataSource adsDataSource() { |
||||
return DataSourceBuilder.create().type(HikariDataSource.class).build(); |
||||
} |
||||
|
||||
@Bean(name = "adsTransactionManager") |
||||
public DataSourceTransactionManager adsTransactionManager() { |
||||
return new DataSourceTransactionManager(adsDataSource()); |
||||
} |
||||
|
||||
@Bean(name = "adsSqlSessionFactory") |
||||
public SqlSessionFactory adsSqlSessionFactory(@Qualifier("adsBean") DataSource mysqlDataSource, |
||||
@Qualifier("adsInterceptor") MybatisPlusInterceptor mybatisPlusInterceptor) throws Exception { |
||||
final MybatisSqlSessionFactoryBean sessionFactory = new MybatisSqlSessionFactoryBean(); |
||||
sessionFactory.setPlugins(mybatisPlusInterceptor); |
||||
sessionFactory.setDataSource(mysqlDataSource); |
||||
PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); |
||||
sessionFactory.setMapperLocations(resolver.getResources("classpath:mapper/ads/*Mapper.xml")); |
||||
GlobalConfig globalConfig = GlobalConfigUtils.defaults(); |
||||
sessionFactory.setGlobalConfig(globalConfig); |
||||
return sessionFactory.getObject(); |
||||
} |
||||
|
||||
/** |
||||
* mp分页配置 |
||||
* @return MybatisPlusInterceptor |
||||
*/ |
||||
@Bean(name = "adsInterceptor") |
||||
public MybatisPlusInterceptor mybatisPlusInterceptor() { |
||||
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
||||
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.GBASE)); |
||||
return interceptor; |
||||
} |
||||
} |
||||
@ -0,0 +1,67 @@
|
||||
package com.biutag.supervisiondata.config.db; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.DbType; |
||||
import com.baomidou.mybatisplus.core.config.GlobalConfig; |
||||
import com.baomidou.mybatisplus.core.toolkit.GlobalConfigUtils; |
||||
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
||||
import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean; |
||||
import com.zaxxer.hikari.HikariDataSource; |
||||
import org.apache.ibatis.session.SqlSessionFactory; |
||||
import org.mybatis.spring.annotation.MapperScan; |
||||
import org.springframework.beans.factory.annotation.Qualifier; |
||||
import org.springframework.boot.context.properties.ConfigurationProperties; |
||||
import org.springframework.boot.jdbc.DataSourceBuilder; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
import org.springframework.context.annotation.Primary; |
||||
import org.springframework.core.io.support.PathMatchingResourcePatternResolver; |
||||
import org.springframework.jdbc.datasource.DataSourceTransactionManager; |
||||
|
||||
import javax.sql.DataSource; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-09 10:29:41 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Configuration |
||||
@MapperScan(basePackages = {"com.biutag.supervisiondata.mapper.dwd"}, |
||||
sqlSessionFactoryRef = "dwdSqlSessionFactory") |
||||
public class Dwd { |
||||
|
||||
@Bean(name = "dwdBean") |
||||
@ConfigurationProperties(prefix = "spring.datasource.dwd") |
||||
public DataSource dwdDataSource() { |
||||
return DataSourceBuilder.create().type(HikariDataSource.class).build(); |
||||
} |
||||
|
||||
@Bean(name = "dwdTransactionManager") |
||||
public DataSourceTransactionManager dwdTransactionManager() { |
||||
return new DataSourceTransactionManager(dwdDataSource()); |
||||
} |
||||
|
||||
@Bean(name = "dwdSqlSessionFactory") |
||||
public SqlSessionFactory dwdSqlSessionFactory(@Qualifier("dwdBean") DataSource mysqlDataSource, |
||||
@Qualifier("dwdInterceptor") MybatisPlusInterceptor mybatisPlusInterceptor) throws Exception { |
||||
final MybatisSqlSessionFactoryBean sessionFactory = new MybatisSqlSessionFactoryBean(); |
||||
sessionFactory.setPlugins(mybatisPlusInterceptor); |
||||
sessionFactory.setDataSource(mysqlDataSource); |
||||
PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); |
||||
sessionFactory.setMapperLocations(resolver.getResources("classpath:mapper/dwd/*Mapper.xml")); |
||||
GlobalConfig globalConfig = GlobalConfigUtils.defaults(); |
||||
sessionFactory.setGlobalConfig(globalConfig); |
||||
return sessionFactory.getObject(); |
||||
} |
||||
|
||||
/** |
||||
* mp分页配置 |
||||
* @return MybatisPlusInterceptor |
||||
*/ |
||||
@Bean(name = "dwdInterceptor") |
||||
public MybatisPlusInterceptor mybatisPlusInterceptor() { |
||||
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
||||
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.GBASE)); |
||||
return interceptor; |
||||
} |
||||
} |
||||
@ -0,0 +1,82 @@
|
||||
package com.biutag.supervisiondata.config.db; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.DbType; |
||||
import com.baomidou.mybatisplus.core.MybatisConfiguration; |
||||
import com.baomidou.mybatisplus.core.config.GlobalConfig; |
||||
import com.baomidou.mybatisplus.core.toolkit.GlobalConfigUtils; |
||||
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; |
||||
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor; |
||||
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; |
||||
import com.baomidou.mybatisplus.extension.spring.MybatisSqlSessionFactoryBean; |
||||
import com.zaxxer.hikari.HikariDataSource; |
||||
import org.apache.ibatis.session.SqlSessionFactory; |
||||
import org.apache.ibatis.type.JdbcType; |
||||
import org.mybatis.spring.annotation.MapperScan; |
||||
import org.springframework.beans.factory.annotation.Qualifier; |
||||
import org.springframework.boot.context.properties.ConfigurationProperties; |
||||
import org.springframework.boot.jdbc.DataSourceBuilder; |
||||
import org.springframework.context.annotation.Bean; |
||||
import org.springframework.context.annotation.Configuration; |
||||
import org.springframework.context.annotation.Primary; |
||||
import org.springframework.core.io.support.PathMatchingResourcePatternResolver; |
||||
import org.springframework.jdbc.datasource.DataSourceTransactionManager; |
||||
|
||||
import javax.sql.DataSource; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @since 10:22 2020/4/5 |
||||
*/ |
||||
|
||||
@Configuration |
||||
@MapperScan(basePackages = {"com.biutag.supervisiondata.mapper.mine"}, |
||||
sqlSessionFactoryRef = "sqlSessionFactory") |
||||
public class Mine { |
||||
|
||||
@Primary |
||||
@Bean(name = "chaosBean") |
||||
@ConfigurationProperties(prefix = "spring.datasource.mine") |
||||
public DataSource mysqlDataSource() { |
||||
return DataSourceBuilder.create() |
||||
.type(HikariDataSource.class).build(); |
||||
} |
||||
|
||||
@Primary |
||||
@Bean(name = "transactionManager") |
||||
public DataSourceTransactionManager transactionManager() { |
||||
return new DataSourceTransactionManager(mysqlDataSource()); |
||||
} |
||||
|
||||
@Primary |
||||
@Bean(name = "sqlSessionFactory") |
||||
public SqlSessionFactory mysqlSqlSessionFactory(@Qualifier("chaosBean") DataSource mysqlDataSource) throws Exception { |
||||
final MybatisSqlSessionFactoryBean sessionFactory = new MybatisSqlSessionFactoryBean(); |
||||
MybatisPlusInterceptor mybatisPlusInterceptor = new MybatisPlusInterceptor(); |
||||
mybatisPlusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor()); |
||||
sessionFactory.setPlugins(mybatisPlusInterceptor); |
||||
sessionFactory.setDataSource(mysqlDataSource); |
||||
PathMatchingResourcePatternResolver resolver = new PathMatchingResourcePatternResolver(); |
||||
sessionFactory.setMapperLocations(resolver.getResources("classpath:mapper/mine/*Mapper.xml")); |
||||
GlobalConfig globalConfig = GlobalConfigUtils |
||||
.defaults(); |
||||
sessionFactory.setGlobalConfig(globalConfig); |
||||
MybatisConfiguration configuration = new MybatisConfiguration(); |
||||
configuration.setJdbcTypeForNull(JdbcType.NULL); |
||||
configuration.setMapUnderscoreToCamelCase(true); |
||||
configuration.setDatabaseId(DbType.MYSQL.getDb()); |
||||
sessionFactory.setConfiguration(configuration); |
||||
return sessionFactory.getObject(); |
||||
} |
||||
|
||||
/** |
||||
* mp分页配置 |
||||
* @return MybatisPlusInterceptor |
||||
*/ |
||||
@Bean(name = "interceptor") |
||||
public MybatisPlusInterceptor mybatisPlusInterceptor() { |
||||
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); |
||||
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); |
||||
return interceptor; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,137 @@
|
||||
package com.biutag.supervisiondata.event; |
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
||||
import com.biutag.supervisiondata.common.interfaces.CompletableFutureUtil; |
||||
import com.biutag.supervisiondata.config.cache.RedisDao; |
||||
import com.biutag.supervisiondata.pojo.domain.TaskParamDomain; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseJJD; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskModelTaskClue; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonal; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonalTag; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskTest; |
||||
import com.biutag.supervisiondata.repository.*; |
||||
import com.biutag.supervisiondata.service.*; |
||||
import jakarta.annotation.PreDestroy; |
||||
import jakarta.annotation.Resource; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
import org.springframework.boot.context.event.ApplicationReadyEvent; |
||||
import org.springframework.context.event.EventListener; |
||||
import org.springframework.data.redis.core.RedisTemplate; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
import java.time.LocalDateTime; |
||||
import java.time.format.DateTimeFormatter; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
import java.util.Map; |
||||
import java.util.stream.Collectors; |
||||
|
||||
|
||||
/** |
||||
* @author kami on 2024-01-15 14:34:27 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Component |
||||
@Slf4j |
||||
public class ApplicationEvent { |
||||
|
||||
@Resource |
||||
RedisTemplate redisTemplate; |
||||
|
||||
@Resource |
||||
private GBaseJJDService gBaseJJDService; |
||||
|
||||
@Resource |
||||
private GBaseSHRWFRService gBaseSHRWFRService; |
||||
|
||||
@Resource |
||||
private RiskTaskService riskTaskService; |
||||
|
||||
@Resource |
||||
private RiskModelTaskClueRepository riskModelTaskClueRepository; |
||||
|
||||
@Resource |
||||
private RiskPersonalRepository riskPersonalRepository; |
||||
|
||||
@Resource |
||||
private RiskPersonalService riskPersonalService; |
||||
|
||||
@Resource |
||||
private GBaseBAService gBaseBAService; |
||||
|
||||
@Resource |
||||
private PoliceService policeService; |
||||
|
||||
@Resource |
||||
private HabitService habitService; |
||||
|
||||
@Resource |
||||
private MarriageService marriageService; |
||||
|
||||
@Resource |
||||
private RiskPersonalTagRepository riskPersonalTagRepository; |
||||
|
||||
@Resource |
||||
private RiskTestRepository riskTestRepository; |
||||
|
||||
@Resource |
||||
private PetitionService petitionService; |
||||
|
||||
@Resource |
||||
private PointService pointService; |
||||
|
||||
@Resource |
||||
private NoControlService noControlService; |
||||
|
||||
@Resource |
||||
private RiskScoreRuleService riskScoreRuleService; |
||||
|
||||
@Resource |
||||
private RiskModelTaskClueRepository taskClueRepository; |
||||
|
||||
|
||||
@EventListener(ApplicationReadyEvent.class) |
||||
public void serviceReady() { |
||||
RedisDao.getInstance().init(redisTemplate); |
||||
|
||||
LocalDateTime start = LocalDateTime.of(2024, 1, 1, 0, 0, 0); |
||||
LocalDateTime end = LocalDateTime.now(); |
||||
CompletableFutureUtil.runSync(() -> { |
||||
// gBaseJJDService.pullAndSave(start, end);
|
||||
// gBaseSHRWFRService.pullAndSave(start, end);
|
||||
// petitionService.personPullAndSave(start, end);
|
||||
// pointService.personPullAndSave(start, end);
|
||||
// riskPersonalService.fixed();
|
||||
|
||||
List<RiskPersonal> persons = riskPersonalRepository.list(); |
||||
List<RiskModelTaskClue> clues = riskModelTaskClueRepository.list(new LambdaQueryWrapper<RiskModelTaskClue>() |
||||
.eq(RiskModelTaskClue::getDel, 0)); |
||||
Map<Integer, List<RiskModelTaskClue>> map = clues.stream().collect(Collectors.groupingBy(RiskModelTaskClue::getModelId)); |
||||
TaskParamDomain domain = new TaskParamDomain(persons, map); |
||||
// riskTaskService.eduModelTask(domain);
|
||||
// riskTaskService.infoModelTask(domain);
|
||||
// riskTaskService.caseModelTask(domain);
|
||||
// gBaseBAService.baModelTask(domain);
|
||||
// policeService.contradictModelTask(domain);
|
||||
// habitService.habitModelTask(domain);
|
||||
// marriageService.marriageModelTask(domain);
|
||||
// petitionService.petitionModelTask(domain);
|
||||
// riskTaskService.riskAreaModelTask(domain);
|
||||
// riskTaskService.heightFight(domain);
|
||||
// pointService.syncScore(domain);
|
||||
// pointService.syncViolence(domain);
|
||||
// noControlService.syncNoControlData(domain);
|
||||
// pointService.syncKillSelf(domain);
|
||||
// pointService.syncDrug(domain);
|
||||
// pointService.syncControlNoPower(domain);
|
||||
// riskScoreRuleService.runScore();
|
||||
pointService.syncPointCall(domain); |
||||
}); |
||||
} |
||||
|
||||
@PreDestroy |
||||
public void shutdown() { |
||||
// 系统关闭
|
||||
} |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.lock; |
||||
|
||||
import lombok.experimental.UtilityClass; |
||||
|
||||
/** |
||||
* 本地锁 |
||||
* @author kami on 2024-11-19 15:36:23 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@UtilityClass |
||||
public class LocalLock { |
||||
|
||||
public static boolean scoreLock = false; |
||||
} |
||||
@ -0,0 +1,57 @@
|
||||
package com.biutag.supervisiondata.mapper.ads; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.domain.FightMan; |
||||
import com.biutag.supervisiondata.pojo.entity.ads.GBaseSYRKXX; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseWFRXX; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-08 20:02:45 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseSYRKXXMapper extends BaseMapper<GBaseSYRKXX> { |
||||
/** |
||||
* 根据身份证号码查询 |
||||
* @param idCode 身份证号码 |
||||
* @return 对应数据 |
||||
*/ |
||||
@Select("select gmsfhm, xm, xbdm, csrq, lxdh from ads_ssxx_syrkxx where gmsfhm = #{idCode}") |
||||
List<GBaseSYRKXX> selectByIdCode(@Param("idCode")String idCode); |
||||
|
||||
/** |
||||
* 根据联系电话查询 |
||||
* @param mobileNumber 联系电话 |
||||
* @return 对应数据 |
||||
*/ |
||||
@Select("select gmsfhm, xm, xbdm, csrq, lxdh from ads_ssxx_syrkxx where lxdh = #{mobileNumber}") |
||||
List<GBaseSYRKXX> selectByMobileNumber(@Param("mobileNumber")String mobileNumber); |
||||
|
||||
/** |
||||
* 查看高风险 |
||||
* @param time 开始时间 |
||||
* @return 信息 |
||||
*/ |
||||
@Select(" select DISTINCT a.gmsfhm,a.xm,a.lxdh from csga_dwd.dwd_qt_jzpt_mdjfdsrxx a " + |
||||
" inner join csga_dwd.dwd_wp_zfba_xzjljstzs b on a.gmsfhm = b.zjhm " + |
||||
" where a.djsj >= #{time}") |
||||
List<GBaseSYRKXX> selectHeightFight(@Param("time")String time); |
||||
|
||||
/** |
||||
* 查人纠纷的次数 |
||||
* @return 列表 |
||||
*/ |
||||
@Select("<script>" + |
||||
" SELECT gmsfhm,count(1) as fightCount, count(DISTINCT substr(djsj, 0, 10)) as dateCount FROM csga_dwd.dwd_qt_jzpt_mdjfdsrxx " + |
||||
" WHERE djsj >= '2024-01-01 00:00:00' and gmsfhm in " + |
||||
" (<foreach collection='list' separator=',' item='item'> " + |
||||
" #{item}" + |
||||
" </foreach>) group by gmsfhm" + |
||||
"</script>") |
||||
List<FightMan> selectListByIdCode(@Param("list")List<String> list); |
||||
|
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseAJJBXX; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 15:14:34 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseAJJBXXMapper extends BaseMapper<GBaseAJJBXX> { |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseBAXX; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-12 18:04:49 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseBAXXMapper extends BaseMapper<GBaseBAXX> { |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseBAYJ; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-12 18:03:57 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseBAYJMapper extends BaseMapper<GBaseBAYJ> { |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseHY; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-13 15:17:29 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseHYMapper extends BaseMapper<GBaseHY> { |
||||
} |
||||
File diff suppressed because one or more lines are too long
@ -0,0 +1,28 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseAJJBXX; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseSHRXX; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 15:14:34 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseSHRXXMapper extends BaseMapper<GBaseSHRXX> { |
||||
|
||||
/** |
||||
* 查询受害人信息数据(为了转化成风险人员) |
||||
* @param startTime 查询开始时间(处警时间) |
||||
* @param endTime 查询结束时间(处警时间) |
||||
* @return 列表 |
||||
*/ |
||||
@Select(" select ajbh,gmsfhm,xm,xbdm,lxdh from dwd_asj_zfba_shrxx " + |
||||
" where shrq between #{startTime} and #{endTime} " + |
||||
" and ajbh is not null") |
||||
List<GBaseSHRXX> selectDataToRisk(@Param("startTime")String startTime, @Param("endTime")String endTime); |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseTbDZdrylb; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-20 16:20:45 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseTbDZdrylbMapper extends BaseMapper<GBaseTbDZdrylb> { |
||||
} |
||||
@ -0,0 +1,40 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseSHRXX; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseWFRXX; |
||||
import org.apache.ibatis.annotations.Param; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 15:14:34 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseWFRXXMapper extends BaseMapper<GBaseWFRXX> { |
||||
|
||||
/** |
||||
* 查询违法人信息数据(为了转化成风险人员) |
||||
* @param startTime 查询开始时间(处警时间) |
||||
* @param endTime 查询结束时间(处警时间) |
||||
* @return 列表 |
||||
*/ |
||||
@Select(" select ajbh,zjhm,xm,xbdm,lxdh from dwd_ry_zfba_wfryxx " + |
||||
" where lrsj between #{startTime} and #{endTime} " + |
||||
" and ajbh is not null") |
||||
List<GBaseWFRXX> selectDataToRisk(@Param("startTime")String startTime, @Param("endTime")String endTime); |
||||
|
||||
/** |
||||
* @return 列表 |
||||
*/ |
||||
@Select("<script>" + |
||||
" select ajbh,zjhm,sxzm from dwd_ry_zfba_wfryxx where zjhm in ( " + |
||||
" <foreach collection='list' separator=',' item='item'> " + |
||||
" #{item}" + |
||||
" </foreach>" + |
||||
" ) "+ |
||||
"</script>") |
||||
List<GBaseWFRXX> selectListByIdCode(@Param("list")List<String> list); |
||||
} |
||||
@ -0,0 +1,69 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.domain.*; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseZDRY; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-15 17:15:12 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseZDRYMapper extends BaseMapper<GBaseZDRY> { |
||||
|
||||
@Select(" select bjzdrybh,xm, sfzh,zdrylbbj, zdrylxfs,gxdw,gxdwjgdm,xzdpcs, xzdpcsdm, xzdzrr, xzdzrrlxfs, zdryxl,jlbgsj, zkztdm " + |
||||
" from dwd_ry_zddxgk_zdry " + |
||||
" where sfzh is not null") |
||||
List<GBaseZDRY> syncPointPeople(); |
||||
|
||||
@Select(" select a.AJBH as ajbh, a.AJMC as ajmc, a.JYAQ as jyaq, a.BARQ as barq, b.XM as xm, b.XBmc as xbmc, b.ZJHM as zjhm, a.AJLBmc as ajlbmc, b.WFSS as wfss, a.BADWIDdm as badwiddm, a.BADWIDmc as badwidmc " + |
||||
" from csga_dwd.dwd_asj_zfba_ajjbxx a, csga_dwd.dwd_ry_zfba_wfryxx b, csga_wdpcdb.wdpc_grjd_flxx c " + |
||||
" where a.ajbh = b.ajbh and a.AJLBdm = c.AJLBdm and c.LXDM = '3' AND a.BARQ > DATE_ADD(now(), INTERVAL -12 MONTH) ") |
||||
List<Violence> syncViolencePerson(); |
||||
@Select("SELECT jjdbh, bjsj, bjrxm, IF(LENGTH(bjrlxdh) < 11, REGEXP_SUBSTR(bjnr, '[0-9]{11}'), bjrlxdh) AS bjrlxdh, IF(bjrzjhm IS NULL, REGEXP_SUBSTR(bjnr, '[0-9]{17}[0-9Xx]'), bjrzjhm) as bjrzjhm, bjnr, cjqk, gxdwdm, gxdwmc FROM `dwd_asj_zhtx_jjd` where (jqxzdm like '020107%' OR jqbz like '%个人极端%' ) AND bjsj > DATE_ADD(now(), INTERVAL -12 MONTH)") |
||||
List<Extreme> syncKillSelf(); |
||||
|
||||
@Select(" SELECT jjdbh, bjsj, bjrxm, IF(LENGTH(bjrlxdh) < 11, REGEXP_SUBSTR(bjnr, '[0-9]{11}'), bjrlxdh) AS bjrlxdh, IF(bjrzjhm IS NULL, REGEXP_SUBSTR(bjnr, '[0-9]{17}[0-9Xx]'), bjrzjhm) as bjrzjhm, jqbz, bjnr, cjqk, gxdwdm, gxdwmc " + |
||||
" FROM dwd_asj_zhtx_jjd a WHERE (jqbz LIKE '%精神病%' OR bjnr LIKE '%精神病%') AND cjqk LIKE '【结警反馈】%' AND a.bjsj > DATE_ADD(now(), INTERVAL -12 MONTH) " + |
||||
" AND EXISTS (SELECT d.bjzdrybh FROM csga_dwd.dwd_ry_zddxgk_zdry d WHERE a.bjrzjhm = d.sfzh) ") |
||||
List<Extreme> syncPointNoControlCrazy(); |
||||
|
||||
/** |
||||
* 故意犯罪被作出刑事判决人员(排除仍在羁押状态的)、公安机关查处吸毒人员(排除仍在羁押状态的), 发现在重点人员中 未纳入或未按要求落实双列管 |
||||
*/ |
||||
@Select(" SELECT a.AJBH as ajbh, a.AJMC as ajmc, a.JYAQ as jyaq, a.BARQ as barq, b.XM as xm, b.XBmc as xbmc, b.ZJHM as zjhm, a.AJLBmc as ajlbmc, b.WFSS as wfss, a.BADWIDdm as badwiddm, a.BADWIDmc as badwidmc " + |
||||
" FROM csga_dwd.dwd_asj_zfba_ajjbxx a INNER JOIN csga_dwd.dwd_ry_zfba_wfryxx b ON a.AJBH = b.AJBH " + |
||||
" WHERE a.BARQ > DATE_ADD(now(), INTERVAL -12 MONTH) " + |
||||
" AND ((a.AJBZdm = 1 AND EXISTS (SELECT c.AJLBdm FROM csga_wdpcdb.wdpc_grjd_flxx c WHERE a.AJLBdm = c.AJLBdm AND c.LXDM = '6')) OR b.SXZM = '吸毒') " + |
||||
" AND NOT EXISTS (SELECT d.bjzdrybh FROM csga_dwd.dwd_ry_zddxgk_zdry d WHERE b.ZJHM = d.sfzh AND d.zkztdm = '1') " + |
||||
" AND NOT EXISTS (SELECT c.idcard_no FROM dwd_ry_jgzhxt_zyryxx c WHERE c.idcard_no = b.ZJHM AND c.status = 10) ") |
||||
List<Violence> syncPointNoControl(); |
||||
|
||||
/** |
||||
* 看守所故意犯罪刑满释放不满5年人员, 发现在重点人员中 未纳入或未按要求落实双列管 |
||||
*/ |
||||
@Select(" SELECT a.det_no as detNo, a.name as name, a.used_name as usedName, a.idcard_no as idCardNo, a.out_date as outDate, a.crime as crime, a.brief_case as briefCase, a.case_unit_id as caseUnitId, a.case_unit as caseUnit" + |
||||
" FROM csga_dwd.dwd_ry_jgzhxt_zyryxx a " + |
||||
" WHERE a.status = 11 AND a.out_reason NOT IN ('15', '19') AND DATEDIFF(now(), out_date) < 365 * 5 " + |
||||
" AND NOT EXISTS (SELECT d.bjzdrybh FROM csga_dwd.dwd_ry_zddxgk_zdry d WHERE a.idcard_no = d.sfzh AND d.zkztdm = '1') " + |
||||
" AND EXISTS (SELECT b.AJLBdm FROM csga_dwd.dwd_asj_zfba_ajjbxx b, csga_dwd.dwd_ry_zfba_wfryxx c, csga_wdpcdb.wdpc_grjd_flxx e WHERE b.AJBH = c.AJBH AND a.idcard_no = c.ZJHM AND b.AJLBdm = e.AJLBdm AND e.LXDM = '6') " + |
||||
" AND EXISTS (SELECT f.det_no FROM csga_dwd.dwd_ry_jgzhxt_zyryxx f WHERE a.idcard_no = f.idcard_no AND a.out_date > f.out_date) ") |
||||
List<NoControl> syncPointZDRYNoControl(); |
||||
|
||||
@Select(" SELECT xm, sfzh, lxdh, jtdz, wxjb, hcqk, tsqksm FROM csga_wdpcdb.wdpc_wjw_jsjb a " + |
||||
" WHERE NOT EXISTS (SELECT b.bjzdrybh FROM dwd_ry_zddxgk_zdry b WHERE a.SFZH = b.sfzh AND b.zkztdm = '1') AND hcqk = '未列管' ") |
||||
List<CrazyLevelThree> syncCrazyLevelThree(); |
||||
|
||||
@Select("select xm,sfzh,lxdh,gzdw from csga_wdpcdb.wdpc_ry_syxx") |
||||
List<Drug> selectDrugMan(); |
||||
|
||||
@Select(" SELECT bjzdrybh, xm, sfzh, xzdpcsdm, xzdpcs, zdryxl, xzdzrr " + |
||||
" FROM dwd_ry_zddxgk_zdry a " + |
||||
" WHERE EXISTS ( " + |
||||
" SELECT xzdzrr, xzdzrrlxfs, COUNT(DISTINCT sfzh) AS num FROM dwd_ry_zddxgk_zdry b WHERE a.xzdzrr = b.xzdzrr AND a.xzdzrrlxfs = b.xzdzrrlxfs GROUP BY xzdzrr, xzdzrrlxfs HAVING COUNT(DISTINCT sfzh) >= 100) ORDER BY xzdzrr, xzdzrrlxfs") |
||||
List<GBaseZDRY> noPower(); |
||||
|
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseZDXL; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-15 17:15:12 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseZDXLMapper extends BaseMapper<GBaseZDXL> { |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseZYRYXX; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-12 15:16:21 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface GBaseZYRYXXMapper extends BaseMapper<GBaseZYRYXX> { |
||||
} |
||||
@ -0,0 +1,9 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.DataCaseVerif; |
||||
|
||||
public interface DataCaseVerifMapper extends BaseMapper<DataCaseVerif> { |
||||
|
||||
} |
||||
@ -0,0 +1,13 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.DataPetition12337; |
||||
|
||||
public interface DataPetition12337Mapper extends BaseMapper<DataPetition12337> { |
||||
|
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.DataPetitionComplaint; |
||||
|
||||
public interface DataPetitionComplaintMapper extends BaseMapper<DataPetitionComplaint> { |
||||
|
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,8 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.Model; |
||||
|
||||
public interface ModelMapper extends BaseMapper<Model> { |
||||
|
||||
} |
||||
@ -0,0 +1,18 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskModelTaskClue; |
||||
import org.apache.ibatis.annotations.Select; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-11 11:37:50 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface RiskModelTaskClueMapper extends BaseMapper<RiskModelTaskClue> { |
||||
|
||||
@Select(" select * from risk_model_task_clue where id_code in (select id_code from risk_model_task_clue where model_id = 43 and risk_reason = '特定人员' group by id_code having count(1) > 1) and model_id = 43 and risk_reason = '特定人员' ") |
||||
List<RiskModelTaskClue> selectToKill(); |
||||
} |
||||
@ -0,0 +1,13 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonalControlRecord; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-08 19:43:32 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface RiskPersonalControlRecordMapper extends BaseMapper<RiskPersonalControlRecord> { |
||||
|
||||
} |
||||
@ -0,0 +1,35 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonal; |
||||
import org.apache.ibatis.annotations.Insert; |
||||
import org.apache.ibatis.annotations.Param; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-08 19:43:32 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface RiskPersonalMapper extends BaseMapper<RiskPersonal> { |
||||
|
||||
@Insert("<script>" + |
||||
" update risk_personal set " + |
||||
"<if test='item.tags != null'>" + |
||||
" tags = #{item.tags}," + |
||||
"</if>" + |
||||
"<if test='item.item.controlTime != null'>" + |
||||
" control_time = #{item.controlTime}, " + |
||||
"</if>" + |
||||
"<if test='item.controlDepartId != null'>" + |
||||
" control_depart_id = #{item.controlDepartId}, " + |
||||
"</if>" + |
||||
"<if test='item.controlDepartName != null'>" + |
||||
" control_depart_name = #{controlDepartName} " + |
||||
"</if>" + |
||||
" where id = #{item.id}" + |
||||
"</script>") |
||||
int update(@Param("item") RiskPersonal item); |
||||
|
||||
} |
||||
@ -0,0 +1,13 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonalTag; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-08 19:43:32 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface RiskPersonalTagMapper extends BaseMapper<RiskPersonalTag> { |
||||
|
||||
} |
||||
@ -0,0 +1,8 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskScoreRule; |
||||
|
||||
public interface RiskScoreRuleMapper extends BaseMapper<RiskScoreRule> { |
||||
|
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskTask; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-11 14:03:18 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface RiskTaskMapper extends BaseMapper<RiskTask> { |
||||
} |
||||
@ -0,0 +1,12 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskTest; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-13 16:17:36 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public interface RiskTestMapper extends BaseMapper<RiskTest> { |
||||
} |
||||
@ -0,0 +1,8 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.SupDepart; |
||||
|
||||
public interface SupDepartMapper extends BaseMapper<SupDepart> { |
||||
|
||||
} |
||||
@ -0,0 +1,8 @@
|
||||
package com.biutag.supervisiondata.mapper.mine; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.SupExternalDepart; |
||||
|
||||
public interface SupExternalDepartMapper extends BaseMapper<SupExternalDepart> { |
||||
|
||||
} |
||||
@ -0,0 +1,47 @@
|
||||
package com.biutag.supervisiondata.pojo; |
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Builder; |
||||
import lombok.Data; |
||||
import lombok.NoArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-13 13:08:18 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@Builder |
||||
@Slf4j |
||||
@AllArgsConstructor |
||||
@NoArgsConstructor(force = true) |
||||
@JsonInclude(JsonInclude.Include.NON_NULL) |
||||
public class ClueData implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
String idCode; |
||||
|
||||
String id; |
||||
|
||||
String name; |
||||
|
||||
String tag; |
||||
|
||||
LocalDateTime eventTime; |
||||
|
||||
String departId; |
||||
|
||||
String departName; |
||||
|
||||
Integer personId; |
||||
|
||||
String sourceData; |
||||
} |
||||
@ -0,0 +1,47 @@
|
||||
package com.biutag.supervisiondata.pojo; |
||||
|
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskModelTaskClue; |
||||
import com.fasterxml.jackson.annotation.JsonInclude; |
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Builder; |
||||
import lombok.Data; |
||||
import lombok.NoArgsConstructor; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.util.ArrayList; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 15:55:50 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@Builder |
||||
@Slf4j |
||||
@AllArgsConstructor |
||||
@NoArgsConstructor(force = true) |
||||
@JsonInclude(JsonInclude.Include.NON_NULL) |
||||
public class ClueInfo implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 修改的信息 |
||||
*/ |
||||
@Builder.Default |
||||
List<RiskModelTaskClue> toUpdate = new ArrayList<>(); |
||||
/** |
||||
* 新增的信息 |
||||
*/ |
||||
@Builder.Default |
||||
List<RiskModelTaskClue> toInsert = new ArrayList<>(); |
||||
/** |
||||
* 隐藏的信息 |
||||
*/ |
||||
@Builder.Default |
||||
List<RiskModelTaskClue> toHidden = new ArrayList<>(); |
||||
|
||||
} |
||||
@ -0,0 +1,43 @@
|
||||
package com.biutag.supervisiondata.pojo.constants; |
||||
|
||||
import lombok.experimental.UtilityClass; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-09 16:33:11 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@UtilityClass |
||||
public class Default { |
||||
|
||||
public static final String BIG_TAG_JJD = "涉相关警情人员"; |
||||
|
||||
public static final String SHR_TAG = "受害人"; |
||||
|
||||
public static final String WFR_TAG = "违法人"; |
||||
|
||||
public static final String BIG_TAG_SHWFR = "涉违法犯罪人员"; |
||||
|
||||
public static final String PETITION_CASE_TAG = "案件核查"; |
||||
|
||||
public static final String PETITION_12337_TAG = "12337"; |
||||
|
||||
public static final String PETITION_TAG = "信访投诉"; |
||||
|
||||
public static final String BIG_TAG_PETITION = "涉投诉举报信访人员"; |
||||
|
||||
public static final String BA_TAG = "从事特种职业-保安"; |
||||
|
||||
public static final String BIG_TAG_TRUBO = "涉矛盾纠纷"; |
||||
|
||||
public static final String FIGHT_BORN = "成长地区暴力警情高于平均水平"; |
||||
|
||||
public static final String FIGHT_MUCH = "高风险矛盾纠纷"; |
||||
|
||||
public static final String POINT_POEPLE = "特定人员"; |
||||
|
||||
public static final String NO_CONTROL = "专项排查关注人员"; |
||||
|
||||
public static final String CALL_REDIS = "call:point"; |
||||
|
||||
} |
||||
@ -0,0 +1,16 @@
|
||||
package com.biutag.supervisiondata.pojo.constants; |
||||
|
||||
/** |
||||
* @author kami |
||||
* @version 1.0 |
||||
* @since 2022/7/8 17:16 |
||||
*/ |
||||
public class ThreadConstants { |
||||
|
||||
private ThreadConstants(){} |
||||
|
||||
/** |
||||
* 链路id |
||||
*/ |
||||
public static final String TRACE_ID = "trace_id"; |
||||
} |
||||
@ -0,0 +1,28 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-18 14:42:07 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class CrazyLevelThree implements Serializable { |
||||
|
||||
String xm; |
||||
|
||||
String sfzh; |
||||
|
||||
String lxdh; |
||||
|
||||
String jtdz; |
||||
|
||||
String wxjb; |
||||
|
||||
String hcqk; |
||||
|
||||
String tsqksm; |
||||
} |
||||
@ -0,0 +1,22 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-18 21:33:57 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class Drug implements Serializable { |
||||
|
||||
String xm; |
||||
|
||||
String sfzh; |
||||
|
||||
String lxdh; |
||||
|
||||
String gzdw; |
||||
} |
||||
@ -0,0 +1,34 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-17 17:21:52 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class Extreme { |
||||
|
||||
String jjdbh; |
||||
|
||||
Date bjsj; |
||||
|
||||
String bjrxm; |
||||
|
||||
String bjrlxdh; |
||||
|
||||
String bjrzjhm; |
||||
|
||||
String jqbz; |
||||
|
||||
String bjnr; |
||||
|
||||
String cjqk; |
||||
|
||||
String gxdwdm; |
||||
|
||||
String gxdwmc; |
||||
} |
||||
@ -0,0 +1,24 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-15 19:18:30 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class FightMan implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
String gmsfhm; |
||||
|
||||
Integer fightCount; |
||||
|
||||
Integer dateCount; |
||||
} |
||||
@ -0,0 +1,39 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-18 14:31:42 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class NoControl implements Serializable { |
||||
/** |
||||
* 在押人员编号 |
||||
*/ |
||||
String detNo; |
||||
|
||||
String name; |
||||
|
||||
String usedName; |
||||
|
||||
String idCardNo; |
||||
/** |
||||
* 出所事件 |
||||
*/ |
||||
Date outDate; |
||||
|
||||
String crime; |
||||
/** |
||||
* 违法情况 |
||||
*/ |
||||
String briefCase; |
||||
|
||||
String caseUnitId; |
||||
|
||||
String caseUnit; |
||||
} |
||||
@ -0,0 +1,33 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-21 12:14:29 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class PointCall implements Serializable { |
||||
|
||||
String name; |
||||
|
||||
String mobiles; |
||||
|
||||
String idCode; |
||||
|
||||
String labels; |
||||
|
||||
Integer callCount; |
||||
|
||||
Integer noUsefulCallCount; |
||||
|
||||
String desc; |
||||
|
||||
String controlId; |
||||
|
||||
String controlName; |
||||
|
||||
} |
||||
@ -0,0 +1,20 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-15 17:28:46 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class PointType { |
||||
|
||||
String name; |
||||
|
||||
String code; |
||||
|
||||
List<PointType> child; |
||||
} |
||||
@ -0,0 +1,57 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskModelTaskClue; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.RiskPersonal; |
||||
import com.fasterxml.jackson.annotation.JsonInclude; |
||||
import lombok.*; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
|
||||
import java.util.*; |
||||
import java.util.function.Function; |
||||
import java.util.stream.Collectors; |
||||
import java.util.stream.IntStream; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-12 10:35:12 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
public class TaskParamDomain { |
||||
|
||||
public TaskParamDomain(List<RiskPersonal> persons, Map<Integer, List<RiskModelTaskClue>> map) { |
||||
this.map = map; |
||||
this.persons = persons; |
||||
List<String> idCodes = persons.stream().map(RiskPersonal::getIdCode).filter(Objects::nonNull).toList(); |
||||
// 切割 每次查10000条
|
||||
this.idCards = IntStream.range(0, (idCodes.size() + 9999) / 10000) |
||||
.mapToObj(i -> idCodes.subList(i * 10000, Math.min((i + 1) * 10000, idCodes.size()))) |
||||
.toList(); |
||||
} |
||||
|
||||
@Getter |
||||
List<RiskPersonal> persons; |
||||
@Getter |
||||
Map<Integer, List<RiskModelTaskClue>> map; |
||||
|
||||
@Getter |
||||
List<List<String>> idCards; |
||||
|
||||
Map<String, RiskModelTaskClue> oldMap; |
||||
|
||||
public Map<String, RiskModelTaskClue> getOldMap(Integer modelId, boolean forceUpdate) { |
||||
if(forceUpdate) { |
||||
this.refreshMap(modelId); |
||||
} |
||||
if(this.oldMap == null) { |
||||
this.refreshMap(modelId); |
||||
} |
||||
return this.oldMap; |
||||
} |
||||
|
||||
private void refreshMap(Integer modelId) { |
||||
// 旧数据
|
||||
this.oldMap = Optional.ofNullable(this.map.get(modelId)).map(it -> it.stream().collect(Collectors.toMap(RiskModelTaskClue::getIdCode, Function.identity(), (oldValue, newValue) -> newValue))).orElse(new HashMap<>()); |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,36 @@
|
||||
package com.biutag.supervisiondata.pojo.domain; |
||||
|
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-17 16:02:12 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class Violence { |
||||
|
||||
String ajbh; |
||||
|
||||
String ajmc; |
||||
|
||||
String jyaq; |
||||
|
||||
Date barq; |
||||
|
||||
String xm; |
||||
|
||||
String xbmc; |
||||
|
||||
String zjhm; |
||||
|
||||
String ajlbmc; |
||||
|
||||
String wfss; |
||||
|
||||
String badwiddm; |
||||
|
||||
String badwidmc; |
||||
} |
||||
@ -0,0 +1,64 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.ads; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* ads 实有人口信息 |
||||
* @author kami on 2024-11-08 19:54:52 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("ads_ssxx_syrkxx") |
||||
public class GBaseSYRKXX { |
||||
/** |
||||
* 公民身份号码 |
||||
*/ |
||||
@TableField("gmsfhm") |
||||
String gmsfhm; |
||||
/** |
||||
* 姓名 |
||||
*/ |
||||
@TableField("xm") |
||||
String xm; |
||||
/** |
||||
* 性别代码 |
||||
*/ |
||||
@TableField("xbdm") |
||||
String xbdm; |
||||
/** |
||||
* 联系电话 |
||||
*/ |
||||
@TableField("lxdh") |
||||
String lxdh; |
||||
/** |
||||
* 出生日期 |
||||
*/ |
||||
@TableField("csrq") |
||||
Date csrq; |
||||
|
||||
/** |
||||
* 学历名称 |
||||
*/ |
||||
@TableField("xlmc") |
||||
String xlmc; |
||||
/** |
||||
* 出生地代码 |
||||
*/ |
||||
@TableField("csdxzqhdm") |
||||
String csdxzqhdm; |
||||
/** |
||||
* 出生地名称 |
||||
*/ |
||||
@TableField("csdxzqhmc") |
||||
String csdxzqhmc; |
||||
@TableField("sspcsdm") |
||||
String sspcsdm; |
||||
@TableField("sspcsmc") |
||||
String sspcsmc; |
||||
|
||||
} |
||||
@ -0,0 +1,49 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* 案件基本信息 |
||||
* @author kami on 2024-11-10 14:47:22 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("dwd_asj_zfba_ajjbxx") |
||||
public class GBaseAJJBXX implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 案件编号 |
||||
*/ |
||||
@TableField("ajbh") |
||||
String ajbh; |
||||
/** |
||||
* 办案单位ID |
||||
*/ |
||||
@TableField("badwiddm") |
||||
String badwiddm; |
||||
/** |
||||
* 办案单位ID_描述 |
||||
*/ |
||||
@TableField("badwidmc") |
||||
String badwidmc; |
||||
/** |
||||
* 案件类别名称 |
||||
*/ |
||||
@TableField("ajlbmc") |
||||
String ajlbmc; |
||||
/** |
||||
* 报案日期 |
||||
*/ |
||||
@TableField("barq") |
||||
Date barq; |
||||
|
||||
} |
||||
@ -0,0 +1,36 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 保安信息 |
||||
* @author kami on 2024-11-12 17:59:40 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@TableName("dwd_ry_nbgl_bacyryxxdjb") |
||||
@Setter |
||||
@Getter |
||||
public class GBaseBAXX implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
@TableField("xm") |
||||
String xm; |
||||
@TableField("sfzhm") |
||||
String sfzhm; |
||||
@TableField("zw") |
||||
String zw; |
||||
@TableField("ryztdm") |
||||
String ryztdm; |
||||
@TableField("ryztmc") |
||||
String ryztmc; |
||||
@TableField("rzsj") |
||||
String rzsj; |
||||
} |
||||
@ -0,0 +1,36 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 保安预警 |
||||
* @author kami on 2024-11-12 17:59:50 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@TableName("dwd_ry_nbgl_bayyj") |
||||
@Setter |
||||
@Getter |
||||
public class GBaseBAYJ implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@TableField("xm") |
||||
String xm; |
||||
@TableField("sfzhm") |
||||
String sfzhm; |
||||
@TableField("zw") |
||||
String zw; |
||||
|
||||
@TableField("ryztmc") |
||||
String ryztmc; |
||||
@TableField("rzsj") |
||||
String rzsj; |
||||
} |
||||
@ -0,0 +1,56 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-13 15:13:08 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("dwd_ry_kxgxzyk_hydjxxb") |
||||
public class GBaseHY implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
@TableField("xlzjdjzh") |
||||
String xlzjdjzh; |
||||
|
||||
/** |
||||
* ==1的 |
||||
*/ |
||||
@TableField("yxbzdm") |
||||
String yxbzdm; |
||||
/** |
||||
* 男方身份号码 |
||||
*/ |
||||
/** |
||||
* 女方身份号码 |
||||
*/ |
||||
@TableField("nfsfhm") |
||||
String nfsfhm; |
||||
@TableField("nvfsfhm") |
||||
String nvfsfhm; |
||||
/** |
||||
* 登记日期 |
||||
*/ |
||||
@TableField("djrq") |
||||
Date djrq; |
||||
/** |
||||
* 类型代码 |
||||
*/ |
||||
@TableField("ywlxdmdm") |
||||
String ywlxdmdm; |
||||
/** |
||||
* 类型名称 |
||||
*/ |
||||
@TableField("ywlxdmmc") |
||||
String ywlxdmmc; |
||||
} |
||||
@ -0,0 +1,74 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.util.Date; |
||||
|
||||
@TableName("dwd_asj_zhtx_jjd") |
||||
@Setter |
||||
@Getter |
||||
public class GBaseJJD implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
@TableField("jjdbh") |
||||
private String jjdbh; |
||||
|
||||
// 管辖单位代码
|
||||
@TableField("gxdwdm") |
||||
private String gxdwdm; |
||||
|
||||
// 管辖单位名称
|
||||
@TableField("gxdwmc") |
||||
private String gxdwmc; |
||||
/** |
||||
* 报警人姓名 |
||||
*/ |
||||
@TableField("bjrxm") |
||||
private String bjrxm; |
||||
/** |
||||
* 报警人性别 |
||||
*/ |
||||
@TableField("bjrxb") |
||||
private String bjrxb; |
||||
/** |
||||
* 报警人联系电话 |
||||
*/ |
||||
@TableField("bjrlxdh") |
||||
private String bjrlxdh; |
||||
|
||||
@TableField("bjdh") |
||||
String bjdh; |
||||
/** |
||||
* 报警人证件号码 |
||||
*/ |
||||
@TableField("bjrzjhm") |
||||
private String bjrzjhm; |
||||
/** |
||||
* 警情性质名称 |
||||
*/ |
||||
@TableField("jqxzmc") |
||||
private String jqxzmc; |
||||
@TableField("jqxzdm") |
||||
private String jqxzdm; |
||||
/** |
||||
* 报警内容 |
||||
*/ |
||||
@TableField("bjnr") |
||||
private String bjnr; |
||||
/** |
||||
* 处警情况 |
||||
*/ |
||||
@TableField("cjqk") |
||||
private String cjqk; |
||||
/** |
||||
* 报警时间 |
||||
*/ |
||||
@TableField("bjsj") |
||||
private Date bjsj; |
||||
} |
||||
@ -0,0 +1,47 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 受害人信息 |
||||
* @author kami on 2024-11-10 14:47:13 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("dwd_asj_zfba_shrxx") |
||||
public class GBaseSHRXX implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 公民身份号码 |
||||
*/ |
||||
@TableField("gmsfhm") |
||||
String gmsfhm; |
||||
/** |
||||
* 姓名 |
||||
*/ |
||||
@TableField("xm") |
||||
String xm; |
||||
/** |
||||
* 性别 |
||||
*/ |
||||
@TableField("xbdm") |
||||
String xbdm; |
||||
/** |
||||
* 联系方式 |
||||
*/ |
||||
@TableField("lxdh") |
||||
String lxdh; |
||||
/** |
||||
* 案件编号 |
||||
*/ |
||||
@TableField("ajbh") |
||||
String ajbh; |
||||
} |
||||
@ -0,0 +1,20 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-20 16:19:23 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("tb_d_zdrylb") |
||||
public class GBaseTbDZdrylb { |
||||
|
||||
@TableField("`code`") |
||||
String code; |
||||
@TableField("`define`") |
||||
String define; |
||||
} |
||||
@ -0,0 +1,52 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 违法人信息 |
||||
* @author kami on 2024-11-10 14:47:22 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("dwd_ry_zfba_wfryxx") |
||||
public class GBaseWFRXX implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 姓名 |
||||
*/ |
||||
@TableField("xm") |
||||
String xm; |
||||
/** |
||||
* 性别代码 |
||||
*/ |
||||
@TableField("xbdm") |
||||
String xbdm; |
||||
/** |
||||
* 证件号码 |
||||
*/ |
||||
@TableField("zjhm") |
||||
String zjhm; |
||||
/** |
||||
* 联系方式 |
||||
*/ |
||||
@TableField("lxdh") |
||||
String lxdh; |
||||
/** |
||||
* 案件编号 |
||||
*/ |
||||
@TableField("ajbh") |
||||
String ajbh; |
||||
/** |
||||
* 罪名名称 |
||||
*/ |
||||
@TableField("sxzm") |
||||
String sxzm; |
||||
} |
||||
@ -0,0 +1,107 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-14 19:00:53 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("dwd_ry_zddxgk_zdry") |
||||
public class GBaseZDRY implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 部级重点人员编号 |
||||
*/ |
||||
@TableField("bjzdrybh") |
||||
String bjzdrybh; |
||||
|
||||
@TableField("xm") |
||||
String xm; |
||||
/** |
||||
* 性别代码 |
||||
*/ |
||||
@TableField("xbdm") |
||||
String xbdm; |
||||
/** |
||||
* 身份证号 |
||||
*/ |
||||
@TableField("sfzh") |
||||
String sfzh; |
||||
|
||||
/** |
||||
* 联系方式 |
||||
*/ |
||||
@TableField("zdrylxfs") |
||||
String zdrylxfs; |
||||
/** |
||||
* 管辖单位 |
||||
*/ |
||||
@TableField("gxdw") |
||||
String gxdw; |
||||
/** |
||||
* 管辖单位代码 |
||||
*/ |
||||
@TableField("gxdwjgdm") |
||||
String gxdwjgdm; |
||||
/** |
||||
* 现住地派出所 |
||||
*/ |
||||
@TableField("xzdpcs") |
||||
String xzdpcs; |
||||
/** |
||||
* 现住地派出所代码 |
||||
*/ |
||||
@TableField("xzdpcsdm") |
||||
String xzdpcsdm; |
||||
|
||||
/** |
||||
* 现住地责任人 |
||||
*/ |
||||
@TableField("xzdzrr") |
||||
String xzdzrr; |
||||
|
||||
/** |
||||
* 现住地责任人联系方式 |
||||
*/ |
||||
@TableField("xzdzrrlxfs") |
||||
String xzdzrrlxfs; |
||||
|
||||
/** |
||||
* 重点人员细类 |
||||
*/ |
||||
@TableField("zdryxl") |
||||
String zdryxl; |
||||
|
||||
/** |
||||
* 重点人员类别标记 |
||||
*/ |
||||
@TableField("zdrylbbj") |
||||
String zdrylbbj; |
||||
|
||||
/** |
||||
* 记录变更时间 yyyyMMddHHmmss |
||||
*/ |
||||
@TableField("jlbgsj") |
||||
String jlbgsj; |
||||
/** |
||||
* 在空状态代码 1 - 在控 |
||||
*/ |
||||
@TableField("zkztdm") |
||||
String zkztdm; |
||||
|
||||
/** |
||||
* 在控人员级别代码 |
||||
*/ |
||||
@TableField("zkryjbdm") |
||||
String zkryjbdm; |
||||
|
||||
} |
||||
@ -0,0 +1,33 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-15 17:12:15 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("dwd_ry_zddxgk_zdryxl") |
||||
public class GBaseZDXL implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
@TableField("id") |
||||
String id; |
||||
/** |
||||
* 描述 |
||||
*/ |
||||
@TableField("define") |
||||
String define; |
||||
/** |
||||
* 父级id |
||||
*/ |
||||
@TableField("fjdid") |
||||
String fjdid; |
||||
} |
||||
@ -0,0 +1,48 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.dwd; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* 在押人员 |
||||
* @author kami on 2024-11-12 14:35:40 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("dwd_ry_jgzhxt_zyryxx") |
||||
public class GBaseZYRYXX implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
/** |
||||
* 编号 |
||||
*/ |
||||
@TableField("det_no") |
||||
String detNo; |
||||
/** |
||||
* 证件号 |
||||
*/ |
||||
@TableField("idcard_no") |
||||
String idCardNo; |
||||
/** |
||||
* 服刑事件 两位年 两位月两位日 |
||||
*/ |
||||
@TableField("rslt_time") |
||||
String rsltTime; |
||||
|
||||
/** |
||||
* 监所id |
||||
*/ |
||||
@TableField("prison_id") |
||||
String prisonId; |
||||
/** |
||||
* 监所名称 |
||||
*/ |
||||
@TableField("prison_name") |
||||
String prisonName; |
||||
} |
||||
@ -0,0 +1,79 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Data; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
|
||||
@Data |
||||
@TableName("data_case_verif") |
||||
public class DataCaseVerif { |
||||
|
||||
// 样本源头编号
|
||||
@TableId(value = "originId") |
||||
private String originId; |
||||
|
||||
// 问题发现时间
|
||||
@TableField("discovery_time") |
||||
private LocalDateTime discoveryTime; |
||||
|
||||
// 问题发生时间
|
||||
@TableField("happen_time") |
||||
private LocalDateTime happenTime; |
||||
|
||||
// 问题来源
|
||||
@TableField("problem_sources") |
||||
private String problemSources; |
||||
|
||||
// 投诉人姓名
|
||||
@TableField("responder_name") |
||||
private String responderName; |
||||
|
||||
// 投诉人电话
|
||||
@TableField("responder_phone") |
||||
private String responderPhone; |
||||
|
||||
// 业务类型
|
||||
@TableField("business_type_name") |
||||
private String businessTypeName; |
||||
|
||||
// 涉及问题
|
||||
@TableField("involve_problem") |
||||
private String involveProblem; |
||||
|
||||
// 涉及警种
|
||||
@TableField("police_type_name") |
||||
private String policeTypeName; |
||||
|
||||
// 涉及单位 二级
|
||||
private String secondDepartId; |
||||
|
||||
private String secondDepartName; |
||||
|
||||
// 所对
|
||||
private String thirdDepartId; |
||||
|
||||
private String thirdDepartName; |
||||
|
||||
// 事情简述
|
||||
@TableField("thing_desc") |
||||
private String thingDesc; |
||||
|
||||
//
|
||||
@TableField("create_time") |
||||
private LocalDateTime createTime; |
||||
|
||||
// 分发状态
|
||||
private String distributionState; |
||||
|
||||
// 是否属实
|
||||
@TableField("is_real") |
||||
private Integer isReal; |
||||
|
||||
} |
||||
@ -0,0 +1,605 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
@TableName(value ="data_petition_12337") |
||||
@Data |
||||
public class DataPetition12337 implements Serializable { |
||||
/** |
||||
* 唯一编号 |
||||
*/ |
||||
@TableId(value = "only_id") |
||||
private String onlyId; |
||||
|
||||
/** |
||||
* 外网线索编号 |
||||
*/ |
||||
@TableField(value = "external_id") |
||||
private String externalId; |
||||
|
||||
/** |
||||
* 内网线索编号 |
||||
*/ |
||||
@TableField(value = "inner_id") |
||||
private String innerId; |
||||
|
||||
/** |
||||
* 单机版线索编号 |
||||
*/ |
||||
@TableField(value = "stand_alone") |
||||
private String standAlone; |
||||
|
||||
/** |
||||
* 信息受理登记时间 |
||||
*/ |
||||
@TableField(value = "discover_time") |
||||
private LocalDateTime discoverTime; |
||||
|
||||
/** |
||||
* 线索来源 |
||||
*/ |
||||
@TableField(value = "letter_source") |
||||
private String letterSource; |
||||
|
||||
/** |
||||
* 举报人姓名 |
||||
*/ |
||||
@TableField(value = "name") |
||||
private String name; |
||||
|
||||
/** |
||||
* 手机号码 |
||||
*/ |
||||
@TableField(value = "phone") |
||||
private String phone; |
||||
|
||||
/** |
||||
* 身份证号 |
||||
*/ |
||||
@TableField(value = "id_code") |
||||
private String idCode; |
||||
|
||||
/** |
||||
* 举报人(省) |
||||
*/ |
||||
@TableField(value = "reporter_provincial") |
||||
private String reporterProvincial; |
||||
|
||||
/** |
||||
* 举报人(市) |
||||
*/ |
||||
@TableField(value = "reporter_city") |
||||
private String reporterCity; |
||||
|
||||
/** |
||||
* 举报人(县) |
||||
*/ |
||||
@TableField(value = "reporter_county") |
||||
private String reporterCounty; |
||||
|
||||
/** |
||||
* 现住地详址 |
||||
*/ |
||||
@TableField(value = "address") |
||||
private String address; |
||||
|
||||
/** |
||||
* 是否政法干警 |
||||
*/ |
||||
@TableField(value = "is_law_police") |
||||
private String isLawPolice; |
||||
|
||||
/** |
||||
* 被举报人姓名 |
||||
*/ |
||||
@TableField(value = "reported_name") |
||||
private String reportedName; |
||||
|
||||
/** |
||||
* 所属系统 |
||||
*/ |
||||
@TableField(value = "belong_system") |
||||
private String belongSystem; |
||||
|
||||
/** |
||||
* 人员类别 |
||||
*/ |
||||
@TableField(value = "person_type") |
||||
private String personType; |
||||
|
||||
/** |
||||
* 被举报人所在地(省) |
||||
*/ |
||||
@TableField(value = "reported_provincial") |
||||
private String reportedProvincial; |
||||
|
||||
/** |
||||
* 被举报人所在地(市) |
||||
*/ |
||||
@TableField(value = "reported_city") |
||||
private String reportedCity; |
||||
|
||||
/** |
||||
* 被举报人所在地(县) |
||||
*/ |
||||
@TableField(value = "reported_county") |
||||
private String reportedCounty; |
||||
|
||||
/** |
||||
* 单位名称 |
||||
*/ |
||||
@TableField(value = "org_name") |
||||
private String orgName; |
||||
|
||||
/** |
||||
* 单位所属层级 |
||||
*/ |
||||
@TableField(value = "org_level") |
||||
private String orgLevel; |
||||
|
||||
/** |
||||
* 具体职务 |
||||
*/ |
||||
@TableField(value = "job_name") |
||||
private String jobName; |
||||
|
||||
/** |
||||
* 职级 |
||||
*/ |
||||
@TableField(value = "job_level") |
||||
private String jobLevel; |
||||
|
||||
/** |
||||
* 被举报单位名称 |
||||
*/ |
||||
@TableField(value = "reported_org_name") |
||||
private String reportedOrgName; |
||||
|
||||
/** |
||||
* 被举报单位所属系统 |
||||
*/ |
||||
@TableField(value = "reported_org_belong") |
||||
private String reportedOrgBelong; |
||||
|
||||
/** |
||||
* 被举报单位所在地(省) |
||||
*/ |
||||
@TableField(value = "reported_org_provincial") |
||||
private String reportedOrgProvincial; |
||||
|
||||
/** |
||||
* 被举报单位所在地(市) |
||||
*/ |
||||
@TableField(value = "reported_org_city") |
||||
private String reportedOrgCity; |
||||
|
||||
/** |
||||
* 被举报单位所在地(县) |
||||
*/ |
||||
@TableField(value = "reported_org_county") |
||||
private String reportedOrgCounty; |
||||
|
||||
/** |
||||
* 被举报单位单位所属层级 |
||||
*/ |
||||
@TableField(value = "reported_org_level") |
||||
private String reportedOrgLevel; |
||||
|
||||
/** |
||||
* 涉嫌违纪问题项目 |
||||
*/ |
||||
@TableField(value = "against_pro_project") |
||||
private String againstProProject; |
||||
|
||||
/** |
||||
* 涉嫌贪污贿赂类犯罪 |
||||
*/ |
||||
@TableField(value = "corruption_guilt") |
||||
private String corruptionGuilt; |
||||
|
||||
/** |
||||
* 涉嫌渎职类犯罪 |
||||
*/ |
||||
@TableField(value = "omission_guilt") |
||||
private String omissionGuilt; |
||||
|
||||
/** |
||||
* 涉嫌侵犯公民人身权利类犯罪 |
||||
*/ |
||||
@TableField(value = "invade_entitlement_guilt") |
||||
private String invadeEntitlementGuilt; |
||||
|
||||
/** |
||||
* 涉嫌侵犯财产类犯罪 |
||||
*/ |
||||
@TableField(value = "invade_finance_guilt") |
||||
private String invadeFinanceGuilt; |
||||
|
||||
/** |
||||
* 其他 |
||||
*/ |
||||
@TableField(value = "other_guilt") |
||||
private String otherGuilt; |
||||
|
||||
/** |
||||
* 顽瘴痼疾项目 |
||||
*/ |
||||
@TableField(value = "hard_pro_project") |
||||
private String hardProProject; |
||||
|
||||
/** |
||||
* 涉嫌违纪违法事项 |
||||
*/ |
||||
@TableField(value = "wjwf_project") |
||||
private String wjwfProject; |
||||
|
||||
/** |
||||
* 转办时间 |
||||
*/ |
||||
@TableField(value = "pass_time") |
||||
private String passTime; |
||||
|
||||
/** |
||||
* 转办单位 |
||||
*/ |
||||
@TableField(value = "pass_org") |
||||
private String passOrg; |
||||
|
||||
/** |
||||
* 核查时间 |
||||
*/ |
||||
@TableField(value = "review_time") |
||||
private String reviewTime; |
||||
|
||||
/** |
||||
* 核查单位 |
||||
*/ |
||||
@TableField(value = "review_org") |
||||
private String reviewOrg; |
||||
|
||||
/** |
||||
* 核查人 |
||||
*/ |
||||
@TableField(value = "review_person_name") |
||||
private String reviewPersonName; |
||||
|
||||
/** |
||||
* 核查人联系方式 |
||||
*/ |
||||
@TableField(value = "review_person_phone") |
||||
private String reviewPersonPhone; |
||||
|
||||
/** |
||||
* 被核查人类别 |
||||
*/ |
||||
@TableField(value = "reviewed_person_type") |
||||
private String reviewedPersonType; |
||||
|
||||
/** |
||||
* 被核查人是否属于领导班子成员 |
||||
*/ |
||||
@TableField(value = "reviewed_person_isleader") |
||||
private String reviewedPersonIsleader; |
||||
|
||||
/** |
||||
* 是否核查完结 |
||||
*/ |
||||
@TableField(value = "reviewed_isover") |
||||
private String reviewedIsover; |
||||
|
||||
/** |
||||
* 核查简要情况 |
||||
*/ |
||||
@TableField(value = "review_des") |
||||
private String reviewDes; |
||||
|
||||
/** |
||||
* 办理结果 |
||||
*/ |
||||
@TableField(value = "process_result") |
||||
private String processResult; |
||||
|
||||
/** |
||||
* 是否进行线索初核 |
||||
*/ |
||||
@TableField(value = "is_first_view") |
||||
private String isFirstView; |
||||
|
||||
/** |
||||
* 核查组组长 |
||||
*/ |
||||
@TableField(value = "review_leader") |
||||
private String reviewLeader; |
||||
|
||||
/** |
||||
* (核查组组长)联系方式 |
||||
*/ |
||||
@TableField(value = "review_leader_phone") |
||||
private String reviewLeaderPhone; |
||||
|
||||
/** |
||||
* 初核情况 |
||||
*/ |
||||
@TableField(value = "first_view_des") |
||||
private String firstViewDes; |
||||
|
||||
/** |
||||
* 是否立案审查调查 |
||||
*/ |
||||
@TableField(value = "is_register_case") |
||||
private String isRegisterCase; |
||||
|
||||
/** |
||||
* 立案审查调查情况 |
||||
*/ |
||||
@TableField(value = "register_case_des") |
||||
private String registerCaseDes; |
||||
|
||||
/** |
||||
* 是否处分处理 |
||||
*/ |
||||
@TableField(value = "is_punish") |
||||
private String isPunish; |
||||
|
||||
/** |
||||
* 处理结论形态 |
||||
*/ |
||||
@TableField(value = "process_res_type") |
||||
private String processResType; |
||||
|
||||
/** |
||||
* 处理结论结果 |
||||
*/ |
||||
@TableField(value = "process_res_des") |
||||
private String processResDes; |
||||
|
||||
/** |
||||
* 处分处理情况 |
||||
*/ |
||||
@TableField(value = "punish_des") |
||||
private String punishDes; |
||||
|
||||
/** |
||||
* 是否适用自查从宽政策 |
||||
*/ |
||||
@TableField(value = "is_tolerant") |
||||
private String isTolerant; |
||||
|
||||
/** |
||||
* 是否办结 |
||||
*/ |
||||
@TableField(value = "is_over") |
||||
private String isOver; |
||||
|
||||
/** |
||||
* 联系时间 |
||||
*/ |
||||
@TableField(value = "contact_time") |
||||
private String contactTime; |
||||
|
||||
/** |
||||
* 联系单位 |
||||
*/ |
||||
@TableField(value = "contact_org") |
||||
private String contactOrg; |
||||
|
||||
/** |
||||
* 联系人 |
||||
*/ |
||||
@TableField(value = "contact_person_name") |
||||
private String contactPersonName; |
||||
|
||||
/** |
||||
* 联系方式 |
||||
*/ |
||||
@TableField(value = "contact_type") |
||||
private String contactType; |
||||
|
||||
/** |
||||
* 与举报人联系沟通详情 |
||||
*/ |
||||
@TableField(value = "contact_reporter_des") |
||||
private String contactReporterDes; |
||||
|
||||
/** |
||||
* 超期未反馈原因 |
||||
*/ |
||||
@TableField(value = "overtime_reason") |
||||
private String overtimeReason; |
||||
|
||||
/** |
||||
* 是否申请异议 |
||||
*/ |
||||
@TableField(value = "is_dissent") |
||||
private String isDissent; |
||||
|
||||
/** |
||||
* 目标省份 |
||||
*/ |
||||
@TableField(value = "aim_provincial") |
||||
private String aimProvincial; |
||||
|
||||
/** |
||||
* 申请人 |
||||
*/ |
||||
@TableField(value = "apply_person_name") |
||||
private String applyPersonName; |
||||
|
||||
/** |
||||
* 联系方式 |
||||
*/ |
||||
@TableField(value = "apply_person_phone") |
||||
private String applyPersonPhone; |
||||
|
||||
/** |
||||
* 申请原因 |
||||
*/ |
||||
@TableField(value = "apply_reason") |
||||
private String applyReason; |
||||
|
||||
/** |
||||
* 异议处理方式 |
||||
*/ |
||||
@TableField(value = "dissent_handle") |
||||
private String dissentHandle; |
||||
|
||||
/** |
||||
* 处理说明 |
||||
*/ |
||||
@TableField(value = "dissent_handle_explain") |
||||
private String dissentHandleExplain; |
||||
|
||||
/** |
||||
* 是否存在附件 |
||||
*/ |
||||
@TableField(value = "is_annex") |
||||
private String isAnnex; |
||||
|
||||
/** |
||||
* 附件文件名 |
||||
*/ |
||||
@TableField(value = "annex_name") |
||||
private String annexName; |
||||
|
||||
/** |
||||
* 线索举报时间 |
||||
*/ |
||||
@TableField(value = "report_time") |
||||
private String reportTime; |
||||
|
||||
/** |
||||
* 导入时间 |
||||
*/ |
||||
@TableField(value = "enter_time") |
||||
private String enterTime; |
||||
|
||||
/** |
||||
* 分发时间 |
||||
*/ |
||||
@TableField(value = "distribute_time") |
||||
private String distributeTime; |
||||
|
||||
/** |
||||
* 是否违纪违法线索 |
||||
*/ |
||||
@TableField(value = "is_against_clue") |
||||
private String isAgainstClue; |
||||
|
||||
/** |
||||
* 是否涉法涉诉线索 |
||||
*/ |
||||
@TableField(value = "is_appeal_clue") |
||||
private String isAppealClue; |
||||
|
||||
/** |
||||
* 是否范围外线索 |
||||
*/ |
||||
@TableField(value = "is_overround_clue") |
||||
private String isOverroundClue; |
||||
|
||||
/** |
||||
* 是否无效线索 |
||||
*/ |
||||
@TableField(value = "is_invalid_clue") |
||||
private String isInvalidClue; |
||||
|
||||
/** |
||||
* 是否重点线索 |
||||
*/ |
||||
@TableField(value = "is_important_clue") |
||||
private String isImportantClue; |
||||
|
||||
/** |
||||
* 线索是否重复 |
||||
*/ |
||||
@TableField(value = "is_repeat_clue") |
||||
private String isRepeatClue; |
||||
|
||||
/** |
||||
* 重复线索组别 |
||||
*/ |
||||
@TableField(value = "repeat_clue_type") |
||||
private String repeatClueType; |
||||
|
||||
/** |
||||
* 线索是否进行了机筛 |
||||
*/ |
||||
@TableField(value = "is_machine") |
||||
private String isMachine; |
||||
|
||||
/** |
||||
* 机筛线索时间 |
||||
*/ |
||||
@TableField(value = "machine_tme") |
||||
private String machineTme; |
||||
|
||||
/** |
||||
* 线索是否经过人工筛查 |
||||
*/ |
||||
@TableField(value = "is_person") |
||||
private String isPerson; |
||||
|
||||
/** |
||||
* 人工筛查线索时间 |
||||
*/ |
||||
@TableField(value = "person_time") |
||||
private String personTime; |
||||
|
||||
/** |
||||
* 是否关注线索 |
||||
*/ |
||||
@TableField(value = "is_care") |
||||
private String isCare; |
||||
|
||||
/** |
||||
* 关注时间 |
||||
*/ |
||||
@TableField(value = "care_time") |
||||
private String careTime; |
||||
|
||||
/** |
||||
* 操作时间 |
||||
*/ |
||||
@TableField(value = "handle_time") |
||||
private String handleTime; |
||||
|
||||
/** |
||||
* 二级机构id |
||||
*/ |
||||
@TableField(value = "second_depart_id") |
||||
private String secondDepartId; |
||||
|
||||
/** |
||||
* 二级机构名字 |
||||
*/ |
||||
@TableField(value = "second_depart_name") |
||||
private String secondDepartName; |
||||
|
||||
/** |
||||
* 三级机构id |
||||
*/ |
||||
@TableField(value = "third_depart_id") |
||||
private String thirdDepartId; |
||||
|
||||
/** |
||||
* 三级机构简称 |
||||
*/ |
||||
@TableField(value = "third_depart_name") |
||||
private String thirdDepartName; |
||||
|
||||
|
||||
/** |
||||
* 下发状态 |
||||
*/ |
||||
@TableField(value = "distributionState") |
||||
private String distributionState; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,93 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* 信访投诉 |
||||
*/ |
||||
@Setter |
||||
@Getter |
||||
public class DataPetitionComplaint { |
||||
|
||||
// 信件编号
|
||||
@TableId |
||||
private String originId; |
||||
|
||||
// 投诉渠道
|
||||
@TableField("channel_for_filing_complaints") |
||||
private String channelForFilingComplaints; |
||||
|
||||
// 受理层级
|
||||
@TableField("acceptance_level") |
||||
private String acceptanceLevel; |
||||
|
||||
// 登记时间
|
||||
private LocalDateTime discoveryTime; |
||||
|
||||
// 投诉人
|
||||
@TableField("responder_name") |
||||
private String responderName; |
||||
|
||||
// 投诉人电话
|
||||
@TableField("responder_phone") |
||||
private String responderPhone; |
||||
@TableField("responder_id_code") |
||||
private String responderIdCode; |
||||
|
||||
// 初重信访
|
||||
@TableField("initial_petition") |
||||
private String initialPetition; |
||||
|
||||
// 缠访闹访
|
||||
@TableField("entanglement_visits") |
||||
private Boolean entanglementVisits; |
||||
|
||||
// 群众集访
|
||||
@TableField("mass_visits") |
||||
private Boolean massVisits; |
||||
|
||||
// 涉嫌问题
|
||||
@TableField("involve_problem") |
||||
private String involveProblem; |
||||
|
||||
// 业务类别
|
||||
@TableField("business_type_name") |
||||
private String businessTypeName; |
||||
|
||||
// 涉及警种名称
|
||||
@TableField("police_type_name") |
||||
private String policeTypeName; |
||||
|
||||
// 具体内容
|
||||
@TableField("thing_desc") |
||||
private String thingDesc; |
||||
|
||||
|
||||
//---------------------
|
||||
|
||||
// 涉及单位 二级
|
||||
private String secondDepartId; |
||||
|
||||
private String secondDepartName; |
||||
|
||||
// 所对
|
||||
private String thirdDepartId; |
||||
|
||||
private String thirdDepartName; |
||||
|
||||
private LocalDateTime createTime; |
||||
|
||||
private LocalDateTime updateTime; |
||||
|
||||
// 来源
|
||||
private String problemSourcesCode; |
||||
|
||||
// 分发状态
|
||||
private String distributionState; |
||||
|
||||
} |
||||
@ -0,0 +1,96 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
@Setter |
||||
@Getter |
||||
public class Model { |
||||
|
||||
//
|
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
//
|
||||
@TableField("model_name") |
||||
private String modelName; |
||||
|
||||
private Integer classId; |
||||
|
||||
//
|
||||
@TableField("icon") |
||||
private String icon; |
||||
|
||||
//
|
||||
@TableField("remarks") |
||||
private String remarks; |
||||
|
||||
// 分发方式
|
||||
@TableField("distribution_method") |
||||
private String distributionMethod; |
||||
|
||||
// 分发周期
|
||||
@TableField("distribution_cycle") |
||||
private String distributionCycle; |
||||
|
||||
// 分发周期 周
|
||||
private String distributionCycleDayOfWeek; |
||||
|
||||
// 分发周期 时间
|
||||
private String distributionCycleTime; |
||||
|
||||
// 分发周期,cron 表达式
|
||||
private String distributionCycleExpression; |
||||
|
||||
// 限时
|
||||
@TableField("time_limit") |
||||
private String timeLimit; |
||||
|
||||
//
|
||||
@TableField("max_sign_duration") |
||||
private Integer maxSignDuration; |
||||
|
||||
//
|
||||
@TableField("max_handle_duration") |
||||
private Integer maxHandleDuration; |
||||
|
||||
//
|
||||
@TableField("max_extension_duration") |
||||
private Integer maxExtensionDuration; |
||||
|
||||
//
|
||||
@TableField("distribution_flow") |
||||
private String distributionFlow; |
||||
|
||||
@TableField("approval_flow") |
||||
private String approvalFlow; |
||||
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss") |
||||
@TableField("create_time") |
||||
private LocalDateTime createTime; |
||||
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss") |
||||
@TableField("update_time") |
||||
private LocalDateTime updateTime; |
||||
|
||||
private String createDepartId; |
||||
|
||||
private String createDepartName; |
||||
|
||||
// 建模方式
|
||||
private String modelingMethod; |
||||
|
||||
// 模型数据类型
|
||||
private String modelDataType; |
||||
|
||||
@TableField("model_sql") |
||||
private String modelSql; |
||||
|
||||
private Integer riskScoreRuleId; |
||||
} |
||||
@ -0,0 +1,108 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.*; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-11 11:37:50 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("risk_model_task_clue") |
||||
public class RiskModelTaskClue implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
/** |
||||
* 模型id |
||||
*/ |
||||
@TableField("`model_id`") |
||||
Integer modelId; |
||||
|
||||
/** |
||||
* 姓名 |
||||
*/ |
||||
@TableField("`name`") |
||||
String name; |
||||
|
||||
/** |
||||
* 证件号码 |
||||
*/ |
||||
@TableField("id_code") |
||||
String idCode; |
||||
|
||||
// 预警内容
|
||||
@TableField("thing_desc") |
||||
private String thingDesc; |
||||
|
||||
// 状态 默认 0-未分发 1-已分发 2-已处理
|
||||
@TableField("distribution_state") |
||||
private Integer distributionState; |
||||
/** |
||||
* 任务id |
||||
*/ |
||||
@TableField("task_id") |
||||
Integer taskId; |
||||
/** |
||||
* 原始id |
||||
*/ |
||||
@TableField("source_id") |
||||
String sourceId; |
||||
/** |
||||
* 案件id,“,”分割 |
||||
*/ |
||||
@TableField("case_ids") |
||||
String caseIds; |
||||
/** |
||||
* 问题id |
||||
*/ |
||||
@TableField("negative_id") |
||||
String negative_id; |
||||
/** |
||||
* 风险原因 |
||||
*/ |
||||
@TableField("risk_reason") |
||||
String riskReason; |
||||
/** |
||||
* 数据详情 JSON |
||||
*/ |
||||
@TableField("data") |
||||
String data; |
||||
/** |
||||
* 分数 |
||||
*/ |
||||
@TableField("score") |
||||
Integer score; |
||||
/** |
||||
* 发生时间 |
||||
*/ |
||||
@TableField("event_time") |
||||
LocalDateTime eventTime; |
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@TableField("create_time") |
||||
LocalDateTime createTime; |
||||
/** |
||||
* 修改时间 |
||||
*/ |
||||
@TableField("update_time") |
||||
LocalDateTime updateTime; |
||||
|
||||
/** |
||||
* 逻辑删除键 |
||||
*/ |
||||
Integer del; |
||||
} |
||||
@ -0,0 +1,96 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.*; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-08 18:53:08 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("risk_personal") |
||||
public class RiskPersonal implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
/** |
||||
* 姓名 |
||||
*/ |
||||
@TableField("`name`") |
||||
String name; |
||||
/** |
||||
* 性别男1女2 |
||||
*/ |
||||
@TableField("gender") |
||||
String gender; |
||||
/** |
||||
* 年龄 |
||||
*/ |
||||
@TableField("age") |
||||
Integer age; |
||||
|
||||
/** |
||||
* 证件号码 |
||||
*/ |
||||
@TableField("id_code") |
||||
String idCode; |
||||
/** |
||||
* 手机号码 |
||||
*/ |
||||
@TableField("mobile_number") |
||||
String mobileNumber; |
||||
/** |
||||
* 大标签预览 |
||||
*/ |
||||
@TableField("tags") |
||||
String tags; |
||||
/** |
||||
* 风险指数 |
||||
*/ |
||||
@TableField("risk_score") |
||||
Double rickScore; |
||||
/** |
||||
* 管控部门编号 |
||||
*/ |
||||
@TableField("control_depart_id") |
||||
String controlDepartId; |
||||
/** |
||||
* 管控部门名称 |
||||
*/ |
||||
@TableField("control_depart_name") |
||||
String controlDepartName; |
||||
|
||||
/** |
||||
* 管控时间 |
||||
*/ |
||||
@TableField("control_time") |
||||
LocalDateTime controlTime; |
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@TableField("create_time") |
||||
LocalDateTime createTime; |
||||
/** |
||||
* 异常信息 |
||||
*/ |
||||
@TableField("error_msg") |
||||
String errorMsg; |
||||
/** |
||||
* 逻辑删除键 |
||||
*/ |
||||
@TableLogic(value = "0", delval = "1") |
||||
Integer del; |
||||
|
||||
} |
||||
@ -0,0 +1,77 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.*; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 14:38:57 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("risk_personal_control_record") |
||||
public class RiskPersonalControlRecord implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
/** |
||||
* 姓名 |
||||
*/ |
||||
@TableField("`name`") |
||||
String name; |
||||
/** |
||||
* 证件号码 |
||||
*/ |
||||
@TableField("id_code") |
||||
String idCode; |
||||
|
||||
/** |
||||
* 管控标签 |
||||
*/ |
||||
@TableField("control_tag") |
||||
String controlTag; |
||||
|
||||
/** |
||||
* 管控部门编号 |
||||
*/ |
||||
@TableField("control_depart_id") |
||||
String controlDepartId; |
||||
/** |
||||
* 管控部门名称 |
||||
*/ |
||||
@TableField("control_depart_name") |
||||
String controlDepartName; |
||||
|
||||
/** |
||||
* 管控时间 |
||||
*/ |
||||
@TableField("control_time") |
||||
LocalDateTime controlTime; |
||||
/** |
||||
* 案件编号 |
||||
*/ |
||||
@TableField("case_id") |
||||
String caseId; |
||||
|
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@TableField("create_time") |
||||
LocalDateTime createTime; |
||||
|
||||
/** |
||||
* 逻辑删除键 |
||||
*/ |
||||
Integer del; |
||||
} |
||||
@ -0,0 +1,63 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.*; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-09 16:04:10 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("risk_personal_tag") |
||||
public class RiskPersonalTag implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
/** |
||||
* 姓名 |
||||
*/ |
||||
@TableField("`name`") |
||||
String name; |
||||
/** |
||||
* 证件号码 |
||||
*/ |
||||
@TableField("id_code") |
||||
String idCode; |
||||
/** |
||||
* 大标签 |
||||
*/ |
||||
@TableField("big_tag") |
||||
String bigTag; |
||||
/** |
||||
* 小标签 |
||||
*/ |
||||
@TableField("small_tag") |
||||
String smallTag; |
||||
/** |
||||
* 标签时间 |
||||
*/ |
||||
@TableField("tag_time") |
||||
LocalDateTime tagTime; |
||||
/** |
||||
* 创建时间 |
||||
*/ |
||||
@TableField("create_time") |
||||
LocalDateTime createTime; |
||||
/** |
||||
* 逻辑删除键 |
||||
*/ |
||||
@TableLogic(value = "0", delval = "1") |
||||
Integer del; |
||||
} |
||||
@ -0,0 +1,58 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.fasterxml.jackson.annotation.JsonFormat; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
@Setter |
||||
@Getter |
||||
public class RiskScoreRule { |
||||
|
||||
//
|
||||
@TableId(type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
//
|
||||
@TableField("pid") |
||||
private Integer pid; |
||||
|
||||
// 风险因素
|
||||
@TableField("risk_name") |
||||
private String riskName; |
||||
|
||||
// 分值
|
||||
@TableField("score") |
||||
private Double score; |
||||
|
||||
// 规则描述
|
||||
@TableField("rule_desc") |
||||
private String ruleDesc; |
||||
|
||||
// 权重
|
||||
@TableField("weight") |
||||
private Integer weight; |
||||
|
||||
// 状态
|
||||
@TableField("status") |
||||
private Boolean status; |
||||
|
||||
// 更新时间
|
||||
@TableField("update_time") |
||||
|
||||
@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm") |
||||
private LocalDateTime updateTime; |
||||
|
||||
// 创建时间
|
||||
@TableField("create_time") |
||||
private LocalDateTime createTime; |
||||
|
||||
private Integer sortId; |
||||
|
||||
private Integer level; |
||||
|
||||
} |
||||
@ -0,0 +1,75 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
import java.time.LocalDateTime; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-11 11:34:46 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
@TableName("risk_task") |
||||
public class RiskTask implements Serializable { |
||||
|
||||
@Serial |
||||
private static final long serialVersionUID = 1L; |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
/** |
||||
* 模型id |
||||
*/ |
||||
@TableField("model_id") |
||||
Integer modelId; |
||||
|
||||
/** |
||||
* 扫秒条数 |
||||
*/ |
||||
@TableField("scan_size") |
||||
Integer scanSize; |
||||
|
||||
/** |
||||
* 新增条数 |
||||
*/ |
||||
@TableField("insert_size") |
||||
Integer insertSize; |
||||
|
||||
/** |
||||
* 修改条数 |
||||
*/ |
||||
@TableField("update_size") |
||||
Integer updateSize; |
||||
|
||||
/** |
||||
* 开始时间 |
||||
*/ |
||||
@TableField("start_time") |
||||
LocalDateTime startTime; |
||||
/** |
||||
* 结束时间 |
||||
*/ |
||||
@TableField("end_time") |
||||
LocalDateTime endTime; |
||||
/** |
||||
* 0 进行中 1 已完成 -1 失败 |
||||
*/ |
||||
@TableField("state") |
||||
Integer state; |
||||
/** |
||||
* 异常信息 |
||||
*/ |
||||
@TableField("err_msg") |
||||
String errMsg; |
||||
} |
||||
@ -0,0 +1,29 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import lombok.experimental.Accessors; |
||||
|
||||
import java.io.Serial; |
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-13 16:18:01 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Data |
||||
public class RiskTest implements Serializable { |
||||
|
||||
/** |
||||
* 主键 |
||||
*/ |
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
@TableField("`name`") |
||||
String name; |
||||
} |
||||
@ -0,0 +1,85 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
@Setter |
||||
@Getter |
||||
public class SupDepart { |
||||
|
||||
//
|
||||
@TableId |
||||
private String id; |
||||
|
||||
//
|
||||
@TableField("type") |
||||
private String type; |
||||
|
||||
//
|
||||
@TableField("category") |
||||
private String category; |
||||
|
||||
//
|
||||
@TableField("code") |
||||
private String code; |
||||
|
||||
//
|
||||
@TableField("name") |
||||
private String name; |
||||
|
||||
//
|
||||
@TableField("short_name") |
||||
private String shortName; |
||||
|
||||
//
|
||||
@TableField("domain_name") |
||||
private String domainName; |
||||
|
||||
//
|
||||
@TableField("pid") |
||||
private String pid; |
||||
|
||||
//
|
||||
@TableField("level") |
||||
private Integer level; |
||||
|
||||
//
|
||||
@TableField("path_trace") |
||||
private String pathTrace; |
||||
|
||||
//
|
||||
@TableField("is_hide") |
||||
private String isHide; |
||||
|
||||
//
|
||||
@TableField("status") |
||||
private String status; |
||||
|
||||
//
|
||||
@TableField("order_no") |
||||
private Integer orderNo; |
||||
|
||||
//
|
||||
@TableField("version") |
||||
private String version; |
||||
|
||||
//
|
||||
@TableField("status_updated_at") |
||||
private String statusUpdatedAt; |
||||
|
||||
//
|
||||
@TableField("created_at") |
||||
private String createdAt; |
||||
|
||||
//
|
||||
@TableField("updated_at") |
||||
private String updatedAt; |
||||
|
||||
private Boolean firstHost; |
||||
|
||||
//
|
||||
private String statisticsGroupId; |
||||
|
||||
} |
||||
@ -0,0 +1,63 @@
|
||||
package com.biutag.supervisiondata.pojo.entity.mine; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType; |
||||
import com.baomidou.mybatisplus.annotation.TableField; |
||||
import com.baomidou.mybatisplus.annotation.TableId; |
||||
import lombok.Getter; |
||||
import lombok.Setter; |
||||
|
||||
import java.time.LocalDateTime; |
||||
|
||||
@Setter |
||||
@Getter |
||||
public class SupExternalDepart { |
||||
|
||||
// id
|
||||
@TableId(value = "id", type = IdType.AUTO) |
||||
private Integer id; |
||||
|
||||
// 外部单位id
|
||||
@TableField("external_id") |
||||
private String externalId; |
||||
|
||||
// 外部单位名称
|
||||
@TableField("external_name") |
||||
private String externalName; |
||||
|
||||
// 外部来源
|
||||
@TableField("source") |
||||
private String source; |
||||
|
||||
// 内部单位id
|
||||
@TableField("internal_id") |
||||
private String internalId; |
||||
|
||||
// 内部单位名称
|
||||
@TableField("internal_name") |
||||
private String internalName; |
||||
|
||||
// 内部单位短名称
|
||||
@TableField("internal_short_name") |
||||
private String internalShortName; |
||||
|
||||
// 单位级别
|
||||
@TableField("level") |
||||
private Integer level; |
||||
|
||||
// 上级单位id
|
||||
@TableField("pid") |
||||
private String pid; |
||||
|
||||
// 状态:0-启用,1-禁用
|
||||
@TableField("status") |
||||
private Integer status; |
||||
|
||||
// 创建时间
|
||||
@TableField("create_time") |
||||
private LocalDateTime createTime; |
||||
|
||||
// 更新时间
|
||||
@TableField("update_time") |
||||
private LocalDateTime updateTime; |
||||
|
||||
} |
||||
@ -0,0 +1,49 @@
|
||||
package com.biutag.supervisiondata.pojo.enums; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Getter; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-12 11:07:06 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@AllArgsConstructor |
||||
@Getter |
||||
@Slf4j |
||||
public enum Charge { |
||||
|
||||
KILL("故意杀人", null,"涉故意杀人"), |
||||
DRUGS("贩卖毒品", null,"涉贩卖毒品"), |
||||
FIRE("放火", null,"涉放火"), |
||||
BOOM("爆炸", null,"涉爆炸"), |
||||
POISON("投毒", null,"涉投毒"), |
||||
RAPE("强奸", "未遂","涉强奸"), |
||||
ROB("抢劫", "未遂","涉抢劫"); |
||||
|
||||
private final String title; |
||||
|
||||
private final String unEqu; |
||||
|
||||
private final String desc; |
||||
|
||||
|
||||
|
||||
public static String contains(String desc) { |
||||
Charge en = null; |
||||
for (Charge enums : values()) { |
||||
if (desc.contains(enums.getTitle())) { |
||||
en = enums; |
||||
} |
||||
} |
||||
if(en == null) { |
||||
return null; |
||||
} |
||||
if(en.getUnEqu() != null && !desc.contains(en.getUnEqu())) { |
||||
return en.getDesc(); |
||||
} |
||||
return null; |
||||
} |
||||
|
||||
} |
||||
@ -0,0 +1,41 @@
|
||||
package com.biutag.supervisiondata.pojo.enums; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Getter; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-15 12:08:18 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@AllArgsConstructor |
||||
@Getter |
||||
@Slf4j |
||||
public enum Dispute { |
||||
|
||||
LOVE("情感", "涉情感纠纷"), |
||||
HOUSE1("房地产", "涉房产纠纷"), |
||||
HOUSE2("房屋", "涉房产纠纷"), |
||||
HOSPITAL("医患", "涉医患纠纷"), |
||||
MONEY("债务", "涉债务纠纷"), |
||||
TUDI("土地", "涉土地纠纷"), |
||||
MONEY2("劳资", "涉劳资纠纷"), |
||||
HOME("家庭暴力", "涉家庭暴力纠纷"), |
||||
NEIBER("邻里纠纷", "涉邻里纠纷纠纷"); |
||||
|
||||
private final String title; |
||||
|
||||
private final String desc; |
||||
|
||||
|
||||
|
||||
public static String contains(String desc) { |
||||
for (Dispute enums : values()) { |
||||
if (desc.contains(enums.getTitle())) { |
||||
return enums.getDesc(); |
||||
} |
||||
} |
||||
return null; |
||||
} |
||||
} |
||||
@ -0,0 +1,36 @@
|
||||
package com.biutag.supervisiondata.pojo.enums; |
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import lombok.Getter; |
||||
import lombok.extern.slf4j.Slf4j; |
||||
|
||||
/** |
||||
* @author kami on 2024-06-19 13:52:23 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@AllArgsConstructor |
||||
@Getter |
||||
@Slf4j |
||||
public enum Edu { |
||||
|
||||
LOW("小学及以下", 3), |
||||
MIDDLE("初中/高中", 2), |
||||
HEIGHT("中专/大专", 1); |
||||
|
||||
private final String desc; |
||||
|
||||
private final Integer score; |
||||
|
||||
|
||||
|
||||
public static Integer contains(String desc) { |
||||
for (Edu enums : values()) { |
||||
if (enums.getDesc().equals(desc)) { |
||||
return enums.getScore(); |
||||
} |
||||
} |
||||
log.info("未找到该类型:{}", desc); |
||||
return 0; |
||||
} |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.mine.DataCaseVerifMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.DataCaseVerif; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-14 15:54:00 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class DataCaseVerifRepository extends ServiceImpl<DataCaseVerifMapper, DataCaseVerif> { |
||||
} |
||||
@ -0,0 +1,21 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.mine.DataPetition12337Mapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.DataPetition12337; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-14 15:52:20 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class DataPetition12337Repository extends ServiceImpl<DataPetition12337Mapper,DataPetition12337> { |
||||
|
||||
} |
||||
|
||||
|
||||
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.mine.DataPetitionComplaintMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.mine.DataPetitionComplaint; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-14 15:52:20 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class DataPetitionComplaintRepository extends ServiceImpl<DataPetitionComplaintMapper, DataPetitionComplaint> { |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.dwd.GBaseAJJBXXMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseAJJBXX; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 15:21:56 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class GBaseAJJBXXRepository extends ServiceImpl<GBaseAJJBXXMapper, GBaseAJJBXX> { |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.dwd.GBaseBAXXMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseBAXX; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 15:21:56 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class GBaseBAXXRepository extends ServiceImpl<GBaseBAXXMapper, GBaseBAXX> { |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.dwd.GBaseBAYJMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseBAYJ; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-10 15:21:56 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class GBaseBAYJRepository extends ServiceImpl<GBaseBAYJMapper, GBaseBAYJ> { |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.dwd.GBaseHYMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseHY; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-13 15:18:16 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class GBaseHYRepository extends ServiceImpl<GBaseHYMapper, GBaseHY> { |
||||
} |
||||
@ -0,0 +1,15 @@
|
||||
package com.biutag.supervisiondata.repository; |
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
||||
import com.biutag.supervisiondata.mapper.dwd.GBaseJJDMapper; |
||||
import com.biutag.supervisiondata.pojo.entity.dwd.GBaseJJD; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
/** |
||||
* @author kami on 2024-11-09 10:41:45 |
||||
* @version 0.0.1 |
||||
* @since 1.8 |
||||
*/ |
||||
@Service |
||||
public class GBaseJJDRepository extends ServiceImpl<GBaseJJDMapper, GBaseJJD> { |
||||
} |
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue