From 93c2b17dcbcfde99c3117adc527f949d5814ef9f Mon Sep 17 00:00:00 2001 From: bootx Date: Fri, 11 Nov 2022 02:30:52 +0000 Subject: [PATCH 01/13] update README.md. Signed-off-by: bootx --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cfff8b05..3f138412 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ ## 🍎特色功能 - 支持单通道支付、聚合支付、组合支付、部分和全部退款等支付功能 - 支持支付宝、微信、云闪付、现金、钱包、储值卡等多种支付方式 -- 支持对多终端、多登录方式进行分别的管理 +- 基于Sa-Token定制,支持对多终端、多登录方式进行分别的管理 - 针对各类敏感信息,可以通过添加注解实现返回时自动脱敏 - 针对重要信息,可以通过添加注解,实现在数据库中保密存储,配合数据脱敏使用可以更好的保护系统数据的安全 - 支持多种范围的数据权限控制,如只能查看自己、只能查询指定部门、用户、可以查询全部的数据等等 -- Gitee From bfcd0cf011a92a224c89a689bf80eb4403663195 Mon Sep 17 00:00:00 2001 From: xxm Date: Sun, 13 Nov 2022 20:47:07 +0800 Subject: [PATCH 02/13] =?UTF-8?q?style=20Vue3=E6=A8=A1=E6=9D=BF=E6=9B=B4?= =?UTF-8?q?=E6=96=B0,=20=E6=B5=81=E7=A8=8B=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/resources/codegen/template/vue3/edit.vue.vm | 6 +++--- .../main/resources/codegen/template/vue3/list.vue.vm | 11 ++++++++--- .../flowable/core/model/dao/BpmModelManager.java | 2 ++ 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm index 737489b2..82ab2aef 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm +++ b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm @@ -24,7 +24,7 @@ #if($editType == "drawer") #end - diff --git a/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/model/dao/BpmModelManager.java b/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/model/dao/BpmModelManager.java index 58d2c650..731e3094 100644 --- a/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/model/dao/BpmModelManager.java +++ b/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/model/dao/BpmModelManager.java @@ -6,6 +6,7 @@ import cn.bootx.common.mybatisplus.impl.BaseManager; import cn.bootx.common.mybatisplus.util.MpUtil; import cn.bootx.starter.flowable.core.model.entity.BpmModel; import cn.bootx.starter.flowable.param.model.BpmModelParam; +import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Repository; @@ -29,6 +30,7 @@ public class BpmModelManager extends BaseManager { Page mpPage = MpUtil.getMpPage(pageParam, BpmModel.class); return this.lambdaQuery() .select(this.getEntityClass(),MpUtil::excludeBigField) + .like(StrUtil.isNotBlank(param.getName()),BpmModel::getName,param.getName()) .orderByDesc(MpIdEntity::getId) .page(mpPage); } -- Gitee From c68b16d7abe8911439db58aa908b3629a542a92f Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 14 Nov 2022 21:58:50 +0800 Subject: [PATCH 03/13] =?UTF-8?q?fix=20=E5=8E=BB=E9=99=A4=E8=AF=AF?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E7=9A=84=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/bootx/starter/flowable/core/instance/entity/BpmTask.java | 1 - 1 file changed, 1 deletion(-) diff --git a/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/instance/entity/BpmTask.java b/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/instance/entity/BpmTask.java index 9f5bec00..38591ab1 100644 --- a/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/instance/entity/BpmTask.java +++ b/bootx-common-starters/common-starter-flowable/src/main/java/cn/bootx/starter/flowable/core/instance/entity/BpmTask.java @@ -29,7 +29,6 @@ public class BpmTask extends MpDelEntity implements EntityBaseFunction Date: Thu, 17 Nov 2022 16:56:20 +0800 Subject: [PATCH 04/13] =?UTF-8?q?perf=20=E6=8E=A5=E5=8F=A3=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/codegen/template/vue3/api.ts.vm | 2 +- .../cn/bootx/notice/controller/SiteMessageController.java | 6 +++--- .../bootx/notice/core/site/service/SiteMessageService.java | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/api.ts.vm b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/api.ts.vm index ea4d5a72..225f4b7d 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/api.ts.vm +++ b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/api.ts.vm @@ -67,6 +67,6 @@ export function del(id) { export interface ${entityUpName} extends BaseEntity { #foreach ($column in $columns) // $column.comments - $column.name: $column.tsType + $column.name?: $column.tsType #end } diff --git a/bootx-services/service-notice/src/main/java/cn/bootx/notice/controller/SiteMessageController.java b/bootx-services/service-notice/src/main/java/cn/bootx/notice/controller/SiteMessageController.java index 1fef8d69..fbf6c7ac 100644 --- a/bootx-services/service-notice/src/main/java/cn/bootx/notice/controller/SiteMessageController.java +++ b/bootx-services/service-notice/src/main/java/cn/bootx/notice/controller/SiteMessageController.java @@ -26,9 +26,9 @@ public class SiteMessageController { private final SiteMessageService siteMessageService; @Operation(summary = "保存站内信草稿") - @PostMapping("/save") - public ResResult save(@RequestBody SendSiteMessageParam param){ - siteMessageService.save(param); + @PostMapping("/saveOrUpdate") + public ResResult saveOrUpdate(@RequestBody SendSiteMessageParam param){ + siteMessageService.saveOrUpdate(param); return Res.ok(); } @Operation(summary = "发送站内信") diff --git a/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/service/SiteMessageService.java b/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/service/SiteMessageService.java index caa9605b..743b468f 100644 --- a/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/service/SiteMessageService.java +++ b/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/service/SiteMessageService.java @@ -50,10 +50,10 @@ public class SiteMessageService { private final UserWsNoticeService userWsNoticeService; /** - * 保存草稿 + * 保存或更新草稿 */ @Transactional(rollbackFor = Exception.class) - public void save(SendSiteMessageParam param){ + public void saveOrUpdate(SendSiteMessageParam param){ SiteMessage siteMessage; if (Objects.nonNull(param.getId())){ siteMessage = siteMessageManager.findById(param.getId()).orElseThrow(() -> new DataNotExistException("站内信信息不存在")); -- Gitee From ccee8cc926686f8eb15d90bde418d14b4e02ab20 Mon Sep 17 00:00:00 2001 From: xxm Date: Sat, 19 Nov 2022 19:56:07 +0800 Subject: [PATCH 05/13] =?UTF-8?q?perf=20=E7=AB=99=E5=86=85=E4=BF=A1?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cn/bootx/common/mybatisplus/base/MpBaseEntity.java | 2 +- .../java/cn/bootx/common/mybatisplus/base/MpCreateEntity.java | 2 +- .../main/java/cn/bootx/common/mybatisplus/base/MpDelEntity.java | 2 +- .../main/java/cn/bootx/common/mybatisplus/base/MpIdEntity.java | 2 +- .../java/cn/bootx/notice/core/site/dao/SiteMessageManager.java | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpBaseEntity.java b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpBaseEntity.java index 4a8eadd4..ef187611 100644 --- a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpBaseEntity.java +++ b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpBaseEntity.java @@ -15,7 +15,7 @@ import java.io.Serializable; @Getter @Setter @FieldNameConstants(innerTypeName = "Base") -public class MpBaseEntity extends MpDelEntity implements Serializable { +public abstract class MpBaseEntity extends MpDelEntity implements Serializable { private static final long serialVersionUID = -2699324766101179583L; diff --git a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpCreateEntity.java b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpCreateEntity.java index 862d2604..c8a63df3 100644 --- a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpCreateEntity.java +++ b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpCreateEntity.java @@ -16,7 +16,7 @@ import java.time.LocalDateTime; @Getter @Setter @FieldNameConstants(innerTypeName="Create") -public class MpCreateEntity extends MpIdEntity{ +public abstract class MpCreateEntity extends MpIdEntity{ /** 创建者ID */ @TableField(fill = FieldFill.INSERT) diff --git a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpDelEntity.java b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpDelEntity.java index a388f59e..61243e0b 100644 --- a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpDelEntity.java +++ b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpDelEntity.java @@ -17,7 +17,7 @@ import java.time.LocalDateTime; @Getter @Setter @FieldNameConstants(innerTypeName="Del") -public class MpDelEntity extends MpCreateEntity{ +public abstract class MpDelEntity extends MpCreateEntity{ /** 最后修者ID */ @TableField(fill = FieldFill.INSERT_UPDATE) diff --git a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpIdEntity.java b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpIdEntity.java index 956560ec..cfe91e40 100644 --- a/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpIdEntity.java +++ b/bootx-commons/common-mybatis-plus/src/main/java/cn/bootx/common/mybatisplus/base/MpIdEntity.java @@ -16,7 +16,7 @@ import java.io.Serializable; @Getter @Setter @FieldNameConstants(innerTypeName = "Id") -public class MpIdEntity implements Serializable { +public abstract class MpIdEntity implements Serializable { private static final long serialVersionUID = 3982181843202226124L; diff --git a/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/dao/SiteMessageManager.java b/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/dao/SiteMessageManager.java index 87b11618..acfd53ab 100644 --- a/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/dao/SiteMessageManager.java +++ b/bootx-services/service-notice/src/main/java/cn/bootx/notice/core/site/dao/SiteMessageManager.java @@ -87,6 +87,7 @@ public class SiteMessageManager extends BaseManager Date: Tue, 22 Nov 2022 21:52:23 +0800 Subject: [PATCH 06/13] =?UTF-8?q?style=20vue3=E6=A8=A1=E6=9D=BF=E5=BE=AE?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../codegen/template/vue3/edit.vue.vm | 36 +++++++++---------- .../codegen/template/vue3/list.vue.vm | 8 ++--- .../notice/UserNoticeWebSocketHandler.java | 2 +- 3 files changed, 23 insertions(+), 23 deletions(-) diff --git a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm index 82ab2aef..c3b6fae6 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm +++ b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm @@ -24,24 +24,24 @@ #if($editType == "drawer") #end - - - - - #foreach ($column in $columns) - - - - #end - + + + + + #foreach ($column in $columns) + + + + #end + #if($editType == "drawer") #end diff --git a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm index 287e44d9..bcd1bbe9 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm +++ b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm @@ -20,19 +20,19 @@ diff --git a/bootx-commons/common-websocket/src/main/java/cn/bootx/common/websocket/notice/UserNoticeWebSocketHandler.java b/bootx-commons/common-websocket/src/main/java/cn/bootx/common/websocket/notice/UserNoticeWebSocketHandler.java index ba7dc3c6..adc2ef3f 100644 --- a/bootx-commons/common-websocket/src/main/java/cn/bootx/common/websocket/notice/UserNoticeWebSocketHandler.java +++ b/bootx-commons/common-websocket/src/main/java/cn/bootx/common/websocket/notice/UserNoticeWebSocketHandler.java @@ -57,7 +57,7 @@ public class UserNoticeWebSocketHandler extends TextWebSocketHandler { @Override public void handleTextMessage(WebSocketSession session, TextMessage message){ // 不处理接收的消息, 通常只会接收到心跳请求 - log.debug("心跳请求"); +// log.debug("心跳请求"); } -- Gitee From a934a80cbbb6b5904825a74be45680afa7e7e1c1 Mon Sep 17 00:00:00 2001 From: xxm Date: Wed, 23 Nov 2022 21:26:28 +0800 Subject: [PATCH 07/13] =?UTF-8?q?style=20vue3=E6=A8=A1=E6=9D=BF=E5=BE=AE?= =?UTF-8?q?=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/codegen/template/vue3/list.vue.vm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm index bcd1bbe9..4796d4fa 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm +++ b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm @@ -28,7 +28,7 @@ #if($deleteType == "confirm") - 删除 + 删除 #end #if($deleteType == "popconfirm") @@ -125,8 +125,8 @@ createMessage.success('删除成功') queryPage() }) - } #end + } -- Gitee From 10887bcbb6c07d329e3363ea04b8f939f1f61a30 Mon Sep 17 00:00:00 2001 From: xxm Date: Sun, 27 Nov 2022 19:12:08 +0800 Subject: [PATCH 08/13] build up spring boot --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b224d42c..e7c62924 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 2.7.5 + 2.7.6 -- Gitee From 910b2354ecb13a4fe48eb8bc8fc3907febf9d589 Mon Sep 17 00:00:00 2001 From: xxm Date: Mon, 28 Nov 2022 23:12:48 +0800 Subject: [PATCH 09/13] =?UTF-8?q?fix=20ts=E6=98=A0=E5=B0=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=B1=BB=E5=9E=8B=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cn/bootx/starter/code/gen/code/CodeGenColumnTypeEnum.java | 2 +- .../src/main/resources/codegen/template/vue3/edit.vue.vm | 2 +- .../src/main/resources/codegen/template/vue3/list.vue.vm | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bootx-common-starters/common-starter-code-gen/src/main/java/cn/bootx/starter/code/gen/code/CodeGenColumnTypeEnum.java b/bootx-common-starters/common-starter-code-gen/src/main/java/cn/bootx/starter/code/gen/code/CodeGenColumnTypeEnum.java index befa87b4..81c4af85 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/java/cn/bootx/starter/code/gen/code/CodeGenColumnTypeEnum.java +++ b/bootx-common-starters/common-starter-code-gen/src/main/java/cn/bootx/starter/code/gen/code/CodeGenColumnTypeEnum.java @@ -34,7 +34,7 @@ public enum CodeGenColumnTypeEnum { LONGTEXT("longtext","String","string"), DATE("date","LocalDate","string"), DATETIME("datetime","LocalDateTime","string"), - TIME("time","LocalTime",""), + TIME("time","LocalTime","string"), TIMESTAMP("timestamp","LocalDateTime","string"); private final String columnType; diff --git a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm index c3b6fae6..ce6ffba6 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm +++ b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/edit.vue.vm @@ -118,7 +118,7 @@ } // 保存 function handleOk() { - formRef.validate().then(async () => { + formRef?.validate().then(async () => { confirmLoading.value = true if (formEditType.value === FormEditType.Add) { await add(form) diff --git a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm index 4796d4fa..310a0353 100644 --- a/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm +++ b/bootx-common-starters/common-starter-code-gen/src/main/resources/codegen/template/vue3/list.vue.vm @@ -52,7 +52,7 @@