刘小明
2024-08-26 591e3b8a10ed15023f3ad9e5a72a887ef89b0bb2
pms-parent/pms-global/src/main/resources/mapper/BaUserRoleMapper.xml
@@ -20,18 +20,18 @@
    <!--@mbg.generated-->
    insert into ba_user_role
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="userId != null">
      <if test="userId != null and userId !=''">
        user_id,
      </if>
      <if test="roleId != null">
      <if test="roleId != null and roleId !=''">
        role_id,
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="userId != null">
      <if test="userId != null and userId !=''">
        #{userId},
      </if>
      <if test="roleId != null">
      <if test="roleId != null and roleId !=''">
        #{roleId},
      </if>
    </trim>