|
|
|
@@ -71,6 +71,14 @@ public class WxCouponController extends BaseController |
|
|
|
if(wxCoupon.getId()==null) { |
|
|
|
return new ResultData(ResultData.ERROR,"缺少id"); |
|
|
|
} |
|
|
|
if(wxCoupon.getStatus()!=null){ |
|
|
|
if(wxCoupon.getStatus()==3){ //已作废 |
|
|
|
WxCoupon temp = wxCouponService.getById(wxCoupon.getId()); |
|
|
|
if(temp.getStatus()==1){ |
|
|
|
return new ResultData(Result.ERROR,"生效的卡券,不能修改"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(wxCoupon.getBusiness())) { |
|
|
|
String[] arys = wxCoupon.getBusiness().split(","); |
|
|
|
wxCoupon.setBusiness(JSON.toJSONString(arys)); |
|
|
|
|