提交 2e0d1825 authored 作者: 吴德鹏's avatar 吴德鹏

修改一个小bug

上级 7a6d106d
......@@ -141,7 +141,7 @@ public class OrderController extends Controller {
if (toitableId != null && !toitableId.isEmpty()) {
boolean check = checkCoupon(toitableId, orderPrice);
if (!check) {
return new Result<>(code, "Coupon invalid !");
return new Result<>(code, "");
}
Optional<TbCfToicoupon> couponOptional = toicouponRepository.findById(toitableId);
......@@ -214,7 +214,7 @@ public class OrderController extends Controller {
if (toitableId != null && !toitableId.isEmpty()) {
boolean check = checkCoupon(toitableId, orderPrice);
if (!check) {
return new Result<>(code, "Coupon invalid !");
return new Result<>(code, "");
}
Optional<TbCfToicoupon> couponOptional = toicouponRepository.findById(toitableId);
......@@ -341,7 +341,7 @@ public class OrderController extends Controller {
if (toitableId != null && !toitableId.isEmpty()) {
boolean check = checkCoupon(toitableId, orderPrice);
if (!check) {
return new Result<>(v_code, "Coupon invalid !");
return new Result<>(v_code, "");
}
Optional<TbCfToicoupon> couponOptional = toicouponRepository.findById(toitableId);
......
......@@ -18,7 +18,6 @@ import java.io.Serializable;
*/
@Entity
@Data
@Where(clause = "is_show=1")
public class TbCfClassification {
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论