记得上下班打卡 | git大法好,push需谨慎

Commit 47aff269 authored by 张国柄's avatar 张国柄

~admin.api:巡演券关联配置接口+实现;

parent 81620bed
...@@ -41,14 +41,13 @@ public class CandyCouponRelateAdminServiceImpl extends ServiceImpl<CandyCouponRe ...@@ -41,14 +41,13 @@ public class CandyCouponRelateAdminServiceImpl extends ServiceImpl<CandyCouponRe
@Override @Override
public AjaxResult relate(CandyMgtCouponRelateParam couponRelateParam) { public AjaxResult relate(CandyMgtCouponRelateParam couponRelateParam) {
String couponId = couponRelateParam.getCouponId(); String couponId = couponRelateParam.getCouponId();
LambdaQueryWrapper<CandyCoupon> couponLambdaQueryWrapper = Wrappers.lambdaQuery(); LambdaQueryWrapper<CandyCoupon> couponLambdaQueryWrapper = Wrappers.lambdaQuery();
couponLambdaQueryWrapper.eq(CandyCoupon::getCouponId, couponId); couponLambdaQueryWrapper.eq(CandyCoupon::getCouponId, couponId);
couponLambdaQueryWrapper.eq(CandyCoupon::getState, 1); couponLambdaQueryWrapper.eq(CandyCoupon::getState, 1);
CandyCoupon coupon = candyCouponAdminService.getOne(couponLambdaQueryWrapper); CandyCoupon coupon = candyCouponAdminService.getOne(couponLambdaQueryWrapper);
if (coupon.getCouType() != 101) { if (null == coupon) return AjaxResult.warn("券不存在");
return AjaxResult.warn("当前操作只支持优先券类型"); if (coupon.getCouType() != 101) return AjaxResult.warn("当前操作只支持优先券类型");
}
String key; String key;
Integer scope = couponRelateParam.getScope(); Integer scope = couponRelateParam.getScope();
switch (scope) { switch (scope) {
......
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