-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from EcoNetsTech/2.x
2.x
- Loading branch information
Showing
166 changed files
with
3,070 additions
and
1,215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...iz-dict/src/main/java/cn/econets/blossom/framework/dict/config/DictAutoConfiguration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...t-starter-biz-dict/src/main/java/cn/econets/blossom/framework/dict/core/package-info.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package cn.econets.blossom.framework.dict.core; |
2 changes: 1 addition & 1 deletion
2
...amework/dict/core/DictFrameworkUtils.java → ...rk/dict/core/util/DictFrameworkUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...rter-excel/src/main/java/cn/econets/blossom/framework/excel/core/convert/DictConvert.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...pm-api/src/main/java/cn/econets/blossom/module/bpm/api/listener/BpmResultListenerApi.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package cn.econets.blossom.module.bpm.api.listener; | ||
|
||
import cn.econets.blossom.module.bpm.api.listener.dto.BpmResultListenerRespDTO; | ||
|
||
// TODO 后续改成支持 RPC | ||
/** | ||
* 业务流程实例的结果发生变化的监听器 Api | ||
* | ||
*/ | ||
public interface BpmResultListenerApi { | ||
|
||
/** | ||
* 监听的流程定义 Key | ||
* | ||
* @return 返回监听的流程定义 Key | ||
*/ | ||
String getProcessDefinitionKey(); | ||
|
||
/** | ||
* 处理事件 | ||
* | ||
* @param event 事件 | ||
*/ | ||
void onEvent(BpmResultListenerRespDTO event); | ||
|
||
} |
31 changes: 31 additions & 0 deletions
31
...rc/main/java/cn/econets/blossom/module/bpm/api/listener/dto/BpmResultListenerRespDTO.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package cn.econets.blossom.module.bpm.api.listener.dto; | ||
|
||
import lombok.Data; | ||
|
||
// TODO后续改成支持 RPC | ||
/** | ||
* 业务流程实例的结果 Response DTO | ||
* | ||
*/ | ||
@Data | ||
public class BpmResultListenerRespDTO { | ||
|
||
/** | ||
* 流程实例的编号 | ||
*/ | ||
private String id; | ||
/** | ||
* 流程实例的 key | ||
*/ | ||
private String processDefinitionKey; | ||
/** | ||
* 流程实例的结果 | ||
*/ | ||
private Integer result; | ||
/** | ||
* 流程实例对应的业务标识 | ||
* 例如说,请假 | ||
*/ | ||
private String businessKey; | ||
|
||
} |
35 changes: 35 additions & 0 deletions
35
...n/java/cn/econets/blossom/module/bpm/framework/bpm/listener/BpmServiceResultListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
package cn.econets.blossom.module.bpm.framework.bpm.listener; | ||
|
||
import cn.hutool.core.util.StrUtil; | ||
import cn.econets.blossom.framework.common.util.object.BeanUtils; | ||
import cn.econets.blossom.module.bpm.api.listener.BpmResultListenerApi; | ||
import cn.econets.blossom.module.bpm.api.listener.dto.BpmResultListenerRespDTO; | ||
import cn.econets.blossom.module.bpm.framework.bpm.core.event.BpmProcessInstanceResultEvent; | ||
import org.springframework.context.ApplicationListener; | ||
import org.springframework.stereotype.Component; | ||
|
||
import javax.annotation.Resource; | ||
import java.util.List; | ||
|
||
// TODO 后续改成支持 RPC | ||
/** | ||
* 业务流程结果监听器实现类 | ||
* | ||
*/ | ||
@Component | ||
public class BpmServiceResultListener implements ApplicationListener<BpmProcessInstanceResultEvent> { | ||
|
||
@Resource | ||
private List<BpmResultListenerApi> bpmResultListenerApis; | ||
|
||
@Override | ||
public final void onApplicationEvent(BpmProcessInstanceResultEvent event) { | ||
bpmResultListenerApis.forEach(bpmResultListenerApi -> { | ||
if (!StrUtil.equals(event.getProcessDefinitionKey(), bpmResultListenerApi.getProcessDefinitionKey())) { | ||
return; | ||
} | ||
bpmResultListenerApi.onEvent(BeanUtils.toBean(event, BpmResultListenerRespDTO.class)); | ||
}); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* CRM 的审批状态 | ||
* | ||
* | ||
*/ | ||
@RequiredArgsConstructor | ||
@Getter | ||
|
38 changes: 0 additions & 38 deletions
38
...m-api/src/main/java/cn/econets/blossom/module/crm/enums/message/CrmContactStatusEnum.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,6 @@ | |
/** | ||
* CRM 商品状态 | ||
* | ||
* @since 2023-11-30 21:53 | ||
*/ | ||
@Getter | ||
@AllArgsConstructor | ||
|
Oops, something went wrong.