|
@@ -7,7 +7,6 @@ import com.ym.mec.cms.controller.queryinfo.NewsInformationQueryInfo;
|
|
import com.ym.mec.cms.dal.dao.SysNewsInformationDao;
|
|
import com.ym.mec.cms.dal.dao.SysNewsInformationDao;
|
|
import com.ym.mec.cms.dal.entity.SysConfig;
|
|
import com.ym.mec.cms.dal.entity.SysConfig;
|
|
import com.ym.mec.cms.dal.entity.SysNewsInformation;
|
|
import com.ym.mec.cms.dal.entity.SysNewsInformation;
|
|
-import com.ym.mec.cms.service.OrganizationService;
|
|
|
|
import com.ym.mec.cms.service.SysConfigService;
|
|
import com.ym.mec.cms.service.SysConfigService;
|
|
import com.ym.mec.cms.service.SysNewsInformationService;
|
|
import com.ym.mec.cms.service.SysNewsInformationService;
|
|
import com.ym.mec.cms.service.SysNewsTypeService;
|
|
import com.ym.mec.cms.service.SysNewsTypeService;
|
|
@@ -50,8 +49,6 @@ public class NewsController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private WebFeignService webFeignService;
|
|
private WebFeignService webFeignService;
|
|
@Autowired
|
|
@Autowired
|
|
- private OrganizationService organizationService;
|
|
|
|
- @Autowired
|
|
|
|
private SysConfigService sysConfigService;
|
|
private SysConfigService sysConfigService;
|
|
|
|
|
|
@ApiOperation("查询底部按钮信息")
|
|
@ApiOperation("查询底部按钮信息")
|
|
@@ -213,7 +210,9 @@ public class NewsController extends BaseController {
|
|
String organIds = "";
|
|
String organIds = "";
|
|
if(sysUser != null && sysUser.getId() != null){
|
|
if(sysUser != null && sysUser.getId() != null){
|
|
userId = sysUser.getId();
|
|
userId = sysUser.getId();
|
|
- organIds = organizationService.getEmployeeOrgan(sysUser.getId(), null, sysUser.getIsSuperAdmin() && sysUser.getTenantId() == -1);
|
|
|
|
|
|
+ if(id.equals(23)){
|
|
|
|
+ organIds = sysNewsInformationDao.queryTeacherOrgan(userId);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return succeed(sysNewsTypeService.listWithTree(id,memo,userId,organIds));
|
|
return succeed(sysNewsTypeService.listWithTree(id,memo,userId,organIds));
|
|
}
|
|
}
|