|
|
@@ -16,6 +16,7 @@ import com.ydtech.modules.admin.model.dto.*;
|
|
|
import com.ydtech.modules.admin.model.vo.*;
|
|
|
import com.ydtech.modules.base.model.dto.PageDto;
|
|
|
import com.ydtech.modules.base.model.vo.PageVo;
|
|
|
+import org.springframework.util.ObjectUtils;
|
|
|
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
@@ -390,6 +391,9 @@ public interface SysUserService extends BaseIService<SysUser> {
|
|
|
*/
|
|
|
default SysUser judgmentIncumbency(String id) {
|
|
|
SysUser user = getById(id);
|
|
|
+ if(ObjectUtils.isEmpty(user)){
|
|
|
+ throw new SystemException("用户不存在!");
|
|
|
+ }
|
|
|
if (!UserWorkStatus.UWS_1.getCode().equals(user.getStatus())) {
|
|
|
throw new SystemException("审核未通过、请联系管理员");
|
|
|
}
|