parent
427dfc49c0
commit
eb38377dfb
@ -1,4 +1,4 @@
|
|||||||
package com.bookstore.bookmall.bookcoupon;
|
package com.bookstore.bookmall.coupon;
|
||||||
|
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/coupon")
|
||||||
|
public class CouponController {
|
||||||
|
@Autowired
|
||||||
|
private CouponService couponService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:coupon:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:coupon:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponEntity coupon = couponService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("coupon", coupon);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:coupon:save")
|
||||||
|
public R save(@RequestBody CouponEntity coupon){
|
||||||
|
couponService.save(coupon);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:coupon:update")
|
||||||
|
public R update(@RequestBody CouponEntity coupon){
|
||||||
|
couponService.updateById(coupon);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:coupon:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponHistoryService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券领取历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/couponhistory")
|
||||||
|
public class CouponHistoryController {
|
||||||
|
@Autowired
|
||||||
|
private CouponHistoryService couponHistoryService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:couponhistory:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponHistoryService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:couponhistory:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponHistoryEntity couponHistory = couponHistoryService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("couponHistory", couponHistory);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:couponhistory:save")
|
||||||
|
public R save(@RequestBody CouponHistoryEntity couponHistory){
|
||||||
|
couponHistoryService.save(couponHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:couponhistory:update")
|
||||||
|
public R update(@RequestBody CouponHistoryEntity couponHistory){
|
||||||
|
couponHistoryService.updateById(couponHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:couponhistory:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponHistoryService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponSpuCategoryRelationService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券分类关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/couponspucategoryrelation")
|
||||||
|
public class CouponSpuCategoryRelationController {
|
||||||
|
@Autowired
|
||||||
|
private CouponSpuCategoryRelationService couponSpuCategoryRelationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:couponspucategoryrelation:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponSpuCategoryRelationService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:couponspucategoryrelation:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponSpuCategoryRelationEntity couponSpuCategoryRelation = couponSpuCategoryRelationService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("couponSpuCategoryRelation", couponSpuCategoryRelation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:couponspucategoryrelation:save")
|
||||||
|
public R save(@RequestBody CouponSpuCategoryRelationEntity couponSpuCategoryRelation){
|
||||||
|
couponSpuCategoryRelationService.save(couponSpuCategoryRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:couponspucategoryrelation:update")
|
||||||
|
public R update(@RequestBody CouponSpuCategoryRelationEntity couponSpuCategoryRelation){
|
||||||
|
couponSpuCategoryRelationService.updateById(couponSpuCategoryRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:couponspucategoryrelation:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponSpuCategoryRelationService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponSpuRelationService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券与产品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/couponspurelation")
|
||||||
|
public class CouponSpuRelationController {
|
||||||
|
@Autowired
|
||||||
|
private CouponSpuRelationService couponSpuRelationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:couponspurelation:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponSpuRelationService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:couponspurelation:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponSpuRelationEntity couponSpuRelation = couponSpuRelationService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("couponSpuRelation", couponSpuRelation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:couponspurelation:save")
|
||||||
|
public R save(@RequestBody CouponSpuRelationEntity couponSpuRelation){
|
||||||
|
couponSpuRelationService.save(couponSpuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:couponspurelation:update")
|
||||||
|
public R update(@RequestBody CouponSpuRelationEntity couponSpuRelation){
|
||||||
|
couponSpuRelationService.updateById(couponSpuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:couponspurelation:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponSpuRelationService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeAdvEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.HomeAdvService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首页轮播广告
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/homeadv")
|
||||||
|
public class HomeAdvController {
|
||||||
|
@Autowired
|
||||||
|
private HomeAdvService homeAdvService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:homeadv:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = homeAdvService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:homeadv:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
HomeAdvEntity homeAdv = homeAdvService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("homeAdv", homeAdv);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:homeadv:save")
|
||||||
|
public R save(@RequestBody HomeAdvEntity homeAdv){
|
||||||
|
homeAdvService.save(homeAdv);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:homeadv:update")
|
||||||
|
public R update(@RequestBody HomeAdvEntity homeAdv){
|
||||||
|
homeAdvService.updateById(homeAdv);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:homeadv:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
homeAdvService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.HomeSubjectSpuService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专题商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/homesubjectspu")
|
||||||
|
public class HomeSubjectSpuController {
|
||||||
|
@Autowired
|
||||||
|
private HomeSubjectSpuService homeSubjectSpuService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:homesubjectspu:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = homeSubjectSpuService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:homesubjectspu:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
HomeSubjectSpuEntity homeSubjectSpu = homeSubjectSpuService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("homeSubjectSpu", homeSubjectSpu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:homesubjectspu:save")
|
||||||
|
public R save(@RequestBody HomeSubjectSpuEntity homeSubjectSpu){
|
||||||
|
homeSubjectSpuService.save(homeSubjectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:homesubjectspu:update")
|
||||||
|
public R update(@RequestBody HomeSubjectSpuEntity homeSubjectSpu){
|
||||||
|
homeSubjectSpuService.updateById(homeSubjectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:homesubjectspu:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
homeSubjectSpuService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.MemberPriceEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.MemberPriceService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品会员价格
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/memberprice")
|
||||||
|
public class MemberPriceController {
|
||||||
|
@Autowired
|
||||||
|
private MemberPriceService memberPriceService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:memberprice:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberPriceService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:memberprice:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberPriceEntity memberPrice = memberPriceService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberPrice", memberPrice);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:memberprice:save")
|
||||||
|
public R save(@RequestBody MemberPriceEntity memberPrice){
|
||||||
|
memberPriceService.save(memberPrice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:memberprice:update")
|
||||||
|
public R update(@RequestBody MemberPriceEntity memberPrice){
|
||||||
|
memberPriceService.updateById(memberPrice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:memberprice:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberPriceService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillPromotionService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillpromotion")
|
||||||
|
public class SeckillPromotionController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillPromotionService seckillPromotionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:seckillpromotion:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillPromotionService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:seckillpromotion:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillPromotionEntity seckillPromotion = seckillPromotionService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillPromotion", seckillPromotion);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:seckillpromotion:save")
|
||||||
|
public R save(@RequestBody SeckillPromotionEntity seckillPromotion){
|
||||||
|
seckillPromotionService.save(seckillPromotion);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:seckillpromotion:update")
|
||||||
|
public R update(@RequestBody SeckillPromotionEntity seckillPromotion){
|
||||||
|
seckillPromotionService.updateById(seckillPromotion);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:seckillpromotion:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillPromotionService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSessionEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillSessionService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动场次
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillsession")
|
||||||
|
public class SeckillSessionController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillSessionService seckillSessionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:seckillsession:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillSessionService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:seckillsession:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillSessionEntity seckillSession = seckillSessionService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillSession", seckillSession);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:seckillsession:save")
|
||||||
|
public R save(@RequestBody SeckillSessionEntity seckillSession){
|
||||||
|
seckillSessionService.save(seckillSession);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:seckillsession:update")
|
||||||
|
public R update(@RequestBody SeckillSessionEntity seckillSession){
|
||||||
|
seckillSessionService.updateById(seckillSession);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:seckillsession:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillSessionService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillSkuNoticeService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀商品通知订阅
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillskunotice")
|
||||||
|
public class SeckillSkuNoticeController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillSkuNoticeService seckillSkuNoticeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:seckillskunotice:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillSkuNoticeService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:seckillskunotice:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillSkuNoticeEntity seckillSkuNotice = seckillSkuNoticeService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillSkuNotice", seckillSkuNotice);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:seckillskunotice:save")
|
||||||
|
public R save(@RequestBody SeckillSkuNoticeEntity seckillSkuNotice){
|
||||||
|
seckillSkuNoticeService.save(seckillSkuNotice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:seckillskunotice:update")
|
||||||
|
public R update(@RequestBody SeckillSkuNoticeEntity seckillSkuNotice){
|
||||||
|
seckillSkuNoticeService.updateById(seckillSkuNotice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:seckillskunotice:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillSkuNoticeService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillSkuRelationService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动商品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillskurelation")
|
||||||
|
public class SeckillSkuRelationController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillSkuRelationService seckillSkuRelationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:seckillskurelation:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillSkuRelationService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:seckillskurelation:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillSkuRelationEntity seckillSkuRelation = seckillSkuRelationService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillSkuRelation", seckillSkuRelation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:seckillskurelation:save")
|
||||||
|
public R save(@RequestBody SeckillSkuRelationEntity seckillSkuRelation){
|
||||||
|
seckillSkuRelationService.save(seckillSkuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:seckillskurelation:update")
|
||||||
|
public R update(@RequestBody SeckillSkuRelationEntity seckillSkuRelation){
|
||||||
|
seckillSkuRelationService.updateById(seckillSkuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:seckillskurelation:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillSkuRelationService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SkuFullReductionService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品满减信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/skufullreduction")
|
||||||
|
public class SkuFullReductionController {
|
||||||
|
@Autowired
|
||||||
|
private SkuFullReductionService skuFullReductionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:skufullreduction:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = skuFullReductionService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:skufullreduction:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SkuFullReductionEntity skuFullReduction = skuFullReductionService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("skuFullReduction", skuFullReduction);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:skufullreduction:save")
|
||||||
|
public R save(@RequestBody SkuFullReductionEntity skuFullReduction){
|
||||||
|
skuFullReductionService.save(skuFullReduction);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:skufullreduction:update")
|
||||||
|
public R update(@RequestBody SkuFullReductionEntity skuFullReduction){
|
||||||
|
skuFullReductionService.updateById(skuFullReduction);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:skufullreduction:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
skuFullReductionService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuLadderEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SkuLadderService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品阶梯价格
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/skuladder")
|
||||||
|
public class SkuLadderController {
|
||||||
|
@Autowired
|
||||||
|
private SkuLadderService skuLadderService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:skuladder:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = skuLadderService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:skuladder:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SkuLadderEntity skuLadder = skuLadderService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("skuLadder", skuLadder);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:skuladder:save")
|
||||||
|
public R save(@RequestBody SkuLadderEntity skuLadder){
|
||||||
|
skuLadderService.save(skuLadder);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:skuladder:update")
|
||||||
|
public R update(@RequestBody SkuLadderEntity skuLadder){
|
||||||
|
skuLadderService.updateById(skuLadder);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:skuladder:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
skuLadderService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestParam;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SpuBoundsEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SpuBoundsService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品spu积分设置
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/spubounds")
|
||||||
|
public class SpuBoundsController {
|
||||||
|
@Autowired
|
||||||
|
private SpuBoundsService spuBoundsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("coupon:spubounds:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = spuBoundsService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("coupon:spubounds:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SpuBoundsEntity spuBounds = spuBoundsService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("spuBounds", spuBounds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("coupon:spubounds:save")
|
||||||
|
public R save(@RequestBody SpuBoundsEntity spuBounds){
|
||||||
|
spuBoundsService.save(spuBounds);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("coupon:spubounds:update")
|
||||||
|
public R update(@RequestBody SpuBoundsEntity spuBounds){
|
||||||
|
spuBoundsService.updateById(spuBounds);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("coupon:spubounds:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
spuBoundsService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CouponDao extends BaseMapper<CouponEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponHistoryEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券领取历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CouponHistoryDao extends BaseMapper<CouponHistoryEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券分类关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CouponSpuCategoryRelationDao extends BaseMapper<CouponSpuCategoryRelationEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券与产品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface CouponSpuRelationDao extends BaseMapper<CouponSpuRelationEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeAdvEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首页轮播广告
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface HomeAdvDao extends BaseMapper<HomeAdvEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专题商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface HomeSubjectSpuDao extends BaseMapper<HomeSubjectSpuEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.MemberPriceEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品会员价格
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberPriceDao extends BaseMapper<MemberPriceEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SeckillPromotionDao extends BaseMapper<SeckillPromotionEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSessionEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动场次
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SeckillSessionDao extends BaseMapper<SeckillSessionEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀商品通知订阅
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SeckillSkuNoticeDao extends BaseMapper<SeckillSkuNoticeEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动商品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SeckillSkuRelationDao extends BaseMapper<SeckillSkuRelationEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品满减信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SkuFullReductionDao extends BaseMapper<SkuFullReductionEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuLadderEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品阶梯价格
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SkuLadderDao extends BaseMapper<SkuLadderEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SpuBoundsEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品spu积分设置
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface SpuBoundsDao extends BaseMapper<SpuBoundsEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券分类关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_coupon_spu_category_relation")
|
||||||
|
public class CouponSpuCategoryRelationEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 优惠券id
|
||||||
|
*/
|
||||||
|
private Long couponId;
|
||||||
|
/**
|
||||||
|
* 产品分类id
|
||||||
|
*/
|
||||||
|
private Long categoryId;
|
||||||
|
/**
|
||||||
|
* 产品分类名称
|
||||||
|
*/
|
||||||
|
private String categoryName;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券与产品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_coupon_spu_relation")
|
||||||
|
public class CouponSpuRelationEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 优惠券id
|
||||||
|
*/
|
||||||
|
private Long couponId;
|
||||||
|
/**
|
||||||
|
* spu_id
|
||||||
|
*/
|
||||||
|
private Long spuId;
|
||||||
|
/**
|
||||||
|
* spu_name
|
||||||
|
*/
|
||||||
|
private String spuName;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,72 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首页轮播广告
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_home_adv")
|
||||||
|
public class HomeAdvEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 名字
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* 图片地址
|
||||||
|
*/
|
||||||
|
private String pic;
|
||||||
|
/**
|
||||||
|
* 开始时间
|
||||||
|
*/
|
||||||
|
private Date startTime;
|
||||||
|
/**
|
||||||
|
* 结束时间
|
||||||
|
*/
|
||||||
|
private Date endTime;
|
||||||
|
/**
|
||||||
|
* 状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
/**
|
||||||
|
* 点击数
|
||||||
|
*/
|
||||||
|
private Integer clickCount;
|
||||||
|
/**
|
||||||
|
* 广告详情连接地址
|
||||||
|
*/
|
||||||
|
private String url;
|
||||||
|
/**
|
||||||
|
* 备注
|
||||||
|
*/
|
||||||
|
private String note;
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
|
/**
|
||||||
|
* 发布者
|
||||||
|
*/
|
||||||
|
private Long publisherId;
|
||||||
|
/**
|
||||||
|
* 审核者
|
||||||
|
*/
|
||||||
|
private Long authId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,44 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专题商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_home_subject_spu")
|
||||||
|
public class HomeSubjectSpuEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 专题名字
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* 专题id
|
||||||
|
*/
|
||||||
|
private Long subjectId;
|
||||||
|
/**
|
||||||
|
* spu_id
|
||||||
|
*/
|
||||||
|
private Long spuId;
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer sort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,52 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_seckill_promotion")
|
||||||
|
public class SeckillPromotionEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 活动标题
|
||||||
|
*/
|
||||||
|
private String title;
|
||||||
|
/**
|
||||||
|
* 开始日期
|
||||||
|
*/
|
||||||
|
private Date startTime;
|
||||||
|
/**
|
||||||
|
* 结束日期
|
||||||
|
*/
|
||||||
|
private Date endTime;
|
||||||
|
/**
|
||||||
|
* 上下线状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
/**
|
||||||
|
* 创建人
|
||||||
|
*/
|
||||||
|
private Long userId;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,48 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动场次
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_seckill_session")
|
||||||
|
public class SeckillSessionEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 场次名称
|
||||||
|
*/
|
||||||
|
private String name;
|
||||||
|
/**
|
||||||
|
* 每日开始时间
|
||||||
|
*/
|
||||||
|
private Date startTime;
|
||||||
|
/**
|
||||||
|
* 每日结束时间
|
||||||
|
*/
|
||||||
|
private Date endTime;
|
||||||
|
/**
|
||||||
|
* 启用状态
|
||||||
|
*/
|
||||||
|
private Integer status;
|
||||||
|
/**
|
||||||
|
* 创建时间
|
||||||
|
*/
|
||||||
|
private Date createTime;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,57 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动商品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_seckill_sku_relation")
|
||||||
|
public class SeckillSkuRelationEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* 活动id
|
||||||
|
*/
|
||||||
|
private Long promotionId;
|
||||||
|
/**
|
||||||
|
* 活动场次id
|
||||||
|
*/
|
||||||
|
private Long promotionSessionId;
|
||||||
|
/**
|
||||||
|
* 商品id
|
||||||
|
*/
|
||||||
|
private Long skuId;
|
||||||
|
/**
|
||||||
|
* 秒杀价格
|
||||||
|
*/
|
||||||
|
private BigDecimal seckillPrice;
|
||||||
|
/**
|
||||||
|
* 秒杀总量
|
||||||
|
*/
|
||||||
|
private BigDecimal seckillCount;
|
||||||
|
/**
|
||||||
|
* 每人限购数量
|
||||||
|
*/
|
||||||
|
private BigDecimal seckillLimit;
|
||||||
|
/**
|
||||||
|
* 排序
|
||||||
|
*/
|
||||||
|
private Integer seckillSort;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,45 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.entity;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableId;
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
|
||||||
|
import java.math.BigDecimal;
|
||||||
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品满减信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@TableName("sms_sku_full_reduction")
|
||||||
|
public class SkuFullReductionEntity implements Serializable {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* id
|
||||||
|
*/
|
||||||
|
@TableId
|
||||||
|
private Long id;
|
||||||
|
/**
|
||||||
|
* spu_id
|
||||||
|
*/
|
||||||
|
private Long skuId;
|
||||||
|
/**
|
||||||
|
* 满多少
|
||||||
|
*/
|
||||||
|
private BigDecimal fullPrice;
|
||||||
|
/**
|
||||||
|
* 减多少
|
||||||
|
*/
|
||||||
|
private BigDecimal reducePrice;
|
||||||
|
/**
|
||||||
|
* 是否参与其他优惠
|
||||||
|
*/
|
||||||
|
private Integer addOther;
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponHistoryEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券领取历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface CouponHistoryService extends IService<CouponHistoryEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface CouponService extends IService<CouponEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券分类关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface CouponSpuCategoryRelationService extends IService<CouponSpuCategoryRelationEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券与产品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface CouponSpuRelationService extends IService<CouponSpuRelationEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeAdvEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首页轮播广告
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface HomeAdvService extends IService<HomeAdvEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专题商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface HomeSubjectSpuService extends IService<HomeSubjectSpuEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.MemberPriceEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品会员价格
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface MemberPriceService extends IService<MemberPriceEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface SeckillPromotionService extends IService<SeckillPromotionEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSessionEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动场次
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface SeckillSessionService extends IService<SeckillSessionEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀商品通知订阅
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface SeckillSkuNoticeService extends IService<SeckillSkuNoticeEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动商品关联
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface SeckillSkuRelationService extends IService<SeckillSkuRelationEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品满减信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface SkuFullReductionService extends IService<SkuFullReductionEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuLadderEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品阶梯价格
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface SkuLadderService extends IService<SkuLadderEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SpuBoundsEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品spu积分设置
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 22:58:13
|
||||||
|
*/
|
||||||
|
public interface SpuBoundsService extends IService<SpuBoundsEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.CouponHistoryDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponHistoryService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("couponHistoryService")
|
||||||
|
public class CouponHistoryServiceImpl extends ServiceImpl<CouponHistoryDao, CouponHistoryEntity> implements CouponHistoryService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<CouponHistoryEntity> page = this.page(
|
||||||
|
new Query<CouponHistoryEntity>().getPage(params),
|
||||||
|
new QueryWrapper<CouponHistoryEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.CouponDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("couponService")
|
||||||
|
public class CouponServiceImpl extends ServiceImpl<CouponDao, CouponEntity> implements CouponService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<CouponEntity> page = this.page(
|
||||||
|
new Query<CouponEntity>().getPage(params),
|
||||||
|
new QueryWrapper<CouponEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.CouponSpuCategoryRelationDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponSpuCategoryRelationService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("couponSpuCategoryRelationService")
|
||||||
|
public class CouponSpuCategoryRelationServiceImpl extends ServiceImpl<CouponSpuCategoryRelationDao, CouponSpuCategoryRelationEntity> implements CouponSpuCategoryRelationService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<CouponSpuCategoryRelationEntity> page = this.page(
|
||||||
|
new Query<CouponSpuCategoryRelationEntity>().getPage(params),
|
||||||
|
new QueryWrapper<CouponSpuCategoryRelationEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.CouponSpuRelationDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.CouponSpuRelationService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("couponSpuRelationService")
|
||||||
|
public class CouponSpuRelationServiceImpl extends ServiceImpl<CouponSpuRelationDao, CouponSpuRelationEntity> implements CouponSpuRelationService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<CouponSpuRelationEntity> page = this.page(
|
||||||
|
new Query<CouponSpuRelationEntity>().getPage(params),
|
||||||
|
new QueryWrapper<CouponSpuRelationEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.HomeAdvDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeAdvEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.HomeAdvService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("homeAdvService")
|
||||||
|
public class HomeAdvServiceImpl extends ServiceImpl<HomeAdvDao, HomeAdvEntity> implements HomeAdvService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<HomeAdvEntity> page = this.page(
|
||||||
|
new Query<HomeAdvEntity>().getPage(params),
|
||||||
|
new QueryWrapper<HomeAdvEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.HomeSubjectDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeSubjectEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.HomeSubjectService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("homeSubjectService")
|
||||||
|
public class HomeSubjectServiceImpl extends ServiceImpl<HomeSubjectDao, HomeSubjectEntity> implements HomeSubjectService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<HomeSubjectEntity> page = this.page(
|
||||||
|
new Query<HomeSubjectEntity>().getPage(params),
|
||||||
|
new QueryWrapper<HomeSubjectEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.HomeSubjectSpuDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.HomeSubjectSpuService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("homeSubjectSpuService")
|
||||||
|
public class HomeSubjectSpuServiceImpl extends ServiceImpl<HomeSubjectSpuDao, HomeSubjectSpuEntity> implements HomeSubjectSpuService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<HomeSubjectSpuEntity> page = this.page(
|
||||||
|
new Query<HomeSubjectSpuEntity>().getPage(params),
|
||||||
|
new QueryWrapper<HomeSubjectSpuEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.MemberPriceDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.MemberPriceEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.MemberPriceService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("memberPriceService")
|
||||||
|
public class MemberPriceServiceImpl extends ServiceImpl<MemberPriceDao, MemberPriceEntity> implements MemberPriceService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<MemberPriceEntity> page = this.page(
|
||||||
|
new Query<MemberPriceEntity>().getPage(params),
|
||||||
|
new QueryWrapper<MemberPriceEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.SeckillPromotionDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillPromotionService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("seckillPromotionService")
|
||||||
|
public class SeckillPromotionServiceImpl extends ServiceImpl<SeckillPromotionDao, SeckillPromotionEntity> implements SeckillPromotionService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<SeckillPromotionEntity> page = this.page(
|
||||||
|
new Query<SeckillPromotionEntity>().getPage(params),
|
||||||
|
new QueryWrapper<SeckillPromotionEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.SeckillSessionDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSessionEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillSessionService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("seckillSessionService")
|
||||||
|
public class SeckillSessionServiceImpl extends ServiceImpl<SeckillSessionDao, SeckillSessionEntity> implements SeckillSessionService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<SeckillSessionEntity> page = this.page(
|
||||||
|
new Query<SeckillSessionEntity>().getPage(params),
|
||||||
|
new QueryWrapper<SeckillSessionEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.SeckillSkuNoticeDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillSkuNoticeService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("seckillSkuNoticeService")
|
||||||
|
public class SeckillSkuNoticeServiceImpl extends ServiceImpl<SeckillSkuNoticeDao, SeckillSkuNoticeEntity> implements SeckillSkuNoticeService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<SeckillSkuNoticeEntity> page = this.page(
|
||||||
|
new Query<SeckillSkuNoticeEntity>().getPage(params),
|
||||||
|
new QueryWrapper<SeckillSkuNoticeEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.SeckillSkuRelationDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SeckillSkuRelationService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("seckillSkuRelationService")
|
||||||
|
public class SeckillSkuRelationServiceImpl extends ServiceImpl<SeckillSkuRelationDao, SeckillSkuRelationEntity> implements SeckillSkuRelationService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<SeckillSkuRelationEntity> page = this.page(
|
||||||
|
new Query<SeckillSkuRelationEntity>().getPage(params),
|
||||||
|
new QueryWrapper<SeckillSkuRelationEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.SkuFullReductionDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SkuFullReductionService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("skuFullReductionService")
|
||||||
|
public class SkuFullReductionServiceImpl extends ServiceImpl<SkuFullReductionDao, SkuFullReductionEntity> implements SkuFullReductionService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<SkuFullReductionEntity> page = this.page(
|
||||||
|
new Query<SkuFullReductionEntity>().getPage(params),
|
||||||
|
new QueryWrapper<SkuFullReductionEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.SkuLadderDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SkuLadderEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SkuLadderService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("skuLadderService")
|
||||||
|
public class SkuLadderServiceImpl extends ServiceImpl<SkuLadderDao, SkuLadderEntity> implements SkuLadderService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<SkuLadderEntity> page = this.page(
|
||||||
|
new Query<SkuLadderEntity>().getPage(params),
|
||||||
|
new QueryWrapper<SkuLadderEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.service.impl;
|
||||||
|
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import java.util.Map;
|
||||||
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||||
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.Query;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.coupon.dao.SpuBoundsDao;
|
||||||
|
import com.bookstore.bookmall.coupon.entity.SpuBoundsEntity;
|
||||||
|
import com.bookstore.bookmall.coupon.service.SpuBoundsService;
|
||||||
|
|
||||||
|
|
||||||
|
@Service("spuBoundsService")
|
||||||
|
public class SpuBoundsServiceImpl extends ServiceImpl<SpuBoundsDao, SpuBoundsEntity> implements SpuBoundsService {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public PageUtils queryPage(Map<String, Object> params) {
|
||||||
|
IPage<SpuBoundsEntity> page = this.page(
|
||||||
|
new Query<SpuBoundsEntity>().getPage(params),
|
||||||
|
new QueryWrapper<SpuBoundsEntity>()
|
||||||
|
);
|
||||||
|
|
||||||
|
return new PageUtils(page);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponEntity" id="couponMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponType" column="coupon_type"/>
|
||||||
|
<result property="couponImg" column="coupon_img"/>
|
||||||
|
<result property="couponName" column="coupon_name"/>
|
||||||
|
<result property="num" column="num"/>
|
||||||
|
<result property="amount" column="amount"/>
|
||||||
|
<result property="perLimit" column="per_limit"/>
|
||||||
|
<result property="minPoint" column="min_point"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="useType" column="use_type"/>
|
||||||
|
<result property="note" column="note"/>
|
||||||
|
<result property="publishCount" column="publish_count"/>
|
||||||
|
<result property="useCount" column="use_count"/>
|
||||||
|
<result property="receiveCount" column="receive_count"/>
|
||||||
|
<result property="enableStartTime" column="enable_start_time"/>
|
||||||
|
<result property="enableEndTime" column="enable_end_time"/>
|
||||||
|
<result property="code" column="code"/>
|
||||||
|
<result property="memberLevel" column="member_level"/>
|
||||||
|
<result property="publish" column="publish"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponHistoryDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponHistoryEntity" id="couponHistoryMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponId" column="coupon_id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="memberNickName" column="member_nick_name"/>
|
||||||
|
<result property="getType" column="get_type"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="useType" column="use_type"/>
|
||||||
|
<result property="useTime" column="use_time"/>
|
||||||
|
<result property="orderId" column="order_id"/>
|
||||||
|
<result property="orderSn" column="order_sn"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponSpuCategoryRelationDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponSpuCategoryRelationEntity" id="couponSpuCategoryRelationMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponId" column="coupon_id"/>
|
||||||
|
<result property="categoryId" column="category_id"/>
|
||||||
|
<result property="categoryName" column="category_name"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.CouponSpuRelationDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.CouponSpuRelationEntity" id="couponSpuRelationMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponId" column="coupon_id"/>
|
||||||
|
<result property="spuId" column="spu_id"/>
|
||||||
|
<result property="spuName" column="spu_name"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.HomeAdvDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.HomeAdvEntity" id="homeAdvMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="pic" column="pic"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="clickCount" column="click_count"/>
|
||||||
|
<result property="url" column="url"/>
|
||||||
|
<result property="note" column="note"/>
|
||||||
|
<result property="sort" column="sort"/>
|
||||||
|
<result property="publisherId" column="publisher_id"/>
|
||||||
|
<result property="authId" column="auth_id"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.HomeSubjectDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.HomeSubjectEntity" id="homeSubjectMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="title" column="title"/>
|
||||||
|
<result property="subTitle" column="sub_title"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="url" column="url"/>
|
||||||
|
<result property="sort" column="sort"/>
|
||||||
|
<result property="img" column="img"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.HomeSubjectSpuDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.HomeSubjectSpuEntity" id="homeSubjectSpuMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="subjectId" column="subject_id"/>
|
||||||
|
<result property="spuId" column="spu_id"/>
|
||||||
|
<result property="sort" column="sort"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.MemberPriceDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.MemberPriceEntity" id="memberPriceMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="memberLevelId" column="member_level_id"/>
|
||||||
|
<result property="memberLevelName" column="member_level_name"/>
|
||||||
|
<result property="memberPrice" column="member_price"/>
|
||||||
|
<result property="addOther" column="add_other"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.SeckillPromotionDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.SeckillPromotionEntity" id="seckillPromotionMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="title" column="title"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="userId" column="user_id"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.SeckillSessionDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.SeckillSessionEntity" id="seckillSessionMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.SeckillSkuNoticeDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.SeckillSkuNoticeEntity" id="seckillSkuNoticeMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="sessionId" column="session_id"/>
|
||||||
|
<result property="subcribeTime" column="subcribe_time"/>
|
||||||
|
<result property="sendTime" column="send_time"/>
|
||||||
|
<result property="noticeType" column="notice_type"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.SeckillSkuRelationDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.SeckillSkuRelationEntity" id="seckillSkuRelationMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="promotionId" column="promotion_id"/>
|
||||||
|
<result property="promotionSessionId" column="promotion_session_id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="seckillPrice" column="seckill_price"/>
|
||||||
|
<result property="seckillCount" column="seckill_count"/>
|
||||||
|
<result property="seckillLimit" column="seckill_limit"/>
|
||||||
|
<result property="seckillSort" column="seckill_sort"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.SkuFullReductionDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.SkuFullReductionEntity" id="skuFullReductionMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="fullPrice" column="full_price"/>
|
||||||
|
<result property="reducePrice" column="reduce_price"/>
|
||||||
|
<result property="addOther" column="add_other"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.SkuLadderDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.SkuLadderEntity" id="skuLadderMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="fullCount" column="full_count"/>
|
||||||
|
<result property="discount" column="discount"/>
|
||||||
|
<result property="price" column="price"/>
|
||||||
|
<result property="addOther" column="add_other"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.bookstore.bookmall.coupon.dao.SpuBoundsDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.bookstore.bookmall.coupon.entity.SpuBoundsEntity" id="spuBoundsMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="spuId" column="spu_id"/>
|
||||||
|
<result property="growBounds" column="grow_bounds"/>
|
||||||
|
<result property="buyBounds" column="buy_bounds"/>
|
||||||
|
<result property="work" column="work"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,102 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
:title="!dataForm.id ? '新增' : '修改'"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:visible.sync="visible">
|
||||||
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
||||||
|
<el-form-item label="优惠券id" prop="couponId">
|
||||||
|
<el-input v-model="dataForm.couponId" placeholder="优惠券id"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="产品分类id" prop="categoryId">
|
||||||
|
<el-input v-model="dataForm.categoryId" placeholder="产品分类id"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="产品分类名称" prop="categoryName">
|
||||||
|
<el-input v-model="dataForm.categoryName" placeholder="产品分类名称"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
dataForm: {
|
||||||
|
id: 0,
|
||||||
|
couponId: '',
|
||||||
|
categoryId: '',
|
||||||
|
categoryName: ''
|
||||||
|
},
|
||||||
|
dataRule: {
|
||||||
|
couponId: [
|
||||||
|
{ required: true, message: '优惠券id不能为空', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
categoryId: [
|
||||||
|
{ required: true, message: '产品分类id不能为空', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
categoryName: [
|
||||||
|
{ required: true, message: '产品分类名称不能为空', trigger: 'blur' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init (id) {
|
||||||
|
this.dataForm.id = id || 0
|
||||||
|
this.visible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs['dataForm'].resetFields()
|
||||||
|
if (this.dataForm.id) {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`/coupon/couponspucategoryrelation/info/${this.dataForm.id}`),
|
||||||
|
method: 'get',
|
||||||
|
params: this.$http.adornParams()
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.dataForm.couponId = data.couponSpuCategoryRelation.couponId
|
||||||
|
this.dataForm.categoryId = data.couponSpuCategoryRelation.categoryId
|
||||||
|
this.dataForm.categoryName = data.couponSpuCategoryRelation.categoryName
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 表单提交
|
||||||
|
dataFormSubmit () {
|
||||||
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`/coupon/couponspucategoryrelation/${!this.dataForm.id ? 'save' : 'update'}`),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData({
|
||||||
|
'id': this.dataForm.id || undefined,
|
||||||
|
'couponId': this.dataForm.couponId,
|
||||||
|
'categoryId': this.dataForm.categoryId,
|
||||||
|
'categoryName': this.dataForm.categoryName
|
||||||
|
})
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '操作成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refreshDataList')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,175 @@
|
|||||||
|
<template>
|
||||||
|
<div class="mod-config">
|
||||||
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
|
<el-form-item>
|
||||||
|
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button @click="getDataList()">查询</el-button>
|
||||||
|
<el-button v-if="isAuth('coupon:couponspucategoryrelation:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
||||||
|
<el-button v-if="isAuth('coupon:couponspucategoryrelation:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
v-loading="dataListLoading"
|
||||||
|
@selection-change="selectionChangeHandle"
|
||||||
|
style="width: 100%;">
|
||||||
|
<el-table-column
|
||||||
|
type="selection"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
width="50">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="id"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="id">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="couponId"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="优惠券id">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="categoryId"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="产品分类id">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="categoryName"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="产品分类名称">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
fixed="right"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
width="150"
|
||||||
|
label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
||||||
|
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-pagination
|
||||||
|
@size-change="sizeChangeHandle"
|
||||||
|
@current-change="currentChangeHandle"
|
||||||
|
:current-page="pageIndex"
|
||||||
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
|
:page-size="pageSize"
|
||||||
|
:total="totalPage"
|
||||||
|
layout="total, sizes, prev, pager, next, jumper">
|
||||||
|
</el-pagination>
|
||||||
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import AddOrUpdate from './couponspucategoryrelation-add-or-update'
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
dataForm: {
|
||||||
|
key: ''
|
||||||
|
},
|
||||||
|
dataList: [],
|
||||||
|
pageIndex: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
totalPage: 0,
|
||||||
|
dataListLoading: false,
|
||||||
|
dataListSelections: [],
|
||||||
|
addOrUpdateVisible: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
AddOrUpdate
|
||||||
|
},
|
||||||
|
activated () {
|
||||||
|
this.getDataList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 获取数据列表
|
||||||
|
getDataList () {
|
||||||
|
this.dataListLoading = true
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/coupon/couponspucategoryrelation/list'),
|
||||||
|
method: 'get',
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
'page': this.pageIndex,
|
||||||
|
'limit': this.pageSize,
|
||||||
|
'key': this.dataForm.key
|
||||||
|
})
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.dataList = data.page.list
|
||||||
|
this.totalPage = data.page.totalCount
|
||||||
|
} else {
|
||||||
|
this.dataList = []
|
||||||
|
this.totalPage = 0
|
||||||
|
}
|
||||||
|
this.dataListLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 每页数
|
||||||
|
sizeChangeHandle (val) {
|
||||||
|
this.pageSize = val
|
||||||
|
this.pageIndex = 1
|
||||||
|
this.getDataList()
|
||||||
|
},
|
||||||
|
// 当前页
|
||||||
|
currentChangeHandle (val) {
|
||||||
|
this.pageIndex = val
|
||||||
|
this.getDataList()
|
||||||
|
},
|
||||||
|
// 多选
|
||||||
|
selectionChangeHandle (val) {
|
||||||
|
this.dataListSelections = val
|
||||||
|
},
|
||||||
|
// 新增 / 修改
|
||||||
|
addOrUpdateHandle (id) {
|
||||||
|
this.addOrUpdateVisible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.addOrUpdate.init(id)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 删除
|
||||||
|
deleteHandle (id) {
|
||||||
|
var ids = id ? [id] : this.dataListSelections.map(item => {
|
||||||
|
return item.id
|
||||||
|
})
|
||||||
|
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/coupon/couponspucategoryrelation/delete'),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData(ids, false)
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '操作成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
this.getDataList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,102 @@
|
|||||||
|
<template>
|
||||||
|
<el-dialog
|
||||||
|
:title="!dataForm.id ? '新增' : '修改'"
|
||||||
|
:close-on-click-modal="false"
|
||||||
|
:visible.sync="visible">
|
||||||
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px">
|
||||||
|
<el-form-item label="优惠券id" prop="couponId">
|
||||||
|
<el-input v-model="dataForm.couponId" placeholder="优惠券id"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="spu_id" prop="spuId">
|
||||||
|
<el-input v-model="dataForm.spuId" placeholder="spu_id"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="spu_name" prop="spuName">
|
||||||
|
<el-input v-model="dataForm.spuName" placeholder="spu_name"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="visible = false">取消</el-button>
|
||||||
|
<el-button type="primary" @click="dataFormSubmit()">确定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
visible: false,
|
||||||
|
dataForm: {
|
||||||
|
id: 0,
|
||||||
|
couponId: '',
|
||||||
|
spuId: '',
|
||||||
|
spuName: ''
|
||||||
|
},
|
||||||
|
dataRule: {
|
||||||
|
couponId: [
|
||||||
|
{ required: true, message: '优惠券id不能为空', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
spuId: [
|
||||||
|
{ required: true, message: 'spu_id不能为空', trigger: 'blur' }
|
||||||
|
],
|
||||||
|
spuName: [
|
||||||
|
{ required: true, message: 'spu_name不能为空', trigger: 'blur' }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init (id) {
|
||||||
|
this.dataForm.id = id || 0
|
||||||
|
this.visible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs['dataForm'].resetFields()
|
||||||
|
if (this.dataForm.id) {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`/coupon/couponspurelation/info/${this.dataForm.id}`),
|
||||||
|
method: 'get',
|
||||||
|
params: this.$http.adornParams()
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.dataForm.couponId = data.couponSpuRelation.couponId
|
||||||
|
this.dataForm.spuId = data.couponSpuRelation.spuId
|
||||||
|
this.dataForm.spuName = data.couponSpuRelation.spuName
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 表单提交
|
||||||
|
dataFormSubmit () {
|
||||||
|
this.$refs['dataForm'].validate((valid) => {
|
||||||
|
if (valid) {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl(`/coupon/couponspurelation/${!this.dataForm.id ? 'save' : 'update'}`),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData({
|
||||||
|
'id': this.dataForm.id || undefined,
|
||||||
|
'couponId': this.dataForm.couponId,
|
||||||
|
'spuId': this.dataForm.spuId,
|
||||||
|
'spuName': this.dataForm.spuName
|
||||||
|
})
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '操作成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
this.visible = false
|
||||||
|
this.$emit('refreshDataList')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
@ -0,0 +1,175 @@
|
|||||||
|
<template>
|
||||||
|
<div class="mod-config">
|
||||||
|
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()">
|
||||||
|
<el-form-item>
|
||||||
|
<el-input v-model="dataForm.key" placeholder="参数名" clearable></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item>
|
||||||
|
<el-button @click="getDataList()">查询</el-button>
|
||||||
|
<el-button v-if="isAuth('coupon:couponspurelation:save')" type="primary" @click="addOrUpdateHandle()">新增</el-button>
|
||||||
|
<el-button v-if="isAuth('coupon:couponspurelation:delete')" type="danger" @click="deleteHandle()" :disabled="dataListSelections.length <= 0">批量删除</el-button>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<el-table
|
||||||
|
:data="dataList"
|
||||||
|
border
|
||||||
|
v-loading="dataListLoading"
|
||||||
|
@selection-change="selectionChangeHandle"
|
||||||
|
style="width: 100%;">
|
||||||
|
<el-table-column
|
||||||
|
type="selection"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
width="50">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="id"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="id">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="couponId"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="优惠券id">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="spuId"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="spu_id">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
prop="spuName"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
label="spu_name">
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column
|
||||||
|
fixed="right"
|
||||||
|
header-align="center"
|
||||||
|
align="center"
|
||||||
|
width="150"
|
||||||
|
label="操作">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>
|
||||||
|
<el-button type="text" size="small" @click="deleteHandle(scope.row.id)">删除</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<el-pagination
|
||||||
|
@size-change="sizeChangeHandle"
|
||||||
|
@current-change="currentChangeHandle"
|
||||||
|
:current-page="pageIndex"
|
||||||
|
:page-sizes="[10, 20, 50, 100]"
|
||||||
|
:page-size="pageSize"
|
||||||
|
:total="totalPage"
|
||||||
|
layout="total, sizes, prev, pager, next, jumper">
|
||||||
|
</el-pagination>
|
||||||
|
<!-- 弹窗, 新增 / 修改 -->
|
||||||
|
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @refreshDataList="getDataList"></add-or-update>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import AddOrUpdate from './couponspurelation-add-or-update'
|
||||||
|
export default {
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
dataForm: {
|
||||||
|
key: ''
|
||||||
|
},
|
||||||
|
dataList: [],
|
||||||
|
pageIndex: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
totalPage: 0,
|
||||||
|
dataListLoading: false,
|
||||||
|
dataListSelections: [],
|
||||||
|
addOrUpdateVisible: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
components: {
|
||||||
|
AddOrUpdate
|
||||||
|
},
|
||||||
|
activated () {
|
||||||
|
this.getDataList()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 获取数据列表
|
||||||
|
getDataList () {
|
||||||
|
this.dataListLoading = true
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/coupon/couponspurelation/list'),
|
||||||
|
method: 'get',
|
||||||
|
params: this.$http.adornParams({
|
||||||
|
'page': this.pageIndex,
|
||||||
|
'limit': this.pageSize,
|
||||||
|
'key': this.dataForm.key
|
||||||
|
})
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.dataList = data.page.list
|
||||||
|
this.totalPage = data.page.totalCount
|
||||||
|
} else {
|
||||||
|
this.dataList = []
|
||||||
|
this.totalPage = 0
|
||||||
|
}
|
||||||
|
this.dataListLoading = false
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 每页数
|
||||||
|
sizeChangeHandle (val) {
|
||||||
|
this.pageSize = val
|
||||||
|
this.pageIndex = 1
|
||||||
|
this.getDataList()
|
||||||
|
},
|
||||||
|
// 当前页
|
||||||
|
currentChangeHandle (val) {
|
||||||
|
this.pageIndex = val
|
||||||
|
this.getDataList()
|
||||||
|
},
|
||||||
|
// 多选
|
||||||
|
selectionChangeHandle (val) {
|
||||||
|
this.dataListSelections = val
|
||||||
|
},
|
||||||
|
// 新增 / 修改
|
||||||
|
addOrUpdateHandle (id) {
|
||||||
|
this.addOrUpdateVisible = true
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.addOrUpdate.init(id)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
// 删除
|
||||||
|
deleteHandle (id) {
|
||||||
|
var ids = id ? [id] : this.dataListSelections.map(item => {
|
||||||
|
return item.id
|
||||||
|
})
|
||||||
|
this.$confirm(`确定对[id=${ids.join(',')}]进行[${id ? '删除' : '批量删除'}]操作?`, '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
cancelButtonText: '取消',
|
||||||
|
type: 'warning'
|
||||||
|
}).then(() => {
|
||||||
|
this.$http({
|
||||||
|
url: this.$http.adornUrl('/coupon/couponspurelation/delete'),
|
||||||
|
method: 'post',
|
||||||
|
data: this.$http.adornData(ids, false)
|
||||||
|
}).then(({data}) => {
|
||||||
|
if (data && data.code === 0) {
|
||||||
|
this.$message({
|
||||||
|
message: '操作成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500,
|
||||||
|
onClose: () => {
|
||||||
|
this.getDataList()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.error(data.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue