| | |
| | | <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> |
| | |
| | | company_id, |
| | | able_score_pay, |
| | | able_sales, |
| | | is_unreal_product, |
| | | score_category_id |
| | | |
| | | </sql> |
| | |
| | | #{item.shopIds}, |
| | | #{item.companyId}, |
| | | #{item.ableScorePay}, |
| | | #{item.ableSales}, |
| | | #{item.ableSales}, |
| | | #{item.isUnrealProduct}, |
| | | #{item.scoreCategoryId} |
| | | |
| | | </sql> |
| | |
| | | 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> |
| | |
| | | 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 |