| | |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonInclude; |
| | | import com.ruoyi.common.annotation.Excel; |
| | | import com.ruoyi.common.annotation.Excel.ColumnType; |
| | | import com.ruoyi.common.annotation.Excel.Type; |
| | |
| | | { |
| | | return userId != null && userId.equals("1"); |
| | | } |
| | | public boolean isApp() |
| | | { |
| | | return isApp(this.userId); |
| | | } |
| | | public boolean isApp(String userId) |
| | | { |
| | | return userId != null && this.getRoles().stream().anyMatch(sysRole -> sysRole.getRoleKey().contains("appLeader")); |
| | | } |
| | | |
| | | public Long getDeptId() |
| | | { |