t.staff_id , t.staff_code, t.staff_name,t.staff_phone, t.org_id, t.role_ids, t.wx_user_id, t.remarks, t.flg_valid,t.flg_can_login,t.hr_status, t.cp_id, t.op_create_time, t.op_create_user_id, t.op_update_time, t.op_update_user_id AND t.staff_id = #{staffId} AND position (#{staffCode} in t.staff_code ) >0 AND position (#{staffName} in t.staff_name ) >0 AND position (#{staffPhone} in t.staff_phone ) >0 AND t.org_id = #{orgId} AND t.remarks = #{remarks} AND t.flg_valid = #{flgValid} AND t.cp_id = #{cpId} AND t.hr_status = #{hrStatus} AND t.role_ids && #{roleIds, typeHandler=UuidListTypeHandler} AND t.org_id = any(#{orgIds, typeHandler=UuidListTypeHandler}) AND ( t.staff_name LIKE concat('%', #{searchText}, '%') or t.staff_phone LIKE concat('%', #{searchText}, '%')) insert into dkic_b.t_mst_staff ( staff_code, staff_name, staff_phone, org_id, role_ids, wx_user_id, remarks, cp_id, op_app_code, flg_can_login, ) values ( #{item.staffCode}, #{item.staffName}, #{item.staffPhone}, #{item.orgId}::uuid, #{item.roleIds}, #{item.wxUserId}::uuid, #{item.remarks}, #{item.cpId}, #{item.opAppCode}, #{item.flgCanLogin}, )