ludc
2023-07-20 7bacb4be65407d9f8a6bdcd44b4192aa32de91a1
Source/UBCS/ubcs-service/ubcs-desk/src/main/java/com/vci/ubcs/desk/controller/LeaveController.java
@@ -24,6 +24,7 @@
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;
@@ -49,7 +50,9 @@
   @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);
   }