| | |
| | | import com.core.common.Cools; |
| | | import com.core.controller.AbstractBaseController; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.crm.system.entity.Dept; |
| | | import com.zy.crm.system.service.DeptService; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import com.zy.crm.manager.entity.Node; |
| | |
| | | private TagService tagService; |
| | | @Autowired |
| | | private NodeService nodeService; |
| | | @Autowired |
| | | private DeptService deptService; |
| | | @Autowired |
| | | private UserLoginService userLoginService; |
| | | |
| | |
| | | return node; |
| | | } |
| | | |
| | | protected Dept getOriginDept(){ |
| | | Dept dept = deptService.getTop(); |
| | | if (dept == null) { |
| | | throw new CoolException("部门数据错误"); |
| | | } |
| | | return dept; |
| | | } |
| | | |
| | | protected <T> void hostEq(EntityWrapper<T> wrapper){ |
| | | Long hostId = getHostId(); |
| | | if (hostId != null) { |