update 优化 重构代码
This commit is contained in:
parent
14463d3b1f
commit
8a2ee6d61e
@ -8,6 +8,11 @@ package org.dromara.workflow.common.constant;
|
|||||||
*/
|
*/
|
||||||
public interface FlowConstant {
|
public interface FlowConstant {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 任务Id转任务办理人名称
|
||||||
|
*/
|
||||||
|
String TASK_ID_TO_ASSIGNEE = "task_id_to_assignee";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 流程发起人
|
* 流程发起人
|
||||||
*/
|
*/
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
package org.dromara.workflow.constant;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 常量
|
|
||||||
*
|
|
||||||
* @author Lion Li
|
|
||||||
*/
|
|
||||||
public interface WfConstant {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 任务Id转任务办理人名称
|
|
||||||
*/
|
|
||||||
String TASK_ID_TO_ASSIGNEE = "task_id_to_assignee";
|
|
||||||
|
|
||||||
}
|
|
@ -4,7 +4,7 @@ import lombok.Data;
|
|||||||
import org.dromara.common.translation.annotation.Translation;
|
import org.dromara.common.translation.annotation.Translation;
|
||||||
import org.dromara.common.translation.constant.TransConstant;
|
import org.dromara.common.translation.constant.TransConstant;
|
||||||
import org.dromara.warm.flow.core.entity.User;
|
import org.dromara.warm.flow.core.entity.User;
|
||||||
import org.dromara.workflow.constant.WfConstant;
|
import org.dromara.workflow.common.constant.FlowConstant;
|
||||||
|
|
||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@ -124,7 +124,7 @@ public class FlowTaskVo implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 办理人名称
|
* 办理人名称
|
||||||
*/
|
*/
|
||||||
@Translation(type = WfConstant.TASK_ID_TO_ASSIGNEE, mapper = "id")
|
@Translation(type = FlowConstant.TASK_ID_TO_ASSIGNEE, mapper = "id")
|
||||||
private String transactorNames;
|
private String transactorNames;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,7 +4,7 @@ import lombok.RequiredArgsConstructor;
|
|||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.dromara.common.translation.annotation.TranslationType;
|
import org.dromara.common.translation.annotation.TranslationType;
|
||||||
import org.dromara.common.translation.core.TranslationInterface;
|
import org.dromara.common.translation.core.TranslationInterface;
|
||||||
import org.dromara.workflow.constant.WfConstant;
|
import org.dromara.workflow.common.constant.FlowConstant;
|
||||||
import org.dromara.workflow.service.IFlwTaskService;
|
import org.dromara.workflow.service.IFlwTaskService;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ import org.springframework.stereotype.Service;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@Service
|
@Service
|
||||||
@TranslationType(type = WfConstant.TASK_ID_TO_ASSIGNEE)
|
@TranslationType(type = FlowConstant.TASK_ID_TO_ASSIGNEE)
|
||||||
public class TaskAssigneeTranslationImpl implements TranslationInterface<String> {
|
public class TaskAssigneeTranslationImpl implements TranslationInterface<String> {
|
||||||
|
|
||||||
private final IFlwTaskService flwTaskService;
|
private final IFlwTaskService flwTaskService;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user