Commit d4a4a94c authored by Quxl's avatar Quxl

x

parent f571f191
...@@ -128,8 +128,13 @@ public class CartRedisServiceImpl implements CartRedisService { ...@@ -128,8 +128,13 @@ public class CartRedisServiceImpl implements CartRedisService {
Set<String> chooseGroups = new HashSet<String>(); Set<String> chooseGroups = new HashSet<String>();
Set<String> chooseGifts = new HashSet<String>(); Set<String> chooseGifts = new HashSet<String>();
Set<String> promosNo = new HashSet<String>(); Set<String> promosNo = new HashSet<String>();
boolean isOrnament = false;
if (datas != null && datas.size() > 0) { if (datas != null && datas.size() > 0) {
for (Map<String, Object> data : datas) { for (Map<String, Object> data : datas) {
String sGoodsTag = (String)data.get("sGoodsTag");
if(sGoodsTag != null && sGoodsTag.contains("门店装饰")) {
isOrnament = true;
}
Integer nTag_CG = (Integer) data.get("nTag_CG"); Integer nTag_CG = (Integer) data.get("nTag_CG");
if (nTag_CG != null && (nTag_CG & 16) == 16) { if (nTag_CG != null && (nTag_CG & 16) == 16) {
data.put("published", 1); data.put("published", 1);
...@@ -187,6 +192,7 @@ public class CartRedisServiceImpl implements CartRedisService { ...@@ -187,6 +192,7 @@ public class CartRedisServiceImpl implements CartRedisService {
List<Map<String, Object>> promos = this.processPromo(shopNo, promosNo, chooseGifts, chooseGroups); List<Map<String, Object>> promos = this.processPromo(shopNo, promosNo, chooseGifts, chooseGroups);
this.processPromoGoods(promos, shopNo); this.processPromoGoods(promos, shopNo);
rjx.set("promoData", Util.listToMM(promos, "promoNo")); rjx.set("promoData", Util.listToMM(promos, "promoNo"));
rjx.set("isOrnament", isOrnament);
this.processPayAmount(rjx); this.processPayAmount(rjx);
this.cacheData(orgNo, shopNo, terminal, rjx); this.cacheData(orgNo, shopNo, terminal, rjx);
return rjx; return rjx;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment