|
|
@@ -275,6 +275,50 @@ public class LifeDiscountCouponController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation("我创建的优惠券列表(当前店铺创建的 life_discount_coupon)")
|
|
|
+ @ApiOperationSupport(order = 12)
|
|
|
+ @GetMapping("/getMyCreatedDiscountCouponList")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "storeId", value = "商户id", dataType = "String", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "status", value = "状态筛选", dataType = "String", paramType = "query", required = false),
|
|
|
+ @ApiImplicitParam(name = "couponStatus", value = "优惠券状态:0草稿,1正式", dataType = "int", paramType = "query", required = false),
|
|
|
+ })
|
|
|
+ public R<List<LifeDiscountCouponVo>> getMyCreatedDiscountCouponList(@ApiIgnore @TokenInfo UserLoginInfo userLoginInfo,
|
|
|
+ @RequestParam(value = "storeId") String storeId,
|
|
|
+ @RequestParam(value = "status", required = false) String status,
|
|
|
+ @RequestParam(value = "couponStatus", defaultValue = "1", required = false) int couponStatus) {
|
|
|
+ log.info("LifeDiscountCouponController.getMyCreatedDiscountCouponList?storeId={}", storeId);
|
|
|
+ try {
|
|
|
+ List<LifeDiscountCouponVo> list = lifeDiscountCouponService.getStoreAllCouponListPaginateNot(status, storeId, userLoginInfo, couponStatus, 1);
|
|
|
+ return R.data(list);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("LifeDiscountCouponController.getMyCreatedDiscountCouponList ERROR Msg={}", e.getMessage());
|
|
|
+ return R.fail("查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation("我创建的代金券列表(当前店铺创建的 life_coupon,type=1 代金券)")
|
|
|
+ @ApiOperationSupport(order = 12)
|
|
|
+ @GetMapping("/getMyCreatedVoucherList")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "storeId", value = "商户id", dataType = "String", paramType = "query", required = true),
|
|
|
+ @ApiImplicitParam(name = "status", value = "状态筛选", dataType = "String", paramType = "query", required = false),
|
|
|
+ @ApiImplicitParam(name = "couponStatus", value = "代金券状态:0草稿,1正式", dataType = "int", paramType = "query", required = false),
|
|
|
+ })
|
|
|
+ public R<List<LifeDiscountCouponVo>> getMyCreatedVoucherList(@ApiIgnore @TokenInfo UserLoginInfo userLoginInfo,
|
|
|
+ @RequestParam(value = "storeId") String storeId,
|
|
|
+ @RequestParam(value = "status", required = false) String status,
|
|
|
+ @RequestParam(value = "couponStatus", defaultValue = "1", required = false) int couponStatus) {
|
|
|
+ log.info("LifeDiscountCouponController.getMyCreatedVoucherList?storeId={}", storeId);
|
|
|
+ try {
|
|
|
+ List<LifeDiscountCouponVo> list = lifeDiscountCouponService.getStoreAllCouponListPaginateNot(status, storeId, userLoginInfo, couponStatus, 4);
|
|
|
+ return R.data(list);
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("LifeDiscountCouponController.getMyCreatedVoucherList ERROR Msg={}", e.getMessage());
|
|
|
+ return R.fail("查询失败");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("获取优惠券状态")
|
|
|
@ApiOperationSupport(order = 13)
|
|
|
@GetMapping("/getCouponStatus")
|