Commit cb3069d8 by 吕明尚

修改优惠卷不可用提示

parent 6466f3fa
......@@ -228,9 +228,12 @@ public class SConsumerCouponServiceImpl extends ServiceImpl<SConsumerCouponMappe
StringBuffer buf = new StringBuffer("优惠券");
for(int index=0;index<weeks.size();index++){
buf.append(WeekEnum.getValueByCode(weeks.get(index)));
if(index<weeks.size()-1){
buf.append(",");
if (index < weeks.size()) {
buf.append("可用");
//最后一个不加逗号
if (index < weeks.size() - 1) {
buf.append(",");
}
}
}
item.setReason(buf.toString());
......
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