mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-11-16 06:03:44 +08:00
Compare commits
25 Commits
37038449ab
...
v5.5.1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b58085fde1 | ||
|
|
b30ffa952f | ||
|
|
fd5d028e95 | ||
|
|
64100cf1ff | ||
|
|
7e7d857ba5 | ||
|
|
d22b2a10df | ||
|
|
957a4d1fcd | ||
|
|
49ef8378fe | ||
|
|
57dd6831d3 | ||
|
|
8aa60abb1f | ||
|
|
7a9f51fc7a | ||
|
|
159e30c982 | ||
|
|
7334d91d6b | ||
|
|
95c01301f6 | ||
|
|
296466fa13 | ||
|
|
3c8d864b5f | ||
|
|
ea50a57602 | ||
|
|
7e14b98676 | ||
|
|
015b406001 | ||
|
|
098d3347a0 | ||
|
|
08d4493994 | ||
|
|
367d739e2d | ||
|
|
d6688a367d | ||
|
|
0b331796e2 | ||
|
|
456620b638 |
@@ -67,8 +67,7 @@ public class CompleteTaskDTO implements Serializable {
|
|||||||
|
|
||||||
public Map<String, Object> getVariables() {
|
public Map<String, Object> getVariables() {
|
||||||
if (variables == null) {
|
if (variables == null) {
|
||||||
variables = new HashMap<>(16);
|
return new HashMap<>(16);
|
||||||
return variables;
|
|
||||||
}
|
}
|
||||||
variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()));
|
variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()));
|
||||||
return variables;
|
return variables;
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
package org.dromara.common.excel.annotation;
|
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Excel动态下拉选项注解
|
|
||||||
*
|
|
||||||
* @author Angus
|
|
||||||
*/
|
|
||||||
@Target({ElementType.FIELD})
|
|
||||||
@Retention(RetentionPolicy.RUNTIME)
|
|
||||||
@Inherited
|
|
||||||
public @interface ExcelDynamicOptions {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 提供者类全限定名
|
|
||||||
* 实现org.dromara.common.excel.service.ExcelOptionsProvider实现类接口
|
|
||||||
*/
|
|
||||||
Class<?> providerClass();
|
|
||||||
}
|
|
||||||
@@ -23,9 +23,7 @@ import org.dromara.common.core.utils.SpringUtils;
|
|||||||
import org.dromara.common.core.utils.StreamUtils;
|
import org.dromara.common.core.utils.StreamUtils;
|
||||||
import org.dromara.common.core.utils.StringUtils;
|
import org.dromara.common.core.utils.StringUtils;
|
||||||
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
import org.dromara.common.excel.annotation.ExcelDictFormat;
|
||||||
import org.dromara.common.excel.annotation.ExcelDynamicOptions;
|
|
||||||
import org.dromara.common.excel.annotation.ExcelEnumFormat;
|
import org.dromara.common.excel.annotation.ExcelEnumFormat;
|
||||||
import org.dromara.common.excel.service.ExcelOptionsProvider;
|
|
||||||
|
|
||||||
import java.lang.reflect.Field;
|
import java.lang.reflect.Field;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
@@ -119,18 +117,6 @@ public class ExcelDownHandler implements SheetWriteHandler {
|
|||||||
ExcelEnumFormat format = field.getDeclaredAnnotation(ExcelEnumFormat.class);
|
ExcelEnumFormat format = field.getDeclaredAnnotation(ExcelEnumFormat.class);
|
||||||
List<Object> values = EnumUtil.getFieldValues(format.enumClass(), format.textField());
|
List<Object> values = EnumUtil.getFieldValues(format.enumClass(), format.textField());
|
||||||
options = StreamUtils.toList(values, Convert::toStr);
|
options = StreamUtils.toList(values, Convert::toStr);
|
||||||
} else if (field.isAnnotationPresent(ExcelDynamicOptions.class)) {
|
|
||||||
// 处理动态下拉选项
|
|
||||||
ExcelDynamicOptions dynamicOptions = field.getDeclaredAnnotation(ExcelDynamicOptions.class);
|
|
||||||
Class<?> providerClass = dynamicOptions.providerClass();
|
|
||||||
if (providerClass == null) {
|
|
||||||
throw new ServiceException("使用ExcelDynamicOptions注解,必须给providerClass赋予ExcelOptionsProvider的实现类" +
|
|
||||||
",字段:{}", field.getName());
|
|
||||||
}
|
|
||||||
// 获取提供者实例
|
|
||||||
ExcelOptionsProvider provider = (ExcelOptionsProvider) SpringUtils.getBean(providerClass);
|
|
||||||
Set<String> optionSets = provider.getOptions();
|
|
||||||
options = new ArrayList<>(CollUtil.isNotEmpty(optionSets) ? new ArrayList<>(optionSets) : Collections.emptyList());
|
|
||||||
}
|
}
|
||||||
if (ObjectUtil.isNotEmpty(options)) {
|
if (ObjectUtil.isNotEmpty(options)) {
|
||||||
// 仅当下拉可选项不为空时执行
|
// 仅当下拉可选项不为空时执行
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
package org.dromara.common.excel.service;
|
|
||||||
|
|
||||||
import java.util.Set;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Excel下拉选项数据提供接口
|
|
||||||
*
|
|
||||||
* @author Angus
|
|
||||||
*/
|
|
||||||
public interface ExcelOptionsProvider {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 获取下拉选项数据
|
|
||||||
*
|
|
||||||
* @return 下拉选项列表
|
|
||||||
*/
|
|
||||||
Set<String> getOptions();
|
|
||||||
}
|
|
||||||
@@ -144,8 +144,7 @@ public class WorkflowGlobalListener implements GlobalListener {
|
|||||||
//申请人提交事件
|
//申请人提交事件
|
||||||
Boolean submit = MapUtil.getBool(variable, FlowConstant.SUBMIT);
|
Boolean submit = MapUtil.getBool(variable, FlowConstant.SUBMIT);
|
||||||
if (submit != null && submit) {
|
if (submit != null && submit) {
|
||||||
String status = determineFlowStatus(instance);
|
flowProcessEventHandler.processHandler(definition.getFlowCode(), instance, instance.getFlowStatus(), variable, true);
|
||||||
flowProcessEventHandler.processHandler(definition.getFlowCode(), instance, status, variable, true);
|
|
||||||
} else {
|
} else {
|
||||||
// 判断流程状态(发布:撤销,退回,作废,终止,已完成事件)
|
// 判断流程状态(发布:撤销,退回,作废,终止,已完成事件)
|
||||||
String status = determineFlowStatus(instance);
|
String status = determineFlowStatus(instance);
|
||||||
|
|||||||
@@ -199,10 +199,7 @@ public class TestLeaveServiceImpl implements ITestLeaveService {
|
|||||||
testLeave.setApplyCode(businessCode);
|
testLeave.setApplyCode(businessCode);
|
||||||
}
|
}
|
||||||
testLeave.setStatus(BusinessStatusEnum.WAITING.getStatus());
|
testLeave.setStatus(BusinessStatusEnum.WAITING.getStatus());
|
||||||
log.info("申请人提交");
|
|
||||||
}
|
}
|
||||||
String status = BusinessStatusEnum.findByStatus(processEvent.getStatus());
|
|
||||||
log.info("当前流程状态为{}", status);
|
|
||||||
baseMapper.updateById(testLeave);
|
baseMapper.updateById(testLeave);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1261,7 +1261,7 @@ EXEC sp_addextendedproperty
|
|||||||
'COLUMN', N'component_name'
|
'COLUMN', N'component_name'
|
||||||
GO
|
GO
|
||||||
|
|
||||||
EXEC sp_addextendedproperty
|
-- method_name 字段注释
|
||||||
'MS_Description', N'方法名',
|
'MS_Description', N'方法名',
|
||||||
'SCHEMA', N'dbo',
|
'SCHEMA', N'dbo',
|
||||||
'TABLE', N'flow_spel',
|
'TABLE', N'flow_spel',
|
||||||
|
|||||||
Reference in New Issue
Block a user