|  |  | 
 |  |  |             return R.ok(cstmrService.getPage(new Page<>(curr, limit) | 
 |  |  |                     , getHostId() | 
 |  |  |                     , String.valueOf(param.get("dept_id")) | 
 |  |  |                     , param.get("condition")) | 
 |  |  |                     , condition) | 
 |  |  |             ); | 
 |  |  |         } else { | 
 |  |  |             return R.ok(cstmrService.selectPage(new Page<>(curr, limit), wrapper)); | 
 
 |  |  | 
 |  |  |  | 
 |  |  |     Cstmr selectCstmrByNewestUuid(@Param("hostId") Long hostId); | 
 |  |  |  | 
 |  |  |     List<Cstmr> listByPage(Page page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("condition") Object condition); | 
 |  |  |     List<Cstmr> listByPage(Page page, @Param("hostId")Long hostId, @Param("deptId") String deptId, @Param("condition") String condition); | 
 |  |  |  | 
 |  |  | } | 
 
 |  |  | 
 |  |  |  | 
 |  |  |     String getNextUuid(Long hostId); | 
 |  |  |  | 
 |  |  |     Page<Cstmr> getPage(Page page, Long hostId, String deptId, Object condition); | 
 |  |  |     Page<Cstmr> getPage(Page page, Long hostId, String deptId, String condition); | 
 |  |  |  | 
 |  |  | } | 
 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @Override | 
 |  |  |     public Page<Cstmr> getPage(Page page, Long hostId, String deptId, Object condition) { | 
 |  |  |     public Page<Cstmr> getPage(Page page, Long hostId, String deptId, String condition) { | 
 |  |  |         return page.setRecords(baseMapper.listByPage(page, hostId, deptId, condition)); | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  | var pageCurr; | 
 |  |  | var pageCount = 0; | 
 |  |  | var treeCond; | 
 |  |  | layui.config({ | 
 |  |  |     base: baseUrl + "/static/layui/lay/modules/" | 
 |  |  | }).extend({ | 
 |  |  | 
 |  |  |  | 
 |  |  |     // 树形图 | 
 |  |  |     var organizationTree; | 
 |  |  |     var selObj; | 
 |  |  |     window.loadTree = function(condition){ | 
 |  |  |         var loadIndex = layer.load(2); | 
 |  |  |         $.ajax({ | 
 |  |  | 
 |  |  |                         onlyIconControl: true, | 
 |  |  |                         data: res.data, | 
 |  |  |                         click: function (obj) { | 
 |  |  |                             selObj = obj; | 
 |  |  |                             treeCond = { | 
 |  |  |                                 key: obj.data.key, | 
 |  |  |                                 val: obj.data.id | 
 |  |  |                             } | 
 |  |  |                             // treeCond = {[obj.data.key]: obj.data.id}; | 
 |  |  |                             $('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click'); | 
 |  |  |                             $(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click'); | 
 |  |  |                             tableIns.reload({ | 
 |  |  | 
 |  |  |             itemHeight: '250px', | 
 |  |  |             filterable: true, | 
 |  |  |             onChange: function (values, data) { | 
 |  |  |                 // console.log(values); | 
 |  |  |                 // console.log(data); | 
 |  |  |                 // console.log(values);console.log(data); | 
 |  |  |             } | 
 |  |  |         }); | 
 |  |  |     } | 
 |  |  | 
 |  |  |         $.each($('#search-box [name]').serializeArray(), function() { | 
 |  |  |             searchData[this.name] = this.value; | 
 |  |  |         }); | 
 |  |  |         if (treeCond) { | 
 |  |  |             searchData[treeCond.key] = treeCond.val; | 
 |  |  |         } | 
 |  |  |         tableIns.reload({ | 
 |  |  |             where: searchData, | 
 |  |  |             page: {curr: pageCurr} |