diff --git a/policeSecurityServer/Jenkinsfile b/policeSecurityServer/Jenkinsfile
new file mode 100644
index 0000000..040cad9
--- /dev/null
+++ b/policeSecurityServer/Jenkinsfile
@@ -0,0 +1,56 @@
+pipeline {
+ agent any
+ tools {
+ jdk "jdk-17.0.11"
+ maven "apache-maven-3.8.8"
+ }
+ stages {
+ stage('拉取代码') {
+ steps {
+ echo '开始拉取代码'
+ checkout scmGit(branches: [[name: '*/main']], extensions: [], userRemoteConfigs: [[credentialsId: '3', url: 'http://175.6.124.250:3100/luozhun/policeSecurity.git']])
+ echo '代码拉取成功'
+ }
+ }
+ stage('构建后台服务') {
+ steps{
+ echo '开始构建后台服务'
+ sh 'cd /var/jenkins_home/workspace/警保联动后端服务/policeSecurityServer && mvn clean -DskipTests=true package -P prod'
+ echo '后台服务构建完成'
+ }
+ }
+ stage('ssh远程推送代码'){
+ steps{
+ echo '开始推送构建产物'
+ script{
+ def remote = [:]
+ remote.name = 'server-118.253.177.137'
+ remote.host = '118.253.177.137'
+ remote.port = 55555
+ remote.allowAnyHosts = true
+ withCredentials([usernamePassword(credentialsId: '4', passwordVariable: 'password', usernameVariable: 'username')]) {
+ remote.user = "${username}"
+ remote.password = "${password}"
+ }
+ sshCommand remote: remote, command: 'pwd=$(pwd) echo "ssh连接成功!当前工作目录:$(pwd)"'
+
+ sshCommand remote: remote, command: 'echo "停止后台服务..."'
+ sshCommand remote: remote, command: '''docker stop policeSecurityServer'''
+ sshCommand remote: remote, command: 'echo "后台服务已停止..."'
+
+ sshCommand remote: remote, command: 'echo "删除原来的server.jar..."'
+ sshRemove remote: remote, path: '/home/javaProject/policeSecurity/policeSecurityServer.jar'
+ sshCommand remote: remote, command: 'echo "server.jar删除成功!"'
+
+ sshCommand remote: remote, command: 'echo "将构建的server.jar发送到服务器..."'
+ sshPut remote: remote, from: '/var/jenkins_home/workspace/警保联动后端服务/policeSecurityServer/target/policeSecurityServer.jar', into: '/home/javaProject/policeSecurity'
+ sshCommand remote: remote, command: 'echo "server.jar发送成功!"'
+
+ sshCommand remote: remote, command: 'echo "启动后台服务..."'
+ sshCommand remote: remote, command: '''docker start policeSecurityServer'''
+ sshCommand remote: remote, command: 'echo "后台服务启动成功!"'
+ }
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java b/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java
index c6f6ed8..13fc834 100644
--- a/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java
+++ b/policeSecurityServer/src/main/java/com/changhu/support/fastjson2/FastJson2Config.java
@@ -88,8 +88,6 @@ public class FastJson2Config {
JSONWriter.Feature.WriteNullListAsEmpty,
//将String类型字段的空值序列化输出为空字符串””
JSONWriter.Feature.WriteNullStringAsEmpty,
- //将Boolean类型字段的空值序列化输出为false
- JSONWriter.Feature.WriteNullBooleanAsFalse,
//在大范围超过JavaScript支持的整数,输出为字符串格式
JSONWriter.Feature.BrowserCompatible,
//保留map空的字段
diff --git a/policeSecurityServer/src/main/resources/env/dev/application.yml b/policeSecurityServer/src/main/resources/env/dev/application.yml
index ac28684..b638e99 100644
--- a/policeSecurityServer/src/main/resources/env/dev/application.yml
+++ b/policeSecurityServer/src/main/resources/env/dev/application.yml
@@ -116,7 +116,7 @@ logging:
config: classpath:conf/log4j2.xml
minio:
- url: https://www.hnjinglian.cn:9000
+ url: http://118.253.177.137:9000
accessKey: admin
secretKey: lonsung301
bucketName: police-security-dev
diff --git a/policeSecurityServer/src/main/resources/env/prod/application.yml b/policeSecurityServer/src/main/resources/env/prod/application.yml
index 81ebf76..ea1f45f 100644
--- a/policeSecurityServer/src/main/resources/env/prod/application.yml
+++ b/policeSecurityServer/src/main/resources/env/prod/application.yml
@@ -116,7 +116,7 @@ logging:
config: classpath:conf/log4j2.xml
minio:
- url: https://www.hnjinglian.cn:9000
+ url: https://www.hnjinglian.cn:9002
accessKey: admin
secretKey: lonsung301
bucketName: police-security
diff --git a/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml b/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml
index 256a042..20ca9d1 100644
--- a/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml
+++ b/policeSecurityServer/src/main/resources/mapper/AdministrativeDivisionMapper.xml
@@ -12,13 +12,7 @@
and level <= #{level}
order by code
-
-
-
-