From 7a8b4c6b36c09c0125c10bf6b56378b8c9a6a53d Mon Sep 17 00:00:00 2001 From: luozhun <2025254074@qq.com> Date: Fri, 3 Jan 2025 11:13:01 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ServiceProjectSaveOrUpdateParams.java | 3 ++ .../pojo/vo/ServiceProjectListVo.java | 2 + .../ServiceProjectSaveOrUpdateParams.java | 3 ++ .../pojo/vo/ServiceProjectPagerVo.java | 2 + .../com/changhu/pojo/entity/SecurityUnit.java | 5 +++ .../changhu/pojo/entity/ServiceProject.java | 5 +++ .../params/SecurityUnitRegisterParams.java | 3 ++ .../support/minio/MinioProperties.java | 40 ------------------- .../minio/service/impl/MinioServiceImpl.java | 2 +- 9 files changed, 24 insertions(+), 41 deletions(-) diff --git a/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java b/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java index a381c70..df4fae0 100644 --- a/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java +++ b/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java @@ -48,6 +48,9 @@ public class ServiceProjectSaveOrUpdateParams { @Schema(description = "证件号(保安服务许可证/备案证)") private String idNumber; + @Schema(description = "保安服务合同") + private String securityServiceContract; + @Schema(description = "服务区域面积") private Double serviceArea; diff --git a/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/vo/ServiceProjectListVo.java b/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/vo/ServiceProjectListVo.java index 569fcc4..b591be5 100644 --- a/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/vo/ServiceProjectListVo.java +++ b/policeSecurityServer/src/main/java/com/changhu/module/policeManagement/pojo/vo/ServiceProjectListVo.java @@ -43,6 +43,8 @@ public class ServiceProjectListVo { private IsOrNot isFiling; @Schema(description = "证件号(服务类型为保安必填 服务类型为物业则需自招保安为必填)") private String idNumber; + @Schema(description = "保安服务合同") + private String securityServiceContract; @Schema(description = "服务区域面积") private Double serviceArea; diff --git a/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java b/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java index d20f9b5..25b72fb 100644 --- a/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java +++ b/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/params/ServiceProjectSaveOrUpdateParams.java @@ -45,6 +45,9 @@ public class ServiceProjectSaveOrUpdateParams { @Schema(description = "证件号(保安服务许可证/备案证)") private String idNumber; + @Schema(description = "保安服务合同") + private String securityServiceContract; + @Schema(description = "服务区域面积") private Double serviceArea; diff --git a/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/vo/ServiceProjectPagerVo.java b/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/vo/ServiceProjectPagerVo.java index bb0b5d7..2044393 100644 --- a/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/vo/ServiceProjectPagerVo.java +++ b/policeSecurityServer/src/main/java/com/changhu/module/securityManagement/pojo/vo/ServiceProjectPagerVo.java @@ -46,6 +46,8 @@ public class ServiceProjectPagerVo { private IsOrNot isFiling; @Schema(description = "证件号(服务类型为保安必填 服务类型为物业则需自招保安为必填)") private String idNumber; + @Schema(description = "保安服务合同") + private String securityServiceContract; @Schema(description = "服务区域面积") private Double serviceArea; diff --git a/policeSecurityServer/src/main/java/com/changhu/pojo/entity/SecurityUnit.java b/policeSecurityServer/src/main/java/com/changhu/pojo/entity/SecurityUnit.java index cbd6080..36de921 100644 --- a/policeSecurityServer/src/main/java/com/changhu/pojo/entity/SecurityUnit.java +++ b/policeSecurityServer/src/main/java/com/changhu/pojo/entity/SecurityUnit.java @@ -48,6 +48,11 @@ public class SecurityUnit extends BaseEntity implements Serializable { */ private String businessLicense; + /** + * 保安服务许可证 + */ + private String securityServiceLicence; + /** * 法人信息 */ diff --git a/policeSecurityServer/src/main/java/com/changhu/pojo/entity/ServiceProject.java b/policeSecurityServer/src/main/java/com/changhu/pojo/entity/ServiceProject.java index ac678a2..2bc3396 100644 --- a/policeSecurityServer/src/main/java/com/changhu/pojo/entity/ServiceProject.java +++ b/policeSecurityServer/src/main/java/com/changhu/pojo/entity/ServiceProject.java @@ -76,6 +76,11 @@ public class ServiceProject extends BaseEntity implements Serializable { */ private String idNumber; + /** + * 保安服务合同 + */ + private String securityServiceContract; + /** * 服务区域面积 */ diff --git a/policeSecurityServer/src/main/java/com/changhu/pojo/params/SecurityUnitRegisterParams.java b/policeSecurityServer/src/main/java/com/changhu/pojo/params/SecurityUnitRegisterParams.java index 9e32de5..36ce2a8 100644 --- a/policeSecurityServer/src/main/java/com/changhu/pojo/params/SecurityUnitRegisterParams.java +++ b/policeSecurityServer/src/main/java/com/changhu/pojo/params/SecurityUnitRegisterParams.java @@ -30,6 +30,9 @@ public class SecurityUnitRegisterParams { @Schema(description = "营业执照") private String businessLicense; + @Schema(description = "保安服务许可证") + private String securityServiceLicence; + @Schema(description = "法人信息") private LegalPersonInfo legalPersonInfo; diff --git a/policeSecurityServer/src/main/java/com/changhu/support/minio/MinioProperties.java b/policeSecurityServer/src/main/java/com/changhu/support/minio/MinioProperties.java index 28f907d..5c5f07f 100644 --- a/policeSecurityServer/src/main/java/com/changhu/support/minio/MinioProperties.java +++ b/policeSecurityServer/src/main/java/com/changhu/support/minio/MinioProperties.java @@ -3,16 +3,10 @@ package com.changhu.support.minio; import io.minio.MinioClient; import lombok.Data; import lombok.extern.slf4j.Slf4j; -import okhttp3.OkHttpClient; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import javax.net.ssl.SSLContext; -import javax.net.ssl.TrustManager; -import javax.net.ssl.X509TrustManager; -import java.security.cert.X509Certificate; - /** * fileName: MinioProperties * author: LuoZhun @@ -47,43 +41,9 @@ public class MinioProperties { @Bean public MinioClient minioClient() { - // Create a trust manager that does not validate certificate chains - TrustManager[] trustAllCerts = new TrustManager[]{ - new X509TrustManager() { - public X509Certificate[] getAcceptedIssuers() { - return new X509Certificate[0]; - } - - public void checkClientTrusted(X509Certificate[] certs, String authType) { - // Do nothing (trust any client certificate) - } - - public void checkServerTrusted(X509Certificate[] certs, String authType) { - // Do nothing (trust any server certificate) - } - } - }; - - // Install the all-trusting trust manager - SSLContext sslContext = null; - try { - sslContext = SSLContext.getInstance("SSL"); - sslContext.init(null, trustAllCerts, new java.security.SecureRandom()); - } catch (Exception e) { - log.error("Install the all-trusting trust manager error:{}", e.getMessage()); - } - - - // Create a custom OkHttpClient that trusts all certificates - OkHttpClient customHttpClient = new OkHttpClient.Builder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustAllCerts[0]) - .hostnameVerifier((hostname, session) -> true) - .build(); - return MinioClient.builder() .endpoint(url) .credentials(accessKey, secretKey) - .httpClient(customHttpClient) .build(); } } diff --git a/policeSecurityServer/src/main/java/com/changhu/support/minio/service/impl/MinioServiceImpl.java b/policeSecurityServer/src/main/java/com/changhu/support/minio/service/impl/MinioServiceImpl.java index bd3a686..9dce182 100644 --- a/policeSecurityServer/src/main/java/com/changhu/support/minio/service/impl/MinioServiceImpl.java +++ b/policeSecurityServer/src/main/java/com/changhu/support/minio/service/impl/MinioServiceImpl.java @@ -181,7 +181,7 @@ public class MinioServiceImpl implements MinioService { .method(Method.PUT) .bucket(bucketName) .object(objectName) - .expiry(10, TimeUnit.SECONDS) + .expiry(3, TimeUnit.MINUTES) .build()); } catch (Exception e) { throw new MessageException("获取临时上传地址失败:{}", e.getMessage()); From 0d9beb2686fa25522a55474ff6f026d2d542e290 Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Fri, 3 Jan 2025 11:36:46 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=A4=E5=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/layout/header/LayoutHeader.vue | 41 +- .../upload/SingleImageFileUpload.vue | 142 +++--- securityManagement/src/router/index.ts | 2 + .../src/stores/modules/userStore.ts | 2 +- .../src/types/views/enterprise.ts | 3 +- .../src/types/views/serviceManagement.ts | 1 + securityManagement/src/views/enterprise.vue | 441 ++++++++++-------- .../src/views/serviceManagement/index.vue | 40 +- 8 files changed, 419 insertions(+), 253 deletions(-) diff --git a/securityManagement/src/components/layout/header/LayoutHeader.vue b/securityManagement/src/components/layout/header/LayoutHeader.vue index 0713b0c..316613a 100644 --- a/securityManagement/src/components/layout/header/LayoutHeader.vue +++ b/securityManagement/src/components/layout/header/LayoutHeader.vue @@ -9,16 +9,53 @@
- + + + + +
From 311b25aa48705de8cb5b8a471cf136b41c5111d9 Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Fri, 3 Jan 2025 11:44:48 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=A4=E5=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/upload/SingleImageFileUpload.vue | 12 ++++++------ securityManagement/src/views/enterprise.vue | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/securityManagement/src/components/upload/SingleImageFileUpload.vue b/securityManagement/src/components/upload/SingleImageFileUpload.vue index 8ef6733..9183f51 100644 --- a/securityManagement/src/components/upload/SingleImageFileUpload.vue +++ b/securityManagement/src/components/upload/SingleImageFileUpload.vue @@ -9,7 +9,7 @@ /> {{ btnLabel }} - + @@ -34,7 +34,7 @@ const props = withDefaults( width?: string | number; height?: string | number; btnLabel?: string; - id: string; + idFile?: string | any; }>(), { parentDir: "", @@ -43,7 +43,7 @@ const props = withDefaults( width: "150px", height: "150px", btnLabel: "选择图片", - id: "myFileInput", + idFile: "myFileInput", } ); @@ -54,7 +54,7 @@ const uploadUrl = ref(); const fileInput = ref(null); const selectFile = () => { - document.getElementById(props.id)?.click(); + document.getElementById(props.idFile)?.click(); }; async function inputFileListener(this: HTMLInputElement) { @@ -107,13 +107,13 @@ const fileDelete = () => { }; onMounted(() => { document - .getElementById(props.id) + .getElementById(props.idFile) ?.addEventListener("change", inputFileListener); }); onUnmounted(() => { document - .getElementById(props.id) + .getElementById(props.idFile) ?.removeEventListener("change", inputFileListener); }); defineExpose({ fileDelete }); diff --git a/securityManagement/src/views/enterprise.vue b/securityManagement/src/views/enterprise.vue index 39ca3a7..3eedc2a 100644 --- a/securityManagement/src/views/enterprise.vue +++ b/securityManagement/src/views/enterprise.vue @@ -61,7 +61,7 @@
注:自行招用单位备案证或保安许可证 From 22a0f692175e1182dd21df6bbb0d9a97019498f8 Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Fri, 3 Jan 2025 11:48:28 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=A4=E5=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/upload/SingleImageFileUpload.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/securityManagement/src/components/upload/SingleImageFileUpload.vue b/securityManagement/src/components/upload/SingleImageFileUpload.vue index 9183f51..caadc2c 100644 --- a/securityManagement/src/components/upload/SingleImageFileUpload.vue +++ b/securityManagement/src/components/upload/SingleImageFileUpload.vue @@ -9,7 +9,7 @@ /> {{ btnLabel }} - +
From c8ac1c82a597692116b5b7e665e5db5333eb3212 Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Fri, 3 Jan 2025 11:49:34 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=A4=E5=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/upload/SingleImageFileUpload.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/securityManagement/src/components/upload/SingleImageFileUpload.vue b/securityManagement/src/components/upload/SingleImageFileUpload.vue index caadc2c..d4518bb 100644 --- a/securityManagement/src/components/upload/SingleImageFileUpload.vue +++ b/securityManagement/src/components/upload/SingleImageFileUpload.vue @@ -9,7 +9,7 @@ /> {{ btnLabel }} - + @@ -34,7 +34,7 @@ const props = withDefaults( width?: string | number; height?: string | number; btnLabel?: string; - idFile?: string | any; + id?: string | any; }>(), { parentDir: "", @@ -43,7 +43,7 @@ const props = withDefaults( width: "150px", height: "150px", btnLabel: "选择图片", - idFile: "myFileInput", + id: "myFileInput", } ); @@ -54,7 +54,7 @@ const uploadUrl = ref(); const fileInput = ref(null); const selectFile = () => { - document.getElementById(props.idFile)?.click(); + document.getElementById(props.id)?.click(); }; async function inputFileListener(this: HTMLInputElement) { @@ -107,13 +107,13 @@ const fileDelete = () => { }; onMounted(() => { document - .getElementById(props.idFile) + .getElementById(props.id) ?.addEventListener("change", inputFileListener); }); onUnmounted(() => { document - .getElementById(props.idFile) + .getElementById(props.id) ?.removeEventListener("change", inputFileListener); }); defineExpose({ fileDelete }); From 3038b990784bf94bc6167d7751b5da5264338efb Mon Sep 17 00:00:00 2001 From: wangyilin <1454641981@qq.com> Date: Fri, 3 Jan 2025 13:50:29 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=A4=E5=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/upload/SingleImageFileUpload.vue | 2 +- securityManagement/src/views/enterprise.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/securityManagement/src/components/upload/SingleImageFileUpload.vue b/securityManagement/src/components/upload/SingleImageFileUpload.vue index d4518bb..888b599 100644 --- a/securityManagement/src/components/upload/SingleImageFileUpload.vue +++ b/securityManagement/src/components/upload/SingleImageFileUpload.vue @@ -34,7 +34,7 @@ const props = withDefaults( width?: string | number; height?: string | number; btnLabel?: string; - id?: string | any; + id?: string ; }>(), { parentDir: "", diff --git a/securityManagement/src/views/enterprise.vue b/securityManagement/src/views/enterprise.vue index 3eedc2a..39ca3a7 100644 --- a/securityManagement/src/views/enterprise.vue +++ b/securityManagement/src/views/enterprise.vue @@ -61,7 +61,7 @@
注:自行招用单位备案证或保安许可证