|  |  | 
 |  |  |             AND u.user_id = #{userId} | 
 |  |  |         </if> | 
 |  |  |         <if test="userName != null and userName != ''"> | 
 |  |  |             AND u.user_name like concat('%', #{userName}, '%') | 
 |  |  |             AND u.user_name = #{userName} | 
 |  |  |         </if> | 
 |  |  |           <if test="orgid != null and orgid != ''"> | 
 |  |  |             AND u.orgid = #{orgid} | 
 |  |  |         </if> | 
 |  |  |         <if test="nickName != null and nickName != ''"> | 
 |  |  |             AND u.nick_name like concat('%', #{nickName}, '%') | 
 |  |  | 
 |  |  |     <insert id="batchUser" useGeneratedKeys="true" keyProperty="userId"> | 
 |  |  |         insert into sys_user( | 
 |  |  |         user_id, dept_id, user_name, nick_name, email, avatar, phonenumber, sex, password, status, create_by, remark, | 
 |  |  |         user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid, orgid,user_code, | 
 |  |  |         user_type, dept_info, hosp_info, searchscope, id_card, title, job_phone, birthday, his_user_id, guid, | 
 |  |  |         orgid,user_code, | 
 |  |  |         create_time | 
 |  |  |         ) values | 
 |  |  |         <foreach collection="list" item="item" separator=","> |