|
@@ -80,8 +80,8 @@ public class LifeDiscountCouponController {
|
|
public R<Boolean> deleteDiscountCoupon(@PathVariable("id") Integer id) {
|
|
public R<Boolean> deleteDiscountCoupon(@PathVariable("id") Integer id) {
|
|
log.info("LifeDiscountCouponController.deleteDiscountCoupon?id={}", id);
|
|
log.info("LifeDiscountCouponController.deleteDiscountCoupon?id={}", id);
|
|
try {
|
|
try {
|
|
- boolean deleteed = lifeDiscountCouponService.deleteDiscountCoupon(id);
|
|
|
|
- if (!deleteed) {
|
|
|
|
|
|
+ boolean deleted = lifeDiscountCouponService.deleteDiscountCoupon(id);
|
|
|
|
+ if (!deleted) {
|
|
return R.fail("删除失败");
|
|
return R.fail("删除失败");
|
|
}
|
|
}
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|