diff --git a/quotation-admin/src/main/java/net/ferrum/web/controller/workflow/WfFormController.java b/quotation-admin/src/main/java/net/ferrum/web/controller/workflow/WfFormController.java index fc020aa..a2a66be 100644 --- a/quotation-admin/src/main/java/net/ferrum/web/controller/workflow/WfFormController.java +++ b/quotation-admin/src/main/java/net/ferrum/web/controller/workflow/WfFormController.java @@ -1,6 +1,7 @@ package net.ferrum.web.controller.workflow; import cn.dev33.satoken.annotation.SaCheckPermission; +import lombok.RequiredArgsConstructor; import net.ferrum.common.annotation.Log; import net.ferrum.common.core.controller.BaseController; import net.ferrum.common.core.domain.PageQuery; @@ -14,7 +15,6 @@ import net.ferrum.workflow.domain.bo.WfFormBo; import net.ferrum.workflow.domain.vo.WfFormVo; import net.ferrum.workflow.service.IWfDeployFormService; import net.ferrum.workflow.service.IWfFormService; -import lombok.RequiredArgsConstructor; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; diff --git a/quotation-admin/src/main/resources/application.yml b/quotation-admin/src/main/resources/application.yml index 0cb9242..9c8077f 100644 --- a/quotation-admin/src/main/resources/application.yml +++ b/quotation-admin/src/main/resources/application.yml @@ -1,11 +1,11 @@ # 项目相关配置 ruoyi: # 名称 - name: RuoYi-Flowable-Plus + name: Quotation-System-Backend # 版本 - version: ${ruoyi-flowable-plus.version} + version: ${quotation-system-backend.version} # 版权年份 - copyrightYear: 2022 + copyrightYear: 2025 # 实例演示开关 demoEnabled: true # 获取ip地址开关 diff --git a/quotation-system/src/main/java/net/ferrum/workflow/listener/PublishSpecificationListener.java b/quotation-system/src/main/java/net/ferrum/workflow/listener/PublishSpecificationListener.java new file mode 100644 index 0000000..caab8a8 --- /dev/null +++ b/quotation-system/src/main/java/net/ferrum/workflow/listener/PublishSpecificationListener.java @@ -0,0 +1,57 @@ +package net.ferrum.workflow.listener; + +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import net.ferrum.flowable.utils.TaskUtils; +import net.ferrum.workflow.service.IWfProcessService; +import org.flowable.engine.TaskService; +import org.flowable.engine.delegate.DelegateExecution; +import org.flowable.engine.delegate.ExecutionListener; +import org.flowable.task.api.Task; +import org.flowable.task.api.TaskQuery; +import org.springframework.stereotype.Component; + +import java.lang.reflect.Field; +import java.util.List; + +/** + * 发布规格事件监听类 + * + * @author 26554 + * @version 1.0.0 + * @since 2025/2/18 + */ + +@Slf4j +@Component("publishSpecificationListener") +@RequiredArgsConstructor +public class PublishSpecificationListener implements ExecutionListener { + + private final IWfProcessService processService; + private final TaskService taskService; + + @Override + public void notify(DelegateExecution delegateExecution) { + TaskQuery taskQuery = taskService.createTaskQuery() + .active() + .includeProcessVariables() + .taskCandidateOrAssigned(TaskUtils.getUserId()) + .taskCandidateGroupIn(TaskUtils.getCandidateGroup()) + .processDefinitionId(delegateExecution.getProcessDefinitionId()) + .orderByTaskCreateTime().desc(); + List taskList = taskQuery.list(); + taskList.forEach(task -> { + Field[] fields = task.getClass().getDeclaredFields(); + for (Field field : fields) { + field.setAccessible(true); + try { + log.info("属性[{}]值为:{}", field.getName(), field.get(task)); + } catch (IllegalAccessException e) { + throw new RuntimeException(e); + } + } + }); + } + + +} diff --git a/quotation-system/src/main/resources/mapper/system/SysConfigMapper.xml b/quotation-system/src/main/resources/mapper/system/SysConfigMapper.xml index b80c993..a8bec62 100644 --- a/quotation-system/src/main/resources/mapper/system/SysConfigMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysConfigMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysDeptMapper.xml b/quotation-system/src/main/resources/mapper/system/SysDeptMapper.xml index 6a652df..4d172fa 100644 --- a/quotation-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysDictDataMapper.xml b/quotation-system/src/main/resources/mapper/system/SysDictDataMapper.xml index 1d56f8a..74ce881 100644 --- a/quotation-system/src/main/resources/mapper/system/SysDictDataMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysDictDataMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysDictTypeMapper.xml b/quotation-system/src/main/resources/mapper/system/SysDictTypeMapper.xml index 1365927..1451a72 100644 --- a/quotation-system/src/main/resources/mapper/system/SysDictTypeMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysDictTypeMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysLogininforMapper.xml b/quotation-system/src/main/resources/mapper/system/SysLogininforMapper.xml index 81d7120..7bdc9d8 100644 --- a/quotation-system/src/main/resources/mapper/system/SysLogininforMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysLogininforMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysMenuMapper.xml b/quotation-system/src/main/resources/mapper/system/SysMenuMapper.xml index c1cd5d4..d7e821a 100644 --- a/quotation-system/src/main/resources/mapper/system/SysMenuMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysMenuMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysNoticeMapper.xml b/quotation-system/src/main/resources/mapper/system/SysNoticeMapper.xml index 81b0fbd..8b4cd0c 100644 --- a/quotation-system/src/main/resources/mapper/system/SysNoticeMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysNoticeMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysOperLogMapper.xml b/quotation-system/src/main/resources/mapper/system/SysOperLogMapper.xml index 13185fb..287fcfe 100644 --- a/quotation-system/src/main/resources/mapper/system/SysOperLogMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysOperLogMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysOssConfigMapper.xml b/quotation-system/src/main/resources/mapper/system/SysOssConfigMapper.xml index 6821d33..25caaf4 100644 --- a/quotation-system/src/main/resources/mapper/system/SysOssConfigMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysOssConfigMapper.xml @@ -2,7 +2,7 @@ - + diff --git a/quotation-system/src/main/resources/mapper/system/SysOssMapper.xml b/quotation-system/src/main/resources/mapper/system/SysOssMapper.xml index 9a93747..6170858 100644 --- a/quotation-system/src/main/resources/mapper/system/SysOssMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysOssMapper.xml @@ -1,6 +1,6 @@ - + diff --git a/quotation-system/src/main/resources/mapper/system/SysPostMapper.xml b/quotation-system/src/main/resources/mapper/system/SysPostMapper.xml index 10ab8dc..cacfcef 100644 --- a/quotation-system/src/main/resources/mapper/system/SysPostMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysPostMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml b/quotation-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml index 7889626..6c9db4f 100644 --- a/quotation-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysRoleDeptMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysRoleMapper.xml b/quotation-system/src/main/resources/mapper/system/SysRoleMapper.xml index ac3bd4f..f402222 100644 --- a/quotation-system/src/main/resources/mapper/system/SysRoleMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysRoleMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml b/quotation-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml index 147ad9a..2f8ce6b 100644 --- a/quotation-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysRoleMenuMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysUserMapper.xml b/quotation-system/src/main/resources/mapper/system/SysUserMapper.xml index 4511d5a..da26e6f 100644 --- a/quotation-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysUserPostMapper.xml b/quotation-system/src/main/resources/mapper/system/SysUserPostMapper.xml index 5d2aa2a..960a3a8 100644 --- a/quotation-system/src/main/resources/mapper/system/SysUserPostMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysUserPostMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/system/SysUserRoleMapper.xml b/quotation-system/src/main/resources/mapper/system/SysUserRoleMapper.xml index defea32..b5944f3 100644 --- a/quotation-system/src/main/resources/mapper/system/SysUserRoleMapper.xml +++ b/quotation-system/src/main/resources/mapper/system/SysUserRoleMapper.xml @@ -2,9 +2,9 @@ - + - + diff --git a/quotation-system/src/main/resources/mapper/workflow/WfCategoryMapper.xml b/quotation-system/src/main/resources/mapper/workflow/WfCategoryMapper.xml index 7edd917..8a6f58c 100644 --- a/quotation-system/src/main/resources/mapper/workflow/WfCategoryMapper.xml +++ b/quotation-system/src/main/resources/mapper/workflow/WfCategoryMapper.xml @@ -2,7 +2,7 @@ - + diff --git a/quotation-system/src/main/resources/mapper/workflow/WfCopyMapper.xml b/quotation-system/src/main/resources/mapper/workflow/WfCopyMapper.xml index 2c0d6b2..018dfa3 100644 --- a/quotation-system/src/main/resources/mapper/workflow/WfCopyMapper.xml +++ b/quotation-system/src/main/resources/mapper/workflow/WfCopyMapper.xml @@ -2,7 +2,7 @@ - + diff --git a/quotation-system/src/main/resources/mapper/workflow/WfDeployFormMapper.xml b/quotation-system/src/main/resources/mapper/workflow/WfDeployFormMapper.xml index b504155..9c33e58 100644 --- a/quotation-system/src/main/resources/mapper/workflow/WfDeployFormMapper.xml +++ b/quotation-system/src/main/resources/mapper/workflow/WfDeployFormMapper.xml @@ -2,7 +2,7 @@ - + diff --git a/quotation-system/src/main/resources/mapper/workflow/WfFormMapper.xml b/quotation-system/src/main/resources/mapper/workflow/WfFormMapper.xml index 518bb72..3bbcaff 100644 --- a/quotation-system/src/main/resources/mapper/workflow/WfFormMapper.xml +++ b/quotation-system/src/main/resources/mapper/workflow/WfFormMapper.xml @@ -2,7 +2,7 @@ - +