|
@@ -50,8 +50,9 @@ public class TaMandatoryLeaveController extends BaseController {
|
50
|
50
|
@GetMapping("/taMandatoryLeave/{id}")
|
51
|
51
|
public SaResult queryById(@ApiParam("对象ID") @PathVariable String id) throws Exception {
|
52
|
52
|
TaMandatoryLeave taMandatoryLeave = taMandatoryLeaveService.getById(id);
|
53
|
|
- Boolean b = checkAuth() == null || checkAuth() == taMandatoryLeave.getCreateUser();
|
54
|
|
-
|
|
53
|
+ String isAdmin = checkAuth();
|
|
54
|
+ Boolean b = false;
|
|
55
|
+ b = (isAdmin == null) ? true : (isAdmin.equals(taMandatoryLeave.getCreateUser())) ? true : false;
|
55
|
56
|
if (b) {
|
56
|
57
|
return SaResult.data(taMandatoryLeaveService.getById(id));
|
57
|
58
|
}
|