|
@@ -49,7 +49,7 @@ public class CmPromotionService extends CrudService<CmPromotionDao, CmPromotion>
|
|
|
List<Shop> promotionShops = new ArrayList<>();
|
|
|
if (CollectionUtils.isNotEmpty(promotionList)) {
|
|
|
for (CmPromotion promotion : promotionList) {
|
|
|
- if("1".equals(promotion.getMode())){
|
|
|
+ if ("1".equals(promotion.getMode())) {
|
|
|
promotion.setSkus(productDao.findSkuByPromotion(promotion.getId()));
|
|
|
}
|
|
|
if (StringUtils.isNotBlank(cmPromotion.getProductName())) {
|
|
@@ -192,6 +192,12 @@ public class CmPromotionService extends CrudService<CmPromotionDao, CmPromotion>
|
|
|
* 查询促销可用商品
|
|
|
*/
|
|
|
public Page findProductPage(Page<Product> productPage, Product product) {
|
|
|
+ if (!"1".equals(product.getPromotionType())) {
|
|
|
+ // 非单品锁死综合供应商,店铺满赠选择店铺shopid
|
|
|
+ if (!"3".equals(product.getPromotionType())) {
|
|
|
+ product.setShopID(1161);
|
|
|
+ }
|
|
|
+ }
|
|
|
product.setPage(productPage);
|
|
|
List<Integer> list = new ArrayList<>();
|
|
|
//已添加的商品id不能被查询到
|