mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-02-08 22:54:59 +08:00
bpm:code review
This commit is contained in:
parent
fc2d30cfaf
commit
af788e36ce
@ -6,6 +6,7 @@ import lombok.Data;
|
|||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
|
// TODO @海洋:类名,应该是 create 哈
|
||||||
@Schema(description = "管理后台 - 加签流程任务的 Request VO")
|
@Schema(description = "管理后台 - 加签流程任务的 Request VO")
|
||||||
@Data
|
@Data
|
||||||
public class BpmTaskAddSignReqVO {
|
public class BpmTaskAddSignReqVO {
|
||||||
@ -26,4 +27,4 @@ public class BpmTaskAddSignReqVO {
|
|||||||
@NotEmpty(message = "加签原因不能为空")
|
@NotEmpty(message = "加签原因不能为空")
|
||||||
private String reason;
|
private String reason;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,6 +5,7 @@ import lombok.Data;
|
|||||||
|
|
||||||
import javax.validation.constraints.NotEmpty;
|
import javax.validation.constraints.NotEmpty;
|
||||||
|
|
||||||
|
// TODO @海洋:类名,应该是 delete 哈
|
||||||
@Schema(description = "管理后台 - 减签流程任务的 Request VO")
|
@Schema(description = "管理后台 - 减签流程任务的 Request VO")
|
||||||
@Data
|
@Data
|
||||||
public class BpmTaskSubSignReqVO {
|
public class BpmTaskSubSignReqVO {
|
||||||
|
@ -21,13 +21,13 @@ public interface BpmTaskExtMapper extends BaseMapperX<BpmTaskExtDO> {
|
|||||||
return selectList(BpmTaskExtDO::getTaskId, taskIds);
|
return selectList(BpmTaskExtDO::getTaskId, taskIds);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO @海:BpmProcessInstanceResultEnum.CAN_SUB_SIGN_STATUS_LIST) 应该作为条件,mapper 不要有业务
|
||||||
default List<BpmTaskExtDO> selectProcessListByTaskIds(Collection<String> taskIds) {
|
default List<BpmTaskExtDO> selectProcessListByTaskIds(Collection<String> taskIds) {
|
||||||
return selectList(new LambdaQueryWrapperX<BpmTaskExtDO>()
|
return selectList(new LambdaQueryWrapperX<BpmTaskExtDO>()
|
||||||
.in(BpmTaskExtDO::getTaskId, taskIds)
|
.in(BpmTaskExtDO::getTaskId, taskIds)
|
||||||
.in(BpmTaskExtDO::getResult, BpmProcessInstanceResultEnum.CAN_SUB_SIGN_STATUS_LIST));
|
.in(BpmTaskExtDO::getResult, BpmProcessInstanceResultEnum.CAN_SUB_SIGN_STATUS_LIST));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
default BpmTaskExtDO selectByTaskId(String taskId) {
|
default BpmTaskExtDO selectByTaskId(String taskId) {
|
||||||
return selectOne(BpmTaskExtDO::getTaskId, taskId);
|
return selectOne(BpmTaskExtDO::getTaskId, taskId);
|
||||||
}
|
}
|
||||||
|
@ -1,28 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.bpm.framework.bpm.config;
|
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.security.config.AuthorizeRequestsCustomizer;
|
|
||||||
import org.springframework.context.annotation.Bean;
|
|
||||||
import org.springframework.context.annotation.Configuration;
|
|
||||||
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
|
||||||
import org.springframework.security.config.annotation.web.configurers.ExpressionUrlAuthorizationConfigurer;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @author kemengkai
|
|
||||||
* @create 2022-05-07 08:15
|
|
||||||
*/
|
|
||||||
@Configuration("bpmSecurityConfiguration")
|
|
||||||
public class BpmSecurityConfiguration {
|
|
||||||
|
|
||||||
@Bean("bpmAuthorizeRequestsCustomizer")
|
|
||||||
public AuthorizeRequestsCustomizer authorizeRequestsCustomizer() {
|
|
||||||
return new AuthorizeRequestsCustomizer() {
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void customize(ExpressionUrlAuthorizationConfigurer<HttpSecurity>.ExpressionInterceptUrlRegistry registry) {
|
|
||||||
// 任务回退接口
|
|
||||||
registry.antMatchers(buildAdminApi("/bpm/task/back")).permitAll();
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
@ -12,6 +12,7 @@ import javax.validation.Valid;
|
|||||||
* @author yunlongn
|
* @author yunlongn
|
||||||
*/
|
*/
|
||||||
public interface BpmModelService {
|
public interface BpmModelService {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获得流程模型分页
|
* 获得流程模型分页
|
||||||
*
|
*
|
||||||
|
@ -288,5 +288,4 @@ public class BpmModelServiceImpl implements BpmModelService {
|
|||||||
processDefinitionService.updateProcessDefinitionState(oldDefinition.getId(), SuspensionState.SUSPENDED.getStateCode());
|
processDefinitionService.updateProcessDefinitionState(oldDefinition.getId(), SuspensionState.SUSPENDED.getStateCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user