【修改】 名称替换

This commit is contained in:
DESKTOP-932OMT8\REN
2025-05-21 17:28:26 +08:00
parent 3bd8a424ec
commit b5f18ba897
1212 changed files with 1262 additions and 1270 deletions

View File

@@ -10,7 +10,7 @@ import org.springframework.validation.annotation.Validated;
/**
* Flowable 流程实例 Api 实现类
*
* @author 芋道源码
* @author 朋辰
* @author jason
*/
@Service

View File

@@ -16,7 +16,7 @@ public class BpmUserGroupRespVO {
@Schema(description = "组名", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道")
private String name;
@Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋道源码")
@Schema(description = "描述", requiredMode = Schema.RequiredMode.REQUIRED, example = "朋辰")
private String description;
@Schema(description = "成员编号数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "1,2,3")

View File

@@ -16,7 +16,7 @@ public class BpmUserGroupSaveReqVO {
@NotNull(message = "组名不能为空")
private String name;
@Schema(description = "描述", example = "芋道源码")
@Schema(description = "描述", example = "朋辰")
private String description;
@Schema(description = "成员编号数组", requiredMode = Schema.RequiredMode.REQUIRED, example = "1,2,3")

View File

@@ -23,7 +23,7 @@ import java.util.List;
* {@link pc.exam.pp.module.bpm.dal.dataobject.definition.BpmProcessDefinitionInfoDO}
* 是一致的
*
* @author 芋道源码
* @author 朋辰
*/
@Data
public class BpmModelMetaInfoVO {

View File

@@ -35,7 +35,7 @@ public class BpmSimpleModelNodeVO {
@Schema(description = "模型节点名称", example = "领导审批")
private String name;
@Schema(description = "节点展示内容", example = "指定成员: 芋道源码")
@Schema(description = "节点展示内容", example = "指定成员: 朋辰")
private String showText;
@Schema(description = "子节点")

View File

@@ -24,7 +24,7 @@ import static pc.exam.pp.framework.security.core.util.SecurityFrameworkUtils.get
* OA 请假申请 Controller用于演示自己存储数据接入工作流的例子
*
* @author jason
* @author 芋道源码
* @author 朋辰
*/
@Tag(name = "管理后台 - OA 请假申请")
@RestController

View File

@@ -29,7 +29,7 @@ public class BpmOALeaveCreateReqVO {
@Schema(description = "请假类型-参见 bpm_oa_type 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer type;
@Schema(description = "原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "阅读芋道源码")
@Schema(description = "原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "阅读朋辰")
private String reason;
@Schema(description = "发起人自选审批人 Map", example = "{taskKey1: [1, 2]}")

View File

@@ -21,7 +21,7 @@ public class BpmOALeavePageReqVO extends PageParam {
@Schema(description = "请假类型,参见 bpm_oa_type", example = "1")
private Integer type;
@Schema(description = "原因,模糊匹配", example = "阅读芋道源码")
@Schema(description = "原因,模糊匹配", example = "阅读朋辰")
private String reason;
@DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)

View File

@@ -15,7 +15,7 @@ public class BpmOALeaveRespVO {
@Schema(description = "请假类型,参见 bpm_oa_type 枚举", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
private Integer type;
@Schema(description = "原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "阅读芋道源码")
@Schema(description = "原因", requiredMode = Schema.RequiredMode.REQUIRED, example = "阅读朋辰")
private String reason;
@Schema(description = "申请时间", requiredMode = Schema.RequiredMode.REQUIRED)

View File

@@ -46,7 +46,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
/**
* 流程实例 Convert
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface BpmProcessInstanceConvert {

View File

@@ -34,7 +34,7 @@ import static pc.exam.pp.framework.common.util.collection.MapUtils.findAndThen;
/**
* Bpm 任务 Convert
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface BpmTaskConvert {

View File

@@ -12,7 +12,7 @@ import lombok.NoArgsConstructor;
/**
* BPM 流程分类 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("bpm_category")
@KeySequence("bpm_category_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -17,7 +17,7 @@ import java.util.List;
* BPM 工作流的表单定义
* 用于工作流的申请表单,需要动态配置的场景
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "bpm_form", autoResultMap = true)
@KeySequence("bpm_form_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -25,7 +25,7 @@ import java.util.List;
* BPM 流程定义的拓信息
* 主要解决 Flowable {@link org.flowable.engine.repository.ProcessDefinition} 不支持拓展字段,所以新建该表
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "bpm_process_definition_info", autoResultMap = true)
@KeySequence("bpm_process_definition_info_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -9,7 +9,7 @@ import lombok.*;
/**
* BPM 流程表达式 DO
*
* @author 芋道源码
* @author 朋辰
*/
@TableName("bpm_process_expression")
@KeySequence("bpm_process_expression_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -15,7 +15,7 @@ import lombok.NoArgsConstructor;
*
* 目的:本质上它是流程监听器的模版,用于 BPMN 在设计时,直接选择这些模版
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "bpm_process_listener")
@KeySequence("bpm_process_listener_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -17,7 +17,7 @@ import java.util.Set;
/**
* BPM 用户组
*
* @author 芋道源码
* @author 朋辰
*/
@TableName(value = "bpm_user_group", autoResultMap = true)
@KeySequence("bpm_user_group_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -18,7 +18,7 @@ import java.time.LocalDateTime;
* {@link #day} 请假天数,目前先简单做。一般是分成请假上午和下午,可以是 1 整天,可以是 0.5 半天
*
* @author jason
* @author 芋道源码
* @author 朋辰
*/
@TableName("bpm_oa_leave")
@KeySequence("bpm_oa_leave_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。

View File

@@ -13,7 +13,7 @@ import java.util.List;
/**
* BPM 流程分类 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface BpmCategoryMapper extends BaseMapperX<BpmCategoryDO> {

View File

@@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
/**
* BPM 流程表达式 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface BpmProcessExpressionMapper extends BaseMapperX<BpmProcessExpressionDO> {

View File

@@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Mapper;
/**
* BPM 流程监听器 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface BpmProcessListenerMapper extends BaseMapperX<BpmProcessListenerDO> {

View File

@@ -12,7 +12,7 @@ import java.util.List;
/**
* 用户组 Mapper
*
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface BpmUserGroupMapper extends BaseMapperX<BpmUserGroupDO> {

View File

@@ -11,7 +11,7 @@ import org.apache.ibatis.annotations.Mapper;
* 请假申请 Mapper
*
* @author jason
* @author 芋道源码
* @author 朋辰
*/
@Mapper
public interface BpmOALeaveMapper extends BaseMapperX<BpmOALeaveDO> {

View File

@@ -3,7 +3,7 @@ package pc.exam.pp.module.bpm.dal.redis;
/**
* BPM Redis Key 枚举类
*
* @author 芋道源码
* @author 朋辰
*/
public interface RedisKeyConstants {

View File

@@ -14,7 +14,7 @@ import org.flowable.engine.impl.bpmn.parser.factory.DefaultActivityBehaviorFacto
* 自定义的 ActivityBehaviorFactory 实现类,目的如下:
* 1. 自定义 {@link #createUserTaskActivityBehavior(UserTask)}:实现自定义的流程任务的 assignee 负责人的分配
*
* @author 芋道源码
* @author 朋辰
*/
@Setter
public class BpmActivityBehaviorFactory extends DefaultActivityBehaviorFactory {

View File

@@ -23,7 +23,7 @@ import java.util.Set;
*
* 本质上,实现和 {@link BpmParallelMultiInstanceBehavior} 一样,只是继承的类不一样
*
* @author 芋道源码
* @author 朋辰
*/
@Setter
public class BpmSequentialMultiInstanceBehavior extends SequentialMultiInstanceBehavior {

View File

@@ -26,7 +26,7 @@ import java.util.Set;
* 第一步,基于分配规则,计算出分配任务的【单个】候选人。如果找不到,则直接报业务异常,不继续执行后续的流程;
* 第二步,随机选择一个候选人,则选择作为 assignee 负责人。
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class BpmUserTaskActivityBehavior extends UserTaskActivityBehavior {

View File

@@ -33,7 +33,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.MODEL_DEPLOY_FAIL_T
/**
* {@link BpmTaskCandidateStrategy} 的调用者,用于调用对应的策略,实现任务的候选人的计算
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class BpmTaskCandidateInvoker {

View File

@@ -12,7 +12,7 @@ import java.util.Set;
* <p>
* 例如说:分配审批人
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmTaskCandidateStrategy {

View File

@@ -21,7 +21,7 @@ import static java.util.Collections.emptySet;
* 分配给发起人的 Leader 审批的 Expression 流程表达式
* 目前 Leader 的定义是,发起人所在部门的 Leader
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class BpmTaskAssignLeaderExpression {

View File

@@ -13,7 +13,7 @@ import java.util.Set;
/**
* 分配给发起人审批的 Expression 流程表达式
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class BpmTaskAssignStartUserExpression {

View File

@@ -21,7 +21,7 @@ import java.util.Map;
/**
* 发起人自选 {@link BpmTaskCandidateUserStrategy} 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class BpmTaskCandidateStartUserSelectStrategy extends AbstractBpmTaskCandidateDeptLeaderStrategy {

View File

@@ -18,7 +18,7 @@ import java.util.Set;
/**
* 流程表达式 {@link BpmTaskCandidateStrategy} 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -12,7 +12,7 @@ import java.util.Arrays;
*
* 例如说:分配给指定人审批
*
* @author 芋道源码
* @author 朋辰
*/
@Getter
@AllArgsConstructor

View File

@@ -5,7 +5,7 @@ import pc.exam.pp.module.bpm.enums.definition.BpmModelTypeEnum;
/**
* BPMN XML 常量信息
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmnModelConstants {

View File

@@ -5,7 +5,7 @@ import org.flowable.engine.runtime.ProcessInstance;
/**
* BPM Variable 通用常量
*
* @author 芋道源码
* @author 朋辰
*/
public class BpmnVariableConstants {

View File

@@ -10,7 +10,7 @@ import jakarta.validation.Valid;
/**
* {@link BpmProcessInstanceStatusEvent} 的生产者
*
* @author 芋道源码
* @author 朋辰
*/
@AllArgsConstructor
@Validated

View File

@@ -7,7 +7,7 @@ import org.flowable.engine.delegate.JavaDelegate;
/**
* 类型为 class 的 ExecutionListener 监听器示例
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class DemoDelegateClassExecutionListener implements JavaDelegate {

View File

@@ -7,7 +7,7 @@ import org.flowable.task.service.delegate.DelegateTask;
/**
* 类型为 class 的 TaskListener 监听器示例
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class DemoDelegateClassTaskListener implements TaskListener {

View File

@@ -8,7 +8,7 @@ import org.springframework.stereotype.Component;
/**
* 类型为 delegateExpression 的 TaskListener 监听器示例
*
* @author 芋道源码
* @author 朋辰
*/
@Component
@Slf4j

View File

@@ -7,7 +7,7 @@ import org.springframework.stereotype.Component;
/**
* 类型为 expression 的 TaskListener 监听器示例
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
@Component

View File

@@ -31,7 +31,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.PROCESS_INSTANCE_HT
/**
* 工作流发起 HTTP 请求工具类
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class BpmHttpRequestUtils {

View File

@@ -38,7 +38,7 @@ import static org.flowable.bpmn.constants.BpmnXMLConstants.FLOWABLE_EXTENSIONS_P
* 3. BPMN 复杂遍历相关的方法
* 4. BPMN 流程预测相关的方法
*
* @author 芋道源码
* @author 朋辰
*/
@Slf4j
public class BpmnModelUtils {

View File

@@ -37,7 +37,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
/**
* Flowable 相关的工具方法
*
* @author 芋道源码
* @author 朋辰
*/
public class FlowableUtils {

View File

@@ -1,6 +1,6 @@
/**
* 属于 bpm 模块的 framework 封装
*
* @author 芋道源码
* @author 朋辰
*/
package pc.exam.pp.module.bpm.framework;

View File

@@ -11,7 +11,7 @@ import org.springframework.context.annotation.Configuration;
/**
* bpm 模块的 web 组件的 Configuration
*
* @author 芋道源码
* @author 朋辰
*/
@Configuration(proxyBeanMethods = false)
public class BpmWebConfiguration {

View File

@@ -15,7 +15,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
/**
* BPM 流程分类 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmCategoryService {

View File

@@ -25,7 +25,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.*;
/**
* BPM 流程分类 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -51,7 +51,7 @@ import static pc.exam.pp.module.bpm.framework.flowable.core.util.BpmnModelUtils.
* 流程模型实现:主要进行 Flowable {@link Model} 的维护
*
* @author yunlongn
* @author 芋道源码
* @author 朋辰
* @author jason
*/
@Service

View File

@@ -22,7 +22,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
*
* @author yunlong.li
* @author ZJQ
* @author 芋道源码
* @author 朋辰
*/
public interface BpmProcessDefinitionService {

View File

@@ -39,7 +39,7 @@ import static java.util.Collections.emptyList;
*
* @author yunlongn
* @author ZJQ
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -9,7 +9,7 @@ import pc.exam.pp.framework.common.pojo.PageResult;
/**
* BPM 流程表达式 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmProcessExpressionService {

View File

@@ -18,7 +18,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.*;
/**
* BPM 流程表达式 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -9,7 +9,7 @@ import pc.exam.pp.framework.common.pojo.PageResult;
/**
* BPM 流程监听器 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmProcessListenerService {

View File

@@ -21,7 +21,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.*;
/**
* BPM 流程监听器 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -12,7 +12,7 @@ import java.util.List;
/**
* 用户组 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmUserGroupService {

View File

@@ -24,7 +24,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.USER_GROUP_NOT_EXIS
/**
* 用户组 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -7,7 +7,7 @@ import lombok.Data;
* Bpm 表单的 Field 表单项 Response DTO
* 字段的定义,可见 https://github.com/JakHuang/form-generator/issues/46 文档
*
* @author 芋道源码
* @author 朋辰
*/
@Data
public class BpmFormFieldRespDTO {

View File

@@ -11,7 +11,7 @@ import jakarta.validation.Valid;
*
* TODO 芋艿:未来支持消息的可配置;不同的流程,在什么场景下,需要发送什么消息,消息的内容是什么;
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmMessageService {

View File

@@ -19,7 +19,7 @@ import java.util.Map;
/**
* BPM 消息 Service 实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -12,7 +12,7 @@ import jakarta.validation.Valid;
* 请假申请 Service 接口
*
* @author jason
* @author 芋道源码
* @author 朋辰
*/
public interface BpmOALeaveService {

View File

@@ -25,7 +25,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.OA_LEAVE_NOT_EXISTS
* OA 请假申请 Service 实现类
*
* @author jason
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -11,7 +11,7 @@ import jakarta.annotation.Resource;
/**
* OA 请假单的结果的监听器实现类
*
* @author 芋道源码
* @author 朋辰
*/
@Component
public class BpmOALeaveStatusListener extends BpmProcessInstanceStatusEventListener {

View File

@@ -17,7 +17,7 @@ import static pc.exam.pp.framework.common.util.collection.CollectionUtils.conver
/**
* 流程实例 Service 接口
*
* @author 芋道源码
* @author 朋辰
*/
public interface BpmProcessInstanceService {

View File

@@ -86,7 +86,7 @@ import static org.flowable.bpmn.constants.BpmnXMLConstants.*;
* <p>
* 简单来说,前者 = 历史 + 运行中的流程实例,后者仅是运行中的流程实例
*
* @author 芋道源码
* @author 朋辰
*/
@Service
@Validated

View File

@@ -19,7 +19,7 @@ import java.util.Map;
* 流程任务实例 Service 接口
*
* @author jason
* @author 芋道源码
* @author 朋辰
*/
public interface BpmTaskService {

View File

@@ -76,7 +76,7 @@ import static pc.exam.pp.module.bpm.framework.flowable.core.util.BpmnModelUtils.
/**
* 流程任务实例 Service 实现类
*
* @author 芋道源码
* @author 朋辰
* @author jason
*/
@Slf4j

View File

@@ -40,7 +40,7 @@ import static org.mockito.Mockito.*;
/**
* {@link BpmTaskCandidateInvoker} 的单元测试
*
* @author 芋道源码
* @author 朋辰
*/
public class BpmTaskCandidateInvokerTest extends BaseMockitoUnitTest {

View File

@@ -24,7 +24,7 @@ import static org.junit.jupiter.api.Assertions.*;
/**
* {@link BpmCategoryServiceImpl} 的单元测试类
*
* @author 芋道源码
* @author 朋辰
*/
@Import(BpmCategoryServiceImpl.class)
public class BpmCategoryServiceImplTest extends BaseDbUnitTest {

View File

@@ -28,7 +28,7 @@ import static org.junit.jupiter.api.Assertions.*;
/**
* {@link BpmFormServiceImpl} 的单元测试类
*
* @author 芋道源码
* @author 朋辰
*/
@Import(BpmFormServiceImpl.class)
public class BpmFormServiceTest extends BaseDbUnitTest {
@@ -117,7 +117,7 @@ public class BpmFormServiceTest extends BaseDbUnitTest {
public void testGetFormPage() {
// mock 数据
BpmFormDO dbForm = randomPojo(BpmFormDO.class, o -> { // 等会查询到
o.setName("芋道源码");
o.setName("朋辰");
});
formMapper.insert(dbForm);
// 测试 name 不匹配

View File

@@ -24,7 +24,7 @@ import static pc.exam.pp.module.bpm.enums.ErrorCodeConstants.USER_GROUP_NOT_EXIS
/**
* {@link BpmUserGroupServiceImpl} 的单元测试类
*
* @author 芋道源码
* @author 朋辰
*/
@Import(BpmUserGroupServiceImpl.class)
public class BpmUserGroupServiceTest extends BaseDbUnitTest {
@@ -102,7 +102,7 @@ public class BpmUserGroupServiceTest extends BaseDbUnitTest {
public void testGetUserGroupPage() {
// mock 数据
BpmUserGroupDO dbUserGroup = RandomUtils.randomPojo(BpmUserGroupDO.class, o -> { // 等会查询到
o.setName("芋道源码");
o.setName("朋辰");
o.setStatus(CommonStatusEnum.ENABLE.getStatus());
o.setCreateTime(buildTime(2021, 11, 11));
});