记得上下班打卡 | git大法好,push需谨慎

Commit e1d67b77 authored by 胡佳晨's avatar 胡佳晨

修改券列表2

parent 72238856
...@@ -252,15 +252,29 @@ public class CouponBaseUtil { ...@@ -252,15 +252,29 @@ public class CouponBaseUtil {
BigDecimal valOver) { BigDecimal valOver) {
boolean isTarget = false; boolean isTarget = false;
ArrayList<String> targetIdList = new ArrayList(Arrays.asList(targetId.split(","))); ArrayList<String> targetIdList = new ArrayList(Arrays.asList(targetId.split(",")));
if (targetIdList.contains(busiId)) {//判断id 对应 for (String item : targetIdList) {
if (couType.equals(2)) { if (item.contains("ZZ")) {
if (priceTotal.compareTo(valOver) >= 0) { item = item.split("ZZ")[0];
}
if (item.equals(busiId)) {//判断id 对应
if (couType.equals(2)) {
if (priceTotal.compareTo(valOver) >= 0) {
isTarget = true;
}
} else {
isTarget = true; isTarget = true;
} }
} else {
isTarget = true;
} }
} }
// if (targetIdList.contains(busiId)) {//判断id 对应
// if (couType.equals(2)) {
// if (priceTotal.compareTo(valOver) >= 0) {
// isTarget = true;
// }
// } else {
// isTarget = true;
// }
// }
return isTarget; return isTarget;
} }
......
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