|  |  | 
 |  |  |         } | 
 |  |  |         if (!signUserId && !signDeptId){ | 
 |  |  |             if (getRole().getId()==1){ | 
 |  |  |                 wrapper.or().eq("host_id",1); | 
 |  |  |                 wrapper.or().eq("host_id",getHostId()); | 
 |  |  |             }else if (getRole().getId()==2){ | 
 |  |  |                 wrapper.eq("dept_id",getDeptId()); | 
 |  |  |             }else { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if (signHostId){ | 
 |  |  |             wrapper.or().eq("host_id",1); | 
 |  |  |             wrapper.or().eq("host_id",getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |         } | 
 |  |  |         if (!signUserId && !signDeptId){ | 
 |  |  |             if (getRole().getId()==1){ | 
 |  |  |                 wrapper.or().eq("host_id",1); | 
 |  |  |                 wrapper.or().eq("host_id",getHostId()); | 
 |  |  |             }else if (getRole().getId()==2){ | 
 |  |  |                 wrapper.eq("dept_id",getDeptId()); | 
 |  |  |             }else { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if (signHostId){ | 
 |  |  |             wrapper.or().eq("host_id",1); | 
 |  |  |             wrapper.or().eq("host_id",getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |         } | 
 |  |  |         if (!signUserId && !signDeptId){ | 
 |  |  |             if (getRole().getId()==1){ | 
 |  |  |                 wrapper.or().eq("host_id",1); | 
 |  |  |                 wrapper.or().eq("host_id",getHostId()); | 
 |  |  |             }else if (getRole().getId()==2){ | 
 |  |  |                 wrapper.eq("dept_id",getDeptId()); | 
 |  |  |             }else { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if (signHostId){ | 
 |  |  |             wrapper.or().eq("host_id",1); | 
 |  |  |             wrapper.or().eq("host_id",getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |         wrapper.like("name", condition); | 
 |  |  |         Long id = getRole().getId(); | 
 |  |  |         if (id.equals(1L)) { | 
 |  |  |             wrapper.eq("host_id", 1); | 
 |  |  |             wrapper.eq("host_id", getHostId()); | 
 |  |  |         } else if (id.equals(2L)) { | 
 |  |  |             wrapper.eq("dept_id", getDeptId()); | 
 |  |  |         } else { | 
 
 |  |  | 
 |  |  |         wrapper.like("name", condition); | 
 |  |  |         Long id = getRole().getId(); | 
 |  |  |         if (id.equals(1L)) { | 
 |  |  |             wrapper.eq("host_id", 1); | 
 |  |  |             wrapper.eq("host_id", getHostId()); | 
 |  |  |         } else if (id.equals(2L)) { | 
 |  |  |             wrapper.eq("dept_id", getDeptId()); | 
 |  |  |         } else { | 
 
 |  |  | 
 |  |  |         } | 
 |  |  |         if (!signUserId && !signDeptId) { | 
 |  |  |             if (getRole().getId() == 1) { | 
 |  |  |                 wrapper.or().eq("host_id", 1); | 
 |  |  |                 wrapper.or().eq("host_id", getHostId()); | 
 |  |  |             } else if (getRole().getId() == 2) { | 
 |  |  |                 wrapper.eq("dept_id", getDeptId()); | 
 |  |  |             } else { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if (signHostId) { | 
 |  |  |             wrapper.or().eq("host_id", 1); | 
 |  |  |             wrapper.or().eq("host_id", getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |             wrapper.eq("user_id", getUserId()); | 
 |  |  |         } | 
 |  |  |         if (signHostId){ | 
 |  |  |             wrapper.or().eq("host_id",1); | 
 |  |  |             wrapper.or().eq("host_id",getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |             wrapper.eq("user_id", getUserId()); | 
 |  |  |         } | 
 |  |  |         if (signHostId){ | 
 |  |  |             wrapper.or().eq("host_id",1); | 
 |  |  |             wrapper.or().eq("host_id",getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |         } | 
 |  |  |         if (!signUserId && !signDeptId) { | 
 |  |  |             if (getRole().getId() == 1) { | 
 |  |  |                 wrapper.or().eq("host_id", 1); | 
 |  |  |                 wrapper.or().eq("host_id", getHostId()); | 
 |  |  |             } else if (getRole().getId() == 2) { | 
 |  |  |                 wrapper.eq("dept_id", getDeptId()); | 
 |  |  |             } else { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if (signHostId) { | 
 |  |  |             wrapper.or().eq("host_id", 1); | 
 |  |  |             wrapper.or().eq("host_id", getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |             wrapper.eq("user_id", getUserId()); | 
 |  |  |         } | 
 |  |  |         if (signHostId){ | 
 |  |  |             wrapper.or().eq("host_id",1); | 
 |  |  |             wrapper.or().eq("host_id",getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 
 |  |  | 
 |  |  |         } | 
 |  |  |         if (!signUserId && !signDeptId){ | 
 |  |  |             if (getRole().getId()==1){ | 
 |  |  |                 wrapper.or().eq("host_id",1); | 
 |  |  |                 wrapper.or().eq("host_id",getHostId()); | 
 |  |  |             }else if (getRole().getId()==2){ | 
 |  |  |                 wrapper.eq("dept_id",getDeptId()); | 
 |  |  |             }else { | 
 |  |  | 
 |  |  |             } | 
 |  |  |         } | 
 |  |  |         if (signHostId){ | 
 |  |  |             wrapper.or().eq("host_id",1); | 
 |  |  |             wrapper.or().eq("host_id",getHostId()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |     @RequestMapping(value = "/reimburseOnline/from/add/auth") |