pg <@p p=" and ((user_id IN(%s)" f="?">user_id <@p p=" and %s)">state <@p p=" or %s)">providerid <@p p="and (title like ?">key <@p p="or category like ?">key <@p p="or providerdepartname like ?)">key group by file.id ]]> state <@p p="and %s">pg <@p p="and (title like ?">key <@p p="or category like ?)">key ]]> id ) ]]> id ) ]]> id ) ]]> limitation_id as limitation_id,<@p p=" ? ">file_id as file_id,coursename,courseid,username,usercode from v_class_user where <@p>courseid ]]> limitation_id as limitation_id,<@p p=" ? ">file_id as file_id,classname,classid,username,usercode from (SELECT `et_train_pd_cc`.`id` AS `classid`, `et_train_pd_cc`.`bjmc` AS `classname`, `et_train_pd_cc`.`kcmcid` AS `courseid`, `et_train_pd_cc`.`kcmc` AS `coursename`, `et_train_pd_cc_user`.`usercode` AS `usercode`, `et_train_pd_cc_user`.`username` AS `username`, `et_train_pd_cc_user`.`groupid` AS `userdeptid`, `et_train_pd_cc_user`.`groupname` AS `userdeptname` FROM ( `et_train_pd_cc` LEFT JOIN `et_train_pd_cc_user` ON ( ( `et_train_pd_cc`.`id` = `et_train_pd_cc_user`.`ccid` ) ) ) where 1=1 <@p p="AND `et_train_pd_cc`.`id` = ?">classid )a ]]> pg <@p p=" and %s ">providerid or id in (select a.file_id from et_resource_limitation a left join et_resource_limitation_class b on a.id = b.limitation_id where 1=1 <@p p="AND b.class_person_id = ?">class_person_id) or id in (select a.file_id from et_resource_limitation a left join et_resource_limitation_course b on a.id = b.limitation_id where 1=1 <@p p="AND b.course_person_id = ?">course_person_id) <@p p="and (title like ?">key <@p p="or category like ?">key <@p p="or providerdepartname like ?)">key ]]> pg <@p p=" and (%s">class_person_id <@p p=" or %s">course_person_id <@p p=" or %s)">providerid <@p p="and (title like ?">key <@p p="or category like ?">key <@p p="or providerdepartname like ?)">key group by file.id ]]> state <@p p=" and %s ">pg <@p p=" and %s ">providerdepartid <@p p="and providerdepartid in(%s)" f="?">groupidarray <@p p="and (title like ?">key <@p p="or category like ?">key <@p p="or providerdepartname like ?)">key ]]> file_id ]]> id ]]> pg <@p p="and (title like ?">key <@p p="or category like ?">key <@p p="or providerdepartname like ?)">key ]]> id ]]> user_id ]]> ccid ]]>