From 1782b6d521eea99dc869ed492bf4d16fab4b5667 Mon Sep 17 00:00:00 2001 From: sunzheng Date: Mon, 15 Jan 2024 10:55:45 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=94=B9]=E8=B5=B7=E8=8D=89=E7=BB=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E5=A4=8D=E5=88=B6=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E4=BD=8D=E6=95=B0=E8=BE=BE=E5=88=B0=E6=BB=A1=E4=BD=8D=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E5=86=8D=E5=A4=8D=E5=88=B6=EF=BC=8C=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E8=AF=AD=E4=B8=8D=E6=98=8E=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/PayDraftingGroupServiceImpl.java | 3 +++ .../src/main/resources/application-dev.yml | 26 +++++++++---------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/jero-boot-incoming-payment/src/main/java/com/jero/drafting/service/impl/PayDraftingGroupServiceImpl.java b/jero-boot-incoming-payment/src/main/java/com/jero/drafting/service/impl/PayDraftingGroupServiceImpl.java index 1f8f5351..7c3bc046 100644 --- a/jero-boot-incoming-payment/src/main/java/com/jero/drafting/service/impl/PayDraftingGroupServiceImpl.java +++ b/jero-boot-incoming-payment/src/main/java/com/jero/drafting/service/impl/PayDraftingGroupServiceImpl.java @@ -264,6 +264,9 @@ public class PayDraftingGroupServiceImpl extends ServiceImpl= 50) { + throw new JeroBootException("起草组名称长度为50位,不可复制,请修改之后再复制!"); + } LambdaQueryWrapper queryWrapper = new LambdaQueryWrapper<>(); queryWrapper.like(PayDraftingGroup::getDraftingGroupProject,str); List listPayDraftingGroup = list(queryWrapper); diff --git a/jero-boot-single-startup/src/main/resources/application-dev.yml b/jero-boot-single-startup/src/main/resources/application-dev.yml index eec3d261..3ab7b3fe 100644 --- a/jero-boot-single-startup/src/main/resources/application-dev.yml +++ b/jero-boot-single-startup/src/main/resources/application-dev.yml @@ -136,20 +136,20 @@ spring: connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 datasource: master: - url: jdbc:mysql://10.10.10.44:3306/income_payments_test?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai +# url: jdbc:mysql://10.10.10.44:3306/income_payments_test?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai +# username: root +# password: hzwlsoft.com +# driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:p6spy:mysql://lijiarao.cn:3306/income_payments_prod?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai username: root - password: hzwlsoft.com - driver-class-name: com.mysql.cj.jdbc.Driver -# url: jdbc:p6spy:mysql://lijiarao.cn:3306/income_payments_prod?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai -# username: root -# password: 704670af746903fa -# driver-class-name: com.p6spy.engine.spy.P6SpyDriver -# # 多数据源配置 -# multi-datasource1: -# url: jdbc:p6spy:mysql://lijiarao.cn:3306/standards_association?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&serverTimezone=Asia/Shanghai -# username: root -# password: 704670af746903fa -# driver-class-name: com.p6spy.engine.spy.P6SpyDriver + password: 704670af746903fa + driver-class-name: com.p6spy.engine.spy.P6SpyDriver + # 多数据源配置 + multi-datasource1: + url: jdbc:p6spy:mysql://lijiarao.cn:3306/standards_association?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&serverTimezone=Asia/Shanghai + username: root + password: 704670af746903fa + driver-class-name: com.p6spy.engine.spy.P6SpyDriver redis: database: 14 # host: 121.36.69.172