|
|
|
@@ -67,6 +67,13 @@ public class WxCouponController extends BaseController |
|
|
|
@ApiOperation("根据id更新接口") |
|
|
|
@PostMapping("update") |
|
|
|
public ResultData update(@RequestBody WxCoupon wxCoupon) { |
|
|
|
if(wxCoupon.getId()==null) { |
|
|
|
return new ResultData(ResultData.ERROR,"缺少id"); |
|
|
|
} |
|
|
|
if(StringUtils.isNotBlank(wxCoupon.getBusiness())) { |
|
|
|
String[] arys = wxCoupon.getBusiness().split(","); |
|
|
|
wxCoupon.setBusiness(JSON.toJSONString(arys)); |
|
|
|
} |
|
|
|
wxCouponService.saveOrUpdate(wxCoupon); |
|
|
|
return new ResultData(); |
|
|
|
} |
|
|
|
|