fix
wzy
2021-12-27 75601245b7fe12b793b9b128845d4d64ba55eb7c
zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml
@@ -45,6 +45,7 @@
        <result property="ableScorePay" column="able_score_pay"/>
        <result property="ableSales" column="able_sales"/>
        <result property="scoreCategoryId" column="score_category_id"/>
        <result property="isUnrealProduct" column="is_unreal_product"/>
        <association property="shopCoupon" select="com.matrix.system.shopXcx.dao.ShopCouponDao.selectById"
                     column="{id=couponId}"></association>
@@ -123,6 +124,7 @@
         company_id,
        able_score_pay,
        able_sales,
        is_unreal_product,
        score_category_id
   </sql>
@@ -162,6 +164,7 @@
         #{item.companyId},
         #{item.ableScorePay},
         #{item.ableSales},
            #{item.isUnrealProduct},
         #{item.scoreCategoryId}
   </sql>
@@ -554,6 +557,9 @@
            <if test="record.scoreCategoryId != null and record.scoreCategoryId ">
               score_category_id = #{record.scoreCategoryId},
            </if>
            <if test="record.isUnrealProduct != null and record.isUnrealProduct">
                is_unreal_product = #{record.isUnrealProduct},
            </if>
        </set>
        WHERE id=#{record.id}
@@ -909,6 +915,7 @@
            a.able_score_pay,
            a.able_sales,
            a.score_category_id,
          a.is_unreal_product,
         (SELECT SUM(s.stock) from shop_sku  s where s.p_id = a.id) as stockNum,
         (SELECT ROUND(SUM(s.stock),2) from shop_sku  s where s.p_id = a.id) as stockNum,
         shop_ids