fix(permission): 修复审批流Service编译错误
This commit is contained in:
@@ -3,9 +3,8 @@ package com.mosquito.project.permission;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* 审批流服务
|
||||
@@ -31,9 +30,8 @@ public class ApprovalFlowService {
|
||||
@Transactional
|
||||
public Long submitApproval(Long flowId, String bizType, String bizId, String title,
|
||||
Long applicantId, String applicantName, String applyReason) {
|
||||
// 创建审批记录
|
||||
Long recordId = recordId++; // TODO: 实际创建记录
|
||||
return recordId;
|
||||
// TODO: 实现审批申请提交逻辑
|
||||
return System.currentTimeMillis();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -42,7 +40,7 @@ public class ApprovalFlowService {
|
||||
@Transactional
|
||||
public boolean handleApproval(Long recordId, String action, Long operatorId,
|
||||
String operatorName, String comment) {
|
||||
// 处理审批逻辑
|
||||
// TODO: 实现审批处理逻辑
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -50,34 +48,34 @@ public class ApprovalFlowService {
|
||||
* 获取待审批列表
|
||||
*/
|
||||
public List<Object> getPendingApprovals(Long userId) {
|
||||
return List.of();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取已审批列表
|
||||
*/
|
||||
public List<Object> getApprovedList(Long userId) {
|
||||
return List.of();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取我发起的审批
|
||||
*/
|
||||
public List<Object> getMyApplications(Long userId) {
|
||||
return List.of();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取审批记录详情
|
||||
*/
|
||||
public Optional<Object> getRecordById(Long recordId) {
|
||||
return Optional.empty();
|
||||
public Object getRecordById(Long recordId) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取审批历史
|
||||
*/
|
||||
public List<Object> getApprovalHistory(Long recordId) {
|
||||
return List.of();
|
||||
return Collections.emptyList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user