From 1da17d215d48e3e3aa9e8d7a3ef526904764f408 Mon Sep 17 00:00:00 2001 From: yujian <yujian> Date: 星期一, 08 四月 2019 14:06:12 +0800 Subject: [PATCH] 1.5.3部分需求 提交 --- fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml b/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml index 97eaf44..7446f6a 100644 --- a/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml +++ b/fanli/src/main/java/com/yeshi/fanli/mapping/lable/QualityFactoryMapper.xml @@ -964,6 +964,19 @@ </select> + <select id="listFlashSaleRandGoods" resultMap="GoodsResultMap"> + SELECT h.*, tb.* FROM yeshi_ec_quality_factory h + RIGHT JOIN yeshi_ec_quality_flash_sale s ON h.`sg_id` = s.`fs_qfgoods_id` + LEFT JOIN yeshi_ec_taobao_goods tb ON h.`sg_goods_id`= tb.`id` + + WHERE s.`fs_id` IS NOT NULL AND tb.`biz30day` <![CDATA[>=]]> 10000 + AND tb.`couponTotalCount` <![CDATA[>]]>10 + AND tb.couponLeftCount <![CDATA[<]]> tb.couponTotalCount + ORDER BY RAND() + LIMIT 3 + </select> + + <!-- 鏌ヨ绮鹃�夊晢鍝佷俊鎭� --> <select id="listQueryByKeyAndlabIDs" resultMap="BaseResultMap"> -- Gitblit v1.8.0