| | |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | @GetMapping("detail") |
| | | public R<ProcessLeave> detail(Long businessId) { |
| | | ProcessLeave detail = leaveService.getById(businessId); |
| | | if(Func.isEmpty(detail)){ |
| | | detail.getFlow().setAssigneeName(UserCache.getUser(detail.getCreateUser()).getName()); |
| | | } |
| | | return R.data(detail); |
| | | } |
| | | |