Commit babb57a3 by 吕明尚

Merge branch 'dev' into test

parents 4eee8fd2 6fa9214f
package share.web.controller.system;
import cn.hutool.core.util.ObjectUtil;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
......@@ -141,7 +142,7 @@ public class SConsumerCouponController extends BaseController
//赠送优惠卷
@PostMapping("/give")
public AjaxResult give(@RequestBody SConsumerCoupon sConsumerCoupon) {
return toAjax(sConsumerCouponService.give(sConsumerCoupon));
return toAjax(ObjectUtil.isNotEmpty(sConsumerCouponService.give(sConsumerCoupon)));
}
@GetMapping("/cancelCoupon")
......
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