queryWrapper.inSql(CtGalleryCataShare::getId,"select share_id from ct_gallery_share_user where del_flag = 0 and ( (user_type = 'user' and user_id = "+SecurityUtils.getUserId()+") or (user_type = 'dept' and user_id = "+SecurityUtils.getDeptId()+"))");
// 查询他人共享给本用户的数据
queryWrapper.inSql(CtGalleryCataShare::getId,"select share_id from ct_gallery_share_user where del_flag = 0 and ( (user_type = 'user' and user_id = "+SecurityUtils.getUserId()+") or (user_type = 'dept' and user_id = "+SecurityUtils.getDeptId()+") and ifnull(end_date,date(sysdate())) >= date(sysdate()) )");