Commit 3c35f340 by zhangchen

现金券规则修改

parent b7fe6454
......@@ -243,6 +243,7 @@ public class VoucherRuleService extends
try {
JSONObject json = JSONObject.parseObject(voucherRule.getConditionJson());
Integer type = json.getInteger("type");
if(type!=null){
if(voucherRule.getMultiple()!=1 ){
if(type == 2){
json.put("value", validateToParse(vo.getProdutIds()));
......@@ -252,6 +253,8 @@ public class VoucherRuleService extends
voucherRule.setConditionJson(json.toJSONString());
}
}
}
voucherRule.setEndUseDate(vo.getEndUseDate());
voucherRule.setStartUseDate(vo.getStartUseDate());
voucherRule.setRemark(vo.getRemark());
......
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 sign in to comment