From 1ceabefb451912daa5dda7768b7ef0b89a56c08a Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Fri, 25 Mar 2022 12:28:00 +0800 Subject: [PATCH] 1 --- zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml b/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml index 91c105d..b0061e1 100644 --- a/zq-erp/src/main/resources/mybatis/mapper/xcxShop/ShopProductDao.xml +++ b/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> @@ -161,7 +163,8 @@ #{item.shopIds}, #{item.companyId}, #{item.ableScorePay}, - #{item.ableSales}, + #{item.ableSales}, + #{item.isUnrealProduct}, #{item.scoreCategoryId} </sql> @@ -552,7 +555,10 @@ able_sales = #{record.ableSales}, </if> <if test="record.scoreCategoryId != null and record.scoreCategoryId "> - score_category_id = #{record.scoreCategoryId}, + score_category_id = #{record.scoreCategoryId}, + </if> + <if test="record.isUnrealProduct != null and record.isUnrealProduct"> + is_unreal_product = #{record.isUnrealProduct}, </if> </set> @@ -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 -- Gitblit v1.9.1