|  |  | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     insert into ba_role_privilege | 
 |  |  |     <trim prefix="(" suffix=")" suffixOverrides=","> | 
 |  |  |       <if test="roleId != null and roleId !=''"> | 
 |  |  |       <if test="roleId != null"> | 
 |  |  |         role_id, | 
 |  |  |       </if> | 
 |  |  |       <if test="privilegeId!= null and privilegeId !=''"> | 
 |  |  |       <if test="privilegeId!= null"> | 
 |  |  |         privilege_id, | 
 |  |  |       </if> | 
 |  |  |     </trim> | 
 |  |  |     <trim prefix="values (" suffix=")" suffixOverrides=","> | 
 |  |  |       <if test="roleId != null and roleId !=''"> | 
 |  |  |       <if test="roleId != null"> | 
 |  |  |         #{roleId}, | 
 |  |  |       </if> | 
 |  |  |       <if test="privilegeId!= null and privilegeId !=''"> | 
 |  |  |       <if test="privilegeId!= null"> | 
 |  |  |         #{privilegeId}, | 
 |  |  |       </if> | 
 |  |  |     </trim> |