|
@@ -444,9 +444,15 @@ public class OfficeController extends BaseController {
|
|
|
@ResponseBody
|
|
|
@RequestMapping(value = "treeData")
|
|
|
public List<Map<String, Object>> treeData(@RequestParam(required = false) String extId, @RequestParam(required = false) String type,
|
|
|
- @RequestParam(required = false) Long grade, @RequestParam(required = false) Boolean isAll, HttpServletResponse response) {
|
|
|
+ @RequestParam(required = false) Long grade, @RequestParam(required = false) Boolean isAll,@RequestParam(required = false) Integer flagOffice, HttpServletResponse response) {
|
|
|
List<Map<String, Object>> mapList = Lists.newArrayList();
|
|
|
- List<Office> list = officeService.findList(isAll);
|
|
|
+ List<Office> list = Lists.newArrayList();
|
|
|
+ //判断参数(新增公告时使用,1为办公室新增,能够查询所有部门信息)
|
|
|
+ if(null == flagOffice || 1 != flagOffice){
|
|
|
+ list = officeService.findList(isAll);
|
|
|
+ }else{
|
|
|
+ list = officeService.findListByOaNotify();
|
|
|
+ }
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
|
Office e = list.get(i);
|
|
|
if ((StringUtils.isBlank(extId) || (extId != null && !extId.equals(e.getId()) && e.getParentIds().indexOf("," + extId + ",") == -1))
|