```在BpmOAGoOutApi和BpmOAGoOutApiImpl中添加@PermitAll注解,以允许所有用户获取外出用户编号信息。
```
This commit is contained in:
parent
38bfdf7328
commit
e8d15070c2
@ -7,6 +7,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||||||
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.GetMapping;
|
||||||
|
|
||||||
|
import javax.annotation.security.PermitAll;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@ -18,5 +19,6 @@ public interface BpmOAGoOutApi {
|
|||||||
|
|
||||||
@GetMapping(PREFIX + "/getGoOutByTime")
|
@GetMapping(PREFIX + "/getGoOutByTime")
|
||||||
@Operation(summary = "获取当日以及昨日外出的用户编号")
|
@Operation(summary = "获取当日以及昨日外出的用户编号")
|
||||||
|
@PermitAll
|
||||||
CommonResult<Map<String, List<Long>>> getLeaveListByTime();
|
CommonResult<Map<String, List<Long>>> getLeaveListByTime();
|
||||||
}
|
}
|
||||||
|
@ -7,6 +7,7 @@ import org.springframework.validation.annotation.Validated;
|
|||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
|
import javax.annotation.security.PermitAll;
|
||||||
import java.time.LocalDate;
|
import java.time.LocalDate;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
@ -30,6 +31,7 @@ public class BpmOAGoOutApiImpl implements BpmOAGoOutApi{
|
|||||||
private BpmOAGoOutService goOutService;
|
private BpmOAGoOutService goOutService;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@PermitAll
|
||||||
public CommonResult<Map<String, List<Long>>> getLeaveListByTime() {
|
public CommonResult<Map<String, List<Long>>> getLeaveListByTime() {
|
||||||
|
|
||||||
// 定义格式化模式
|
// 定义格式化模式
|
||||||
|
Loading…
Reference in New Issue
Block a user