满减活动
限时折扣 点单智能推荐
This commit is contained in:
@@ -72,5 +72,14 @@ public class ADiscountActivityController {
|
|||||||
return CzgResult.success();
|
return CzgResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页
|
||||||
|
*/
|
||||||
|
@GetMapping
|
||||||
|
public CzgResult<MkDiscountActivityDTO> getActivity(@RequestParam Long shopId) {
|
||||||
|
MkDiscountActivityDTO data = discountActivityService.getActivityByShopId(shopId);
|
||||||
|
return CzgResult.success(data);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package com.czg.controller.admin;
|
|||||||
import com.czg.TimeQueryParam;
|
import com.czg.TimeQueryParam;
|
||||||
import com.czg.log.annotation.OperationLog;
|
import com.czg.log.annotation.OperationLog;
|
||||||
import com.czg.market.dto.MkLimitTimeDiscountDTO;
|
import com.czg.market.dto.MkLimitTimeDiscountDTO;
|
||||||
|
import com.czg.market.entity.MkLimitTimeDiscount;
|
||||||
import com.czg.market.service.MkLimitTimeDiscountService;
|
import com.czg.market.service.MkLimitTimeDiscountService;
|
||||||
import com.czg.resp.CzgResult;
|
import com.czg.resp.CzgResult;
|
||||||
import com.czg.sa.StpKit;
|
import com.czg.sa.StpKit;
|
||||||
@@ -71,5 +72,13 @@ public class ALimitTimeDiscountController {
|
|||||||
return CzgResult.success();
|
return CzgResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取限时折扣
|
||||||
|
*/
|
||||||
|
@GetMapping
|
||||||
|
public CzgResult<MkLimitTimeDiscount> getActivity(@RequestParam Long shopId) {
|
||||||
|
MkLimitTimeDiscount data = limitTimeDiscountService.getLimitTimeDiscountByShopId(shopId);
|
||||||
|
return CzgResult.success(data);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
package com.czg.controller.admin;
|
package com.czg.controller.admin;
|
||||||
|
|
||||||
import com.czg.BaseQueryParam;
|
import com.czg.BaseQueryParam;
|
||||||
import com.czg.TimeQueryParam;
|
|
||||||
import com.czg.log.annotation.OperationLog;
|
import com.czg.log.annotation.OperationLog;
|
||||||
import com.czg.market.dto.MkProductSmartSuggestDTO;
|
import com.czg.market.dto.MkProductSmartSuggestDTO;
|
||||||
import com.czg.market.service.MkProductSmartSuggestService;
|
import com.czg.market.service.MkProductSmartSuggestService;
|
||||||
@@ -16,6 +15,8 @@ import jakarta.annotation.Resource;
|
|||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 点单智能推荐
|
* 点单智能推荐
|
||||||
*
|
*
|
||||||
@@ -73,4 +74,13 @@ public class AProductSmartSuggestController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取点单智能推荐
|
||||||
|
*/
|
||||||
|
@GetMapping
|
||||||
|
public CzgResult<Map<String, Object>> getActivity(@RequestParam Long shopId) {
|
||||||
|
Map<String, Object> map = suggestService.getProductSmartSuggestByShopId(shopId);
|
||||||
|
return CzgResult.success(map);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user