|  |  | 
 |  |  | import com.core.controller.AbstractBaseController; | 
 |  |  | import com.core.exception.CoolException; | 
 |  |  | import com.zy.crm.system.entity.Dept; | 
 |  |  | import com.zy.crm.system.entity.Role; | 
 |  |  | import com.zy.crm.system.service.DeptService; | 
 |  |  | import com.zy.crm.system.service.RoleService; | 
 |  |  | import io.swagger.annotations.ApiModelProperty; | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import com.zy.crm.manager.entity.Node; | 
 |  |  | 
 |  |  |     private DeptService deptService; | 
 |  |  |     @Autowired | 
 |  |  |     private UserLoginService userLoginService; | 
 |  |  |     @Autowired | 
 |  |  |     private RoleService roleService; | 
 |  |  |  | 
 |  |  |     protected Long getHostId(){ | 
 |  |  |         if (getUserId() == 9527) { | 
 |  |  | 
 |  |  |  | 
 |  |  |     protected Long getDeptId() { | 
 |  |  |         return getUser().getDeptId(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     protected Role getRole(){ | 
 |  |  |         Role role = roleService.selectById(getUser().getRoleId()); | 
 |  |  |         if (null == role) { | 
 |  |  |             throw new CoolException(BaseRes.DENIED); | 
 |  |  |         } | 
 |  |  |         return role; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     protected String getComment(Class<?> cls, String fieldName){ | 
 |  |  | 
 |  |  |             } | 
 |  |  |             String column = null; | 
 |  |  |             if (field.isAnnotationPresent(TableField.class)) { | 
 |  |  |                 if (!field.getAnnotation(TableField.class).exist()) { | 
 |  |  |                     continue; | 
 |  |  |                 } | 
 |  |  |                 column = field.getAnnotation(TableField.class).value(); | 
 |  |  |             } | 
 |  |  |             if (Cools.isEmpty(column)) { |