Compare commits
5 Commits
Author | SHA1 | Date |
---|---|---|
|
58d1cc08d7 | 3 weeks ago |
|
05054cef87 | 4 weeks ago |
|
eb38377dfb | 1 month ago |
|
427dfc49c0 | 1 month ago |
|
0d9157daac | 1 month ago |
@ -0,0 +1,2 @@
|
|||||||
|
/mvnw text eol=lf
|
||||||
|
*.cmd text eol=crlf
|
@ -0,0 +1,76 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>2.7.1</version>
|
||||||
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
|
</parent>
|
||||||
|
<groupId>com.bookstore.bookmall</groupId>
|
||||||
|
<artifactId>book-coupon</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
<name>book-coupon</name>
|
||||||
|
<description>Demo project for Spring Boot</description>
|
||||||
|
<url/>
|
||||||
|
<licenses>
|
||||||
|
<license/>
|
||||||
|
</licenses>
|
||||||
|
<developers>
|
||||||
|
<developer/>
|
||||||
|
</developers>
|
||||||
|
<scm>
|
||||||
|
<connection/>
|
||||||
|
<developerConnection/>
|
||||||
|
<tag/>
|
||||||
|
<url/>
|
||||||
|
</scm>
|
||||||
|
<properties>
|
||||||
|
<java.version>1.8</java.version>
|
||||||
|
<spring-cloud.version>2021.0.8</spring-cloud.version>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.bookstore.bookmall</groupId>
|
||||||
|
<artifactId>mall-common</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-dependencies</artifactId>
|
||||||
|
<version>${spring-cloud.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
@ -0,0 +1,107 @@
|
|||||||
|
package com.bookstore.bookmall.coupon.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import com.alibaba.nacos.shaded.org.checkerframework.checker.units.qual.C;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
|
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;
|
||||||
|
|
||||||
|
@Value("${coupon.user.name}")
|
||||||
|
String name;
|
||||||
|
@Value("${coupon.user.age}")
|
||||||
|
Integer age;
|
||||||
|
|
||||||
|
@RequestMapping("/config")
|
||||||
|
public R test() {
|
||||||
|
return R.ok().put("name", name).put("age", age);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@RequestMapping("/member/list")
|
||||||
|
public R membercoupons() {
|
||||||
|
CouponEntity couponEntity = new CouponEntity();
|
||||||
|
couponEntity.setCouponName("满100减10");
|
||||||
|
return R.ok().put("coupons", Arrays.asList(couponEntity));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@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,4 @@
|
|||||||
|
spring.application.name=book-coupon
|
||||||
|
|
||||||
|
coupon.user.name = zhangsna
|
||||||
|
coupon.user.age = 18
|
@ -0,0 +1,23 @@
|
|||||||
|
|
||||||
|
# Nacos 配置中心,地址
|
||||||
|
spring.cloud.nacos.config.server-addr=127.0.0.1:8848
|
||||||
|
#查询组
|
||||||
|
#spring.config.import=nacos:book-coupon.properties?group=DEFAULT_GROUP
|
||||||
|
#设置命名空间
|
||||||
|
spring.cloud.nacos.config.namespace=23c53425-ed13-49a2-8cb1-4082e9531b1a
|
||||||
|
|
||||||
|
spring.cloud.nacos.config.extension-configs[0].data-id=datasource.yml
|
||||||
|
spring.cloud.nacos.config.extension-configs[0].group=dev
|
||||||
|
spring.cloud.nacos.config.extension-configs[0].refresh=true
|
||||||
|
|
||||||
|
spring.cloud.nacos.config.extension-configs[1].data-id=mybatis.yml
|
||||||
|
spring.cloud.nacos.config.extension-configs[1].group=dev
|
||||||
|
spring.cloud.nacos.config.extension-configs[1].refresh=true
|
||||||
|
|
||||||
|
spring.cloud.nacos.config.extension-configs[2].data-id=other.yml
|
||||||
|
spring.cloud.nacos.config.extension-configs[2].group=dev
|
||||||
|
spring.cloud.nacos.config.extension-configs[2].refresh=true
|
||||||
|
|
||||||
|
|
||||||
|
# 应用名称
|
||||||
|
spring.application.name=book-coupon
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.bookstore.bookmall.coupon;
|
||||||
|
|
||||||
|
import org.junit.jupiter.api.Test;
|
||||||
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
|
||||||
|
@SpringBootTest
|
||||||
|
class BookCouponApplicationTests {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void contextLoads() {
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,2 @@
|
|||||||
|
/mvnw text eol=lf
|
||||||
|
*.cmd text eol=crlf
|
@ -0,0 +1,81 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>2.7.1</version>
|
||||||
|
<relativePath/> <!-- lookup parent from repository -->
|
||||||
|
</parent>
|
||||||
|
<groupId>com.bookstore.bookmall</groupId>
|
||||||
|
<artifactId>book-member</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
<name>book-member</name>
|
||||||
|
<description>Demo project for Spring Boot</description>
|
||||||
|
<url/>
|
||||||
|
<licenses>
|
||||||
|
<license/>
|
||||||
|
</licenses>
|
||||||
|
<developers>
|
||||||
|
<developer/>
|
||||||
|
</developers>
|
||||||
|
<scm>
|
||||||
|
<connection/>
|
||||||
|
<developerConnection/>
|
||||||
|
<tag/>
|
||||||
|
<url/>
|
||||||
|
</scm>
|
||||||
|
<properties>
|
||||||
|
<java.version>1.8</java.version>
|
||||||
|
<!-- cloud需要与java版本匹配不然会报错-->
|
||||||
|
<spring-cloud.version>2021.0.8</spring-cloud.version>
|
||||||
|
</properties>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>com.bookstore.bookmall</groupId>
|
||||||
|
<artifactId>mall-common</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-openfeign</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-starter-loadbalancer</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-test</artifactId>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.cloud</groupId>
|
||||||
|
<artifactId>spring-cloud-dependencies</artifactId>
|
||||||
|
<version>${spring-cloud.version}</version>
|
||||||
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</dependencyManagement>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
|
||||||
|
import org.springframework.cloud.openfeign.EnableFeignClients;
|
||||||
|
|
||||||
|
@EnableFeignClients(basePackages = "com.bookstore.bookmall.member.feign")
|
||||||
|
@EnableDiscoveryClient
|
||||||
|
@SpringBootApplication
|
||||||
|
public class BookMemberApplication {
|
||||||
|
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(BookMemberApplication.class, args);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.GrowthChangeHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.GrowthChangeHistoryService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成长值变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/growthchangehistory")
|
||||||
|
public class GrowthChangeHistoryController {
|
||||||
|
@Autowired
|
||||||
|
private GrowthChangeHistoryService growthChangeHistoryService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = growthChangeHistoryService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
GrowthChangeHistoryEntity growthChangeHistory = growthChangeHistoryService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("growthChangeHistory", growthChangeHistory);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:save")
|
||||||
|
public R save(@RequestBody GrowthChangeHistoryEntity growthChangeHistory){
|
||||||
|
growthChangeHistoryService.save(growthChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:update")
|
||||||
|
public R update(@RequestBody GrowthChangeHistoryEntity growthChangeHistory){
|
||||||
|
growthChangeHistoryService.updateById(growthChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:growthchangehistory:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
growthChangeHistoryService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.IntegrationChangeHistoryEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.IntegrationChangeHistoryService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 积分变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/integrationchangehistory")
|
||||||
|
public class IntegrationChangeHistoryController {
|
||||||
|
@Autowired
|
||||||
|
private IntegrationChangeHistoryService integrationChangeHistoryService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = integrationChangeHistoryService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
IntegrationChangeHistoryEntity integrationChangeHistory = integrationChangeHistoryService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("integrationChangeHistory", integrationChangeHistory);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:save")
|
||||||
|
public R save(@RequestBody IntegrationChangeHistoryEntity integrationChangeHistory){
|
||||||
|
integrationChangeHistoryService.save(integrationChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:update")
|
||||||
|
public R update(@RequestBody IntegrationChangeHistoryEntity integrationChangeHistory){
|
||||||
|
integrationChangeHistoryService.updateById(integrationChangeHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:integrationchangehistory:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
integrationChangeHistoryService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.MemberCollectSpuEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberCollectSpuService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/membercollectspu")
|
||||||
|
public class MemberCollectSpuController {
|
||||||
|
@Autowired
|
||||||
|
private MemberCollectSpuService memberCollectSpuService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberCollectSpuService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberCollectSpuEntity memberCollectSpu = memberCollectSpuService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberCollectSpu", memberCollectSpu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:save")
|
||||||
|
public R save(@RequestBody MemberCollectSpuEntity memberCollectSpu){
|
||||||
|
memberCollectSpuService.save(memberCollectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:update")
|
||||||
|
public R update(@RequestBody MemberCollectSpuEntity memberCollectSpu){
|
||||||
|
memberCollectSpuService.updateById(memberCollectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:membercollectspu:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberCollectSpuService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.MemberCollectSubjectEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberCollectSubjectService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的专题活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/membercollectsubject")
|
||||||
|
public class MemberCollectSubjectController {
|
||||||
|
@Autowired
|
||||||
|
private MemberCollectSubjectService memberCollectSubjectService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberCollectSubjectService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberCollectSubjectEntity memberCollectSubject = memberCollectSubjectService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberCollectSubject", memberCollectSubject);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:save")
|
||||||
|
public R save(@RequestBody MemberCollectSubjectEntity memberCollectSubject){
|
||||||
|
memberCollectSubjectService.save(memberCollectSubject);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:update")
|
||||||
|
public R update(@RequestBody MemberCollectSubjectEntity memberCollectSubject){
|
||||||
|
memberCollectSubjectService.updateById(memberCollectSubject);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:membercollectsubject:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberCollectSubjectService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,103 @@
|
|||||||
|
package com.bookstore.bookmall.member.controller;
|
||||||
|
|
||||||
|
import java.util.Arrays;
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.feign.CouponFeignService;
|
||||||
|
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.member.entity.MemberEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/member")
|
||||||
|
public class MemberController {
|
||||||
|
@Autowired
|
||||||
|
private MemberService memberService;
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
CouponFeignService couponFeignService;
|
||||||
|
|
||||||
|
@RequestMapping("/coupon")
|
||||||
|
public R test() {
|
||||||
|
MemberEntity memberEntity = new MemberEntity();
|
||||||
|
memberEntity.setNickname("zhangsan");
|
||||||
|
|
||||||
|
R membercoupons = couponFeignService.membercoupons();
|
||||||
|
return R.ok().put("member", memberEntity).put("coupons", membercoupons.get("coupons"));
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:member:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:member:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberEntity member = memberService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("member", member);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:member:save")
|
||||||
|
public R save(@RequestBody MemberEntity member){
|
||||||
|
memberService.save(member);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:member:update")
|
||||||
|
public R update(@RequestBody MemberEntity member){
|
||||||
|
memberService.updateById(member);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:member:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.MemberLevelEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberLevelService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员等级
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberlevel")
|
||||||
|
public class MemberLevelController {
|
||||||
|
@Autowired
|
||||||
|
private MemberLevelService memberLevelService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberlevel:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberLevelService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberlevel:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberLevelEntity memberLevel = memberLevelService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberLevel", memberLevel);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberlevel:save")
|
||||||
|
public R save(@RequestBody MemberLevelEntity memberLevel){
|
||||||
|
memberLevelService.save(memberLevel);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberlevel:update")
|
||||||
|
public R update(@RequestBody MemberLevelEntity memberLevel){
|
||||||
|
memberLevelService.updateById(memberLevel);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberlevel:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberLevelService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.MemberLoginLogEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberLoginLogService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员登录记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberloginlog")
|
||||||
|
public class MemberLoginLogController {
|
||||||
|
@Autowired
|
||||||
|
private MemberLoginLogService memberLoginLogService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberLoginLogService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberLoginLogEntity memberLoginLog = memberLoginLogService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberLoginLog", memberLoginLog);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:save")
|
||||||
|
public R save(@RequestBody MemberLoginLogEntity memberLoginLog){
|
||||||
|
memberLoginLogService.save(memberLoginLog);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:update")
|
||||||
|
public R update(@RequestBody MemberLoginLogEntity memberLoginLog){
|
||||||
|
memberLoginLogService.updateById(memberLoginLog);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberloginlog:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberLoginLogService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.MemberReceiveAddressEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberReceiveAddressService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收货地址
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberreceiveaddress")
|
||||||
|
public class MemberReceiveAddressController {
|
||||||
|
@Autowired
|
||||||
|
private MemberReceiveAddressService memberReceiveAddressService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberReceiveAddressService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberReceiveAddressEntity memberReceiveAddress = memberReceiveAddressService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberReceiveAddress", memberReceiveAddress);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:save")
|
||||||
|
public R save(@RequestBody MemberReceiveAddressEntity memberReceiveAddress){
|
||||||
|
memberReceiveAddressService.save(memberReceiveAddress);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:update")
|
||||||
|
public R update(@RequestBody MemberReceiveAddressEntity memberReceiveAddress){
|
||||||
|
memberReceiveAddressService.updateById(memberReceiveAddress);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberreceiveaddress:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberReceiveAddressService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,90 @@
|
|||||||
|
package com.bookstore.bookmall.member.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.member.entity.MemberStatisticsInfoEntity;
|
||||||
|
import com.bookstore.bookmall.member.service.MemberStatisticsInfoService;
|
||||||
|
import com.bookstore.common.utils.PageUtils;
|
||||||
|
import com.bookstore.common.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员统计信息
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("member/memberstatisticsinfo")
|
||||||
|
public class MemberStatisticsInfoController {
|
||||||
|
@Autowired
|
||||||
|
private MemberStatisticsInfoService memberStatisticsInfoService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberStatisticsInfoService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:info")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberStatisticsInfoEntity memberStatisticsInfo = memberStatisticsInfoService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberStatisticsInfo", memberStatisticsInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:save")
|
||||||
|
public R save(@RequestBody MemberStatisticsInfoEntity memberStatisticsInfo){
|
||||||
|
memberStatisticsInfoService.save(memberStatisticsInfo);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:update")
|
||||||
|
public R update(@RequestBody MemberStatisticsInfoEntity memberStatisticsInfo){
|
||||||
|
memberStatisticsInfoService.updateById(memberStatisticsInfo);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
//@RequiresPermissions("member:memberstatisticsinfo:delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberStatisticsInfoService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.GrowthChangeHistoryEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 成长值变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface GrowthChangeHistoryDao extends BaseMapper<GrowthChangeHistoryEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.IntegrationChangeHistoryEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 积分变化历史记录
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface IntegrationChangeHistoryDao extends BaseMapper<IntegrationChangeHistoryEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSpuEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的商品
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberCollectSpuDao extends BaseMapper<MemberCollectSpuEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberCollectSubjectEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员收藏的专题活动
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberCollectSubjectDao extends BaseMapper<MemberCollectSubjectEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,17 @@
|
|||||||
|
package com.bookstore.bookmall.member.dao;
|
||||||
|
|
||||||
|
import com.bookstore.bookmall.member.entity.MemberEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 会员
|
||||||
|
*
|
||||||
|
* @author dy
|
||||||
|
* @email 2073699128@qq.com
|
||||||
|
* @date 2025-07-10 23:12:48
|
||||||
|
*/
|
||||||
|
@Mapper
|
||||||
|
public interface MemberDao extends BaseMapper<MemberEntity> {
|
||||||
|
|
||||||
|
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue