fix
Helius
2021-11-08 9c791d431038fe79a111805762ee2f42c96b51c5
zq-erp/src/main/resources/mybatis/mapper/common/SysRoleDao.xml
@@ -12,7 +12,7 @@
      <result property="companyId" column="company_id" />
      <result property="plates" column="plates" />
      <result property="shopAble" column="shop_able" />
      <result property="coustomer" column="coustomer" />
      <result property="customer" column="customer" />
   </resultMap>
@@ -32,7 +32,7 @@
      company_id,
      plates,
      is_default,
      coustomer,
      customer,
      shop_able
      )
      VALUES (
@@ -46,7 +46,7 @@
      #{companyId},
      #{plates},
      #{isDefault},
      #{coustomer},
      #{customer},
      #{shopAble}
      )
   </insert>
@@ -66,7 +66,7 @@
      company_id,
      plates,
      is_default,
      coustomer,
      customer,
      shop_able
      )
      VALUES
@@ -82,7 +82,7 @@
         #{item.companyId},
         #{item.plates},
         #{item.isDefault},
         #{item.coustomer},
         #{item.customer},
         #{item.shopAble}
         )
      </foreach>
@@ -115,8 +115,8 @@
         <if test="_parameter.containsKey('shopAble')">
            shop_able = #{shopAble},
         </if>
         <if test="_parameter.containsKey('coustomer')">
            coustomer = #{coustomer},
         <if test="_parameter.containsKey('customer')">
            customer = #{customer},
         </if>
      </set>
      WHERE role_id=#{roleId}
@@ -150,8 +150,8 @@
         <if test="(shopAble!=null and shopAble!='') or (shopAble!='' and shopAble==0)">
            shop_able = #{shopAble},
         </if>
         <if test="(coustomer!=null and coustomer!='') or (coustomer!='' and coustomer==0)">
            coustomer = #{coustomer},
         <if test="(customer!=null and customer!='') or (customer!='' and customer==0)">
            customer = #{customer},
         </if>
      </set>
      WHERE role_id=#{roleId}
@@ -217,7 +217,7 @@
      company_id,
      plates,
      is_default,
      coustomer,
      customer,
      shop_able
      from sys_role
      <where>
@@ -303,7 +303,7 @@
      company_id,
      plates,
      is_default,
      coustomer,
      customer,
      shop_able
      from sys_role
      where role_id=#{roleId}
@@ -336,7 +336,7 @@
      company_id,
      plates,
      is_default,
      coustomer,
      customer,
      shop_able
      from sys_role
      <where>