parent
3feb95f41d
commit
50c240e6d4
@ -0,0 +1,22 @@
|
|||||||
|
package com.xjs.mall.coupon;
|
||||||
|
|
||||||
|
import com.ruoyi.common.security.annotation.EnableCustomConfig;
|
||||||
|
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
|
||||||
|
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商城Coupon启动器
|
||||||
|
* @author xiejs
|
||||||
|
* @since 2022-03-15
|
||||||
|
*/
|
||||||
|
@SpringBootApplication
|
||||||
|
@EnableCustomConfig
|
||||||
|
@EnableCustomSwagger2
|
||||||
|
@EnableRyFeignClients
|
||||||
|
public class MallCouponApp {
|
||||||
|
public static void main(String[] args) {
|
||||||
|
SpringApplication.run(MallCouponApp.class, args);
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.CouponEntity;
|
||||||
|
import com.xjs.mall.coupon.service.CouponService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券信息
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/coupon")
|
||||||
|
public class CouponController {
|
||||||
|
@Autowired
|
||||||
|
private CouponService couponService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponEntity coupon = couponService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("coupon", coupon);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody CouponEntity coupon){
|
||||||
|
couponService.save(coupon);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody CouponEntity coupon){
|
||||||
|
couponService.updateById(coupon);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.CouponHistoryEntity;
|
||||||
|
import com.xjs.mall.coupon.service.CouponHistoryService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券领取历史记录
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/couponhistory")
|
||||||
|
public class CouponHistoryController {
|
||||||
|
@Autowired
|
||||||
|
private CouponHistoryService couponHistoryService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponHistoryService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponHistoryEntity couponHistory = couponHistoryService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("couponHistory", couponHistory);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody CouponHistoryEntity couponHistory){
|
||||||
|
couponHistoryService.save(couponHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody CouponHistoryEntity couponHistory){
|
||||||
|
couponHistoryService.updateById(couponHistory);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponHistoryService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
import com.xjs.mall.coupon.service.CouponSpuCategoryRelationService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券分类关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/couponspucategoryrelation")
|
||||||
|
public class CouponSpuCategoryRelationController {
|
||||||
|
@Autowired
|
||||||
|
private CouponSpuCategoryRelationService couponSpuCategoryRelationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponSpuCategoryRelationService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponSpuCategoryRelationEntity couponSpuCategoryRelation = couponSpuCategoryRelationService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("couponSpuCategoryRelation", couponSpuCategoryRelation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody CouponSpuCategoryRelationEntity couponSpuCategoryRelation){
|
||||||
|
couponSpuCategoryRelationService.save(couponSpuCategoryRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody CouponSpuCategoryRelationEntity couponSpuCategoryRelation){
|
||||||
|
couponSpuCategoryRelationService.updateById(couponSpuCategoryRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponSpuCategoryRelationService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
import com.xjs.mall.coupon.service.CouponSpuRelationService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券与产品关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/couponspurelation")
|
||||||
|
public class CouponSpuRelationController {
|
||||||
|
@Autowired
|
||||||
|
private CouponSpuRelationService couponSpuRelationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = couponSpuRelationService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
CouponSpuRelationEntity couponSpuRelation = couponSpuRelationService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("couponSpuRelation", couponSpuRelation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody CouponSpuRelationEntity couponSpuRelation){
|
||||||
|
couponSpuRelationService.save(couponSpuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody CouponSpuRelationEntity couponSpuRelation){
|
||||||
|
couponSpuRelationService.updateById(couponSpuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
couponSpuRelationService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.HomeAdvEntity;
|
||||||
|
import com.xjs.mall.coupon.service.HomeAdvService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首页轮播广告
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/homeadv")
|
||||||
|
public class HomeAdvController {
|
||||||
|
@Autowired
|
||||||
|
private HomeAdvService homeAdvService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = homeAdvService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
HomeAdvEntity homeAdv = homeAdvService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("homeAdv", homeAdv);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody HomeAdvEntity homeAdv){
|
||||||
|
homeAdvService.save(homeAdv);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody HomeAdvEntity homeAdv){
|
||||||
|
homeAdvService.updateById(homeAdv);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
homeAdvService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
import com.xjs.mall.coupon.service.HomeSubjectSpuService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专题商品
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/homesubjectspu")
|
||||||
|
public class HomeSubjectSpuController {
|
||||||
|
@Autowired
|
||||||
|
private HomeSubjectSpuService homeSubjectSpuService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = homeSubjectSpuService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
HomeSubjectSpuEntity homeSubjectSpu = homeSubjectSpuService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("homeSubjectSpu", homeSubjectSpu);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody HomeSubjectSpuEntity homeSubjectSpu){
|
||||||
|
homeSubjectSpuService.save(homeSubjectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody HomeSubjectSpuEntity homeSubjectSpu){
|
||||||
|
homeSubjectSpuService.updateById(homeSubjectSpu);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
homeSubjectSpuService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.MemberPriceEntity;
|
||||||
|
import com.xjs.mall.coupon.service.MemberPriceService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品会员价格
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/memberprice")
|
||||||
|
public class MemberPriceController {
|
||||||
|
@Autowired
|
||||||
|
private MemberPriceService memberPriceService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = memberPriceService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
MemberPriceEntity memberPrice = memberPriceService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("memberPrice", memberPrice);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody MemberPriceEntity memberPrice){
|
||||||
|
memberPriceService.save(memberPrice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody MemberPriceEntity memberPrice){
|
||||||
|
memberPriceService.updateById(memberPrice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
memberPriceService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
import com.xjs.mall.coupon.service.SeckillPromotionService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillpromotion")
|
||||||
|
public class SeckillPromotionController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillPromotionService seckillPromotionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillPromotionService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillPromotionEntity seckillPromotion = seckillPromotionService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillPromotion", seckillPromotion);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody SeckillPromotionEntity seckillPromotion){
|
||||||
|
seckillPromotionService.save(seckillPromotion);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody SeckillPromotionEntity seckillPromotion){
|
||||||
|
seckillPromotionService.updateById(seckillPromotion);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillPromotionService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.SeckillSessionEntity;
|
||||||
|
import com.xjs.mall.coupon.service.SeckillSessionService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动场次
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillsession")
|
||||||
|
public class SeckillSessionController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillSessionService seckillSessionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillSessionService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillSessionEntity seckillSession = seckillSessionService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillSession", seckillSession);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody SeckillSessionEntity seckillSession){
|
||||||
|
seckillSessionService.save(seckillSession);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody SeckillSessionEntity seckillSession){
|
||||||
|
seckillSessionService.updateById(seckillSession);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillSessionService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
import com.xjs.mall.coupon.service.SeckillSkuNoticeService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀商品通知订阅
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillskunotice")
|
||||||
|
public class SeckillSkuNoticeController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillSkuNoticeService seckillSkuNoticeService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillSkuNoticeService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillSkuNoticeEntity seckillSkuNotice = seckillSkuNoticeService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillSkuNotice", seckillSkuNotice);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody SeckillSkuNoticeEntity seckillSkuNotice){
|
||||||
|
seckillSkuNoticeService.save(seckillSkuNotice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody SeckillSkuNoticeEntity seckillSkuNotice){
|
||||||
|
seckillSkuNoticeService.updateById(seckillSkuNotice);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillSkuNoticeService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
import com.xjs.mall.coupon.service.SeckillSkuRelationService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动商品关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/seckillskurelation")
|
||||||
|
public class SeckillSkuRelationController {
|
||||||
|
@Autowired
|
||||||
|
private SeckillSkuRelationService seckillSkuRelationService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = seckillSkuRelationService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SeckillSkuRelationEntity seckillSkuRelation = seckillSkuRelationService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("seckillSkuRelation", seckillSkuRelation);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody SeckillSkuRelationEntity seckillSkuRelation){
|
||||||
|
seckillSkuRelationService.save(seckillSkuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody SeckillSkuRelationEntity seckillSkuRelation){
|
||||||
|
seckillSkuRelationService.updateById(seckillSkuRelation);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
seckillSkuRelationService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
import com.xjs.mall.coupon.service.SkuFullReductionService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品满减信息
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/skufullreduction")
|
||||||
|
public class SkuFullReductionController {
|
||||||
|
@Autowired
|
||||||
|
private SkuFullReductionService skuFullReductionService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = skuFullReductionService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SkuFullReductionEntity skuFullReduction = skuFullReductionService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("skuFullReduction", skuFullReduction);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody SkuFullReductionEntity skuFullReduction){
|
||||||
|
skuFullReductionService.save(skuFullReduction);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody SkuFullReductionEntity skuFullReduction){
|
||||||
|
skuFullReductionService.updateById(skuFullReduction);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
skuFullReductionService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.SkuLadderEntity;
|
||||||
|
import com.xjs.mall.coupon.service.SkuLadderService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品阶梯价格
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/skuladder")
|
||||||
|
public class SkuLadderController {
|
||||||
|
@Autowired
|
||||||
|
private SkuLadderService skuLadderService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = skuLadderService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SkuLadderEntity skuLadder = skuLadderService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("skuLadder", skuLadder);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody SkuLadderEntity skuLadder){
|
||||||
|
skuLadderService.save(skuLadder);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody SkuLadderEntity skuLadder){
|
||||||
|
skuLadderService.updateById(skuLadder);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
skuLadderService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,84 @@
|
|||||||
|
package com.xjs.mall.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.xjs.mall.coupon.entity.SpuBoundsEntity;
|
||||||
|
import com.xjs.mall.coupon.service.SpuBoundsService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.R;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品spu积分设置
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("coupon/spubounds")
|
||||||
|
public class SpuBoundsController {
|
||||||
|
@Autowired
|
||||||
|
private SpuBoundsService spuBoundsService;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 列表
|
||||||
|
*/
|
||||||
|
@RequestMapping("/list")
|
||||||
|
public R list(@RequestParam Map<String, Object> params){
|
||||||
|
PageUtils page = spuBoundsService.queryPage(params);
|
||||||
|
|
||||||
|
return R.ok().put("page", page);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 信息
|
||||||
|
*/
|
||||||
|
@RequestMapping("/info/{id}")
|
||||||
|
public R info(@PathVariable("id") Long id){
|
||||||
|
SpuBoundsEntity spuBounds = spuBoundsService.getById(id);
|
||||||
|
|
||||||
|
return R.ok().put("spuBounds", spuBounds);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 保存
|
||||||
|
*/
|
||||||
|
@RequestMapping("/save")
|
||||||
|
public R save(@RequestBody SpuBoundsEntity spuBounds){
|
||||||
|
spuBoundsService.save(spuBounds);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 修改
|
||||||
|
*/
|
||||||
|
@RequestMapping("/update")
|
||||||
|
public R update(@RequestBody SpuBoundsEntity spuBounds){
|
||||||
|
spuBoundsService.updateById(spuBounds);
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 删除
|
||||||
|
*/
|
||||||
|
@RequestMapping("/delete")
|
||||||
|
public R delete(@RequestBody Long[] ids){
|
||||||
|
spuBoundsService.removeByIds(Arrays.asList(ids));
|
||||||
|
|
||||||
|
return R.ok();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.CouponEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券信息
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponDao extends BaseMapper<CouponEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.CouponHistoryEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券领取历史记录
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponHistoryDao extends BaseMapper<CouponHistoryEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券分类关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponSpuCategoryRelationDao extends BaseMapper<CouponSpuCategoryRelationEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券与产品关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponSpuRelationDao extends BaseMapper<CouponSpuRelationEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.HomeAdvEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首页轮播广告
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface HomeAdvDao extends BaseMapper<HomeAdvEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专题商品
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface HomeSubjectSpuDao extends BaseMapper<HomeSubjectSpuEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.MemberPriceEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品会员价格
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface MemberPriceDao extends BaseMapper<MemberPriceEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillPromotionDao extends BaseMapper<SeckillPromotionEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSessionEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动场次
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillSessionDao extends BaseMapper<SeckillSessionEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀商品通知订阅
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillSkuNoticeDao extends BaseMapper<SeckillSkuNoticeEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动商品关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillSkuRelationDao extends BaseMapper<SeckillSkuRelationEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品满减信息
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SkuFullReductionDao extends BaseMapper<SkuFullReductionEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.SkuLadderEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品阶梯价格
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SkuLadderDao extends BaseMapper<SkuLadderEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,16 @@
|
|||||||
|
package com.xjs.mall.coupon.dao;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.entity.SpuBoundsEntity;
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品spu积分设置
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SpuBoundsDao extends BaseMapper<SpuBoundsEntity> {
|
||||||
|
|
||||||
|
}
|
@ -0,0 +1,40 @@
|
|||||||
|
package com.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.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 xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
@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.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponHistoryEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券领取历史记录
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponHistoryService extends IService<CouponHistoryEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券信息
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponService extends IService<CouponEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券分类关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponSpuCategoryRelationService extends IService<CouponSpuCategoryRelationEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 优惠券与产品关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface CouponSpuRelationService extends IService<CouponSpuRelationEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.HomeAdvEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 首页轮播广告
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface HomeAdvService extends IService<HomeAdvEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 专题商品
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface HomeSubjectSpuService extends IService<HomeSubjectSpuEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.MemberPriceEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品会员价格
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface MemberPriceService extends IService<MemberPriceEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillPromotionService extends IService<SeckillPromotionEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSessionEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动场次
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillSessionService extends IService<SeckillSessionEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀商品通知订阅
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillSkuNoticeService extends IService<SeckillSkuNoticeEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 秒杀活动商品关联
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SeckillSkuRelationService extends IService<SeckillSkuRelationEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品满减信息
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SkuFullReductionService extends IService<SkuFullReductionEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.SkuLadderEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品阶梯价格
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SkuLadderService extends IService<SkuLadderEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,20 @@
|
|||||||
|
package com.xjs.mall.coupon.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.mall.coupon.entity.SpuBoundsEntity;
|
||||||
|
|
||||||
|
import java.util.Map;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 商品spu积分设置
|
||||||
|
*
|
||||||
|
* @author xiejs
|
||||||
|
* @email 1294405880@qq.com
|
||||||
|
* @date 2022-03-15 10:25:21
|
||||||
|
*/
|
||||||
|
public interface SpuBoundsService extends IService<SpuBoundsEntity> {
|
||||||
|
|
||||||
|
PageUtils queryPage(Map<String, Object> params);
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,29 @@
|
|||||||
|
package com.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.CouponHistoryDao;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponHistoryEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.CouponDao;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.CouponSpuCategoryRelationDao;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponSpuCategoryRelationEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.CouponSpuRelationDao;
|
||||||
|
import com.xjs.mall.coupon.entity.CouponSpuRelationEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.HomeAdvDao;
|
||||||
|
import com.xjs.mall.coupon.entity.HomeAdvEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.HomeSubjectDao;
|
||||||
|
import com.xjs.mall.coupon.entity.HomeSubjectEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.HomeSubjectSpuDao;
|
||||||
|
import com.xjs.mall.coupon.entity.HomeSubjectSpuEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.MemberPriceDao;
|
||||||
|
import com.xjs.mall.coupon.entity.MemberPriceEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.SeckillPromotionDao;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillPromotionEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.SeckillSessionDao;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSessionEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.SeckillSkuNoticeDao;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSkuNoticeEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.SeckillSkuRelationDao;
|
||||||
|
import com.xjs.mall.coupon.entity.SeckillSkuRelationEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.SkuFullReductionDao;
|
||||||
|
import com.xjs.mall.coupon.entity.SkuFullReductionEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.SkuLadderDao;
|
||||||
|
import com.xjs.mall.coupon.entity.SkuLadderEntity;
|
||||||
|
import com.xjs.mall.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.xjs.mall.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.xjs.utils.PageUtils;
|
||||||
|
import com.xjs.utils.Query;
|
||||||
|
|
||||||
|
import com.xjs.mall.coupon.dao.SpuBoundsDao;
|
||||||
|
import com.xjs.mall.coupon.entity.SpuBoundsEntity;
|
||||||
|
import com.xjs.mall.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,29 @@
|
|||||||
|
# Tomcat
|
||||||
|
server:
|
||||||
|
port: 9982
|
||||||
|
|
||||||
|
# Spring
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
# 应用名称
|
||||||
|
name: xjs-mall-coupon
|
||||||
|
profiles:
|
||||||
|
# 环境配置
|
||||||
|
active: dev
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
# 服务注册地址
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
config:
|
||||||
|
# 配置中心地址
|
||||||
|
server-addr: 127.0.0.1:8848
|
||||||
|
# 配置文件格式
|
||||||
|
file-extension: yml
|
||||||
|
# 共享配置
|
||||||
|
shared-configs:
|
||||||
|
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||||
|
#配置组
|
||||||
|
group: xjs
|
||||||
|
#命名空间
|
||||||
|
namespace: xjs-666
|
@ -0,0 +1,81 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<configuration scan="true" scanPeriod="60 seconds" debug="false">
|
||||||
|
<!-- 日志存放路径 -->
|
||||||
|
<property name="log.path" value="logs/xjs-mall/coupon"/>
|
||||||
|
<!-- 日志输出格式 -->
|
||||||
|
<property name="log.pattern" value="%d{HH:mm:ss.SSS} [%thread] %-5level %logger{20} - [%method,%line] - %msg%n" />
|
||||||
|
|
||||||
|
<!-- 控制台输出 -->
|
||||||
|
<appender name="console" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<!-- 系统日志输出 -->
|
||||||
|
<appender name="file_info" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<file>${log.path}/info.log</file>
|
||||||
|
<!-- 循环政策:基于时间创建日志文件 -->
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<!-- 日志文件名格式 -->
|
||||||
|
<fileNamePattern>${log.path}/info.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
<!-- 日志最大的历史 60天 -->
|
||||||
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||||
|
<!-- 过滤的级别 -->
|
||||||
|
<level>INFO</level>
|
||||||
|
<!-- 匹配时的操作:接收(记录) -->
|
||||||
|
<onMatch>ACCEPT</onMatch>
|
||||||
|
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||||
|
<onMismatch>DENY</onMismatch>
|
||||||
|
</filter>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<appender name="file_error" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||||
|
<file>${log.path}/error.log</file>
|
||||||
|
<!-- 循环政策:基于时间创建日志文件 -->
|
||||||
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
||||||
|
<!-- 日志文件名格式 -->
|
||||||
|
<fileNamePattern>${log.path}/error.%d{yyyy-MM-dd}.log</fileNamePattern>
|
||||||
|
<!-- 日志最大的历史 60天 -->
|
||||||
|
<maxHistory>60</maxHistory>
|
||||||
|
</rollingPolicy>
|
||||||
|
<encoder>
|
||||||
|
<pattern>${log.pattern}</pattern>
|
||||||
|
</encoder>
|
||||||
|
<filter class="ch.qos.logback.classic.filter.LevelFilter">
|
||||||
|
<!-- 过滤的级别 -->
|
||||||
|
<level>ERROR</level>
|
||||||
|
<!-- 匹配时的操作:接收(记录) -->
|
||||||
|
<onMatch>ACCEPT</onMatch>
|
||||||
|
<!-- 不匹配时的操作:拒绝(不记录) -->
|
||||||
|
<onMismatch>DENY</onMismatch>
|
||||||
|
</filter>
|
||||||
|
</appender>
|
||||||
|
|
||||||
|
<!-- 系统模块日志级别控制 -->
|
||||||
|
<logger name="com.xjs" level="info" />
|
||||||
|
<!--打印feign DEBUG日志-->
|
||||||
|
<logger name="com.xjs.common.client" level="debug"/>
|
||||||
|
<!-- Spring日志级别控制 -->
|
||||||
|
<logger name="org.springframework" level="warn" />
|
||||||
|
|
||||||
|
<!-- 打开 Bean Searcher 的 SQL 日志 -->
|
||||||
|
<logger name="com.ejlchina.searcher.implement.DefaultSqlExecutor" level="DEBUG" additivity="false">
|
||||||
|
<appender-ref ref="console" />
|
||||||
|
</logger>
|
||||||
|
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="console" />
|
||||||
|
</root>
|
||||||
|
|
||||||
|
<!--系统操作日志-->
|
||||||
|
<root level="info">
|
||||||
|
<appender-ref ref="file_info" />
|
||||||
|
<appender-ref ref="file_error" />
|
||||||
|
</root>
|
||||||
|
</configuration>
|
@ -0,0 +1,31 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.CouponDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.CouponEntity" id="couponMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponType" column="coupon_type"/>
|
||||||
|
<result property="couponImg" column="coupon_img"/>
|
||||||
|
<result property="couponName" column="coupon_name"/>
|
||||||
|
<result property="num" column="num"/>
|
||||||
|
<result property="amount" column="amount"/>
|
||||||
|
<result property="perLimit" column="per_limit"/>
|
||||||
|
<result property="minPoint" column="min_point"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="useType" column="use_type"/>
|
||||||
|
<result property="note" column="note"/>
|
||||||
|
<result property="publishCount" column="publish_count"/>
|
||||||
|
<result property="useCount" column="use_count"/>
|
||||||
|
<result property="receiveCount" column="receive_count"/>
|
||||||
|
<result property="enableStartTime" column="enable_start_time"/>
|
||||||
|
<result property="enableEndTime" column="enable_end_time"/>
|
||||||
|
<result property="code" column="code"/>
|
||||||
|
<result property="memberLevel" column="member_level"/>
|
||||||
|
<result property="publish" column="publish"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,21 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.CouponHistoryDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.CouponHistoryEntity" id="couponHistoryMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponId" column="coupon_id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="memberNickName" column="member_nick_name"/>
|
||||||
|
<result property="getType" column="get_type"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="useType" column="use_type"/>
|
||||||
|
<result property="useTime" column="use_time"/>
|
||||||
|
<result property="orderId" column="order_id"/>
|
||||||
|
<result property="orderSn" column="order_sn"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.CouponSpuCategoryRelationDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.CouponSpuCategoryRelationEntity" id="couponSpuCategoryRelationMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponId" column="coupon_id"/>
|
||||||
|
<result property="categoryId" column="category_id"/>
|
||||||
|
<result property="categoryName" column="category_name"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,15 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.CouponSpuRelationDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.CouponSpuRelationEntity" id="couponSpuRelationMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="couponId" column="coupon_id"/>
|
||||||
|
<result property="spuId" column="spu_id"/>
|
||||||
|
<result property="spuName" column="spu_name"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.HomeAdvDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.HomeAdvEntity" id="homeAdvMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="pic" column="pic"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="clickCount" column="click_count"/>
|
||||||
|
<result property="url" column="url"/>
|
||||||
|
<result property="note" column="note"/>
|
||||||
|
<result property="sort" column="sort"/>
|
||||||
|
<result property="publisherId" column="publisher_id"/>
|
||||||
|
<result property="authId" column="auth_id"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.HomeSubjectDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.HomeSubjectEntity" id="homeSubjectMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="title" column="title"/>
|
||||||
|
<result property="subTitle" column="sub_title"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="url" column="url"/>
|
||||||
|
<result property="sort" column="sort"/>
|
||||||
|
<result property="img" column="img"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.HomeSubjectSpuDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.HomeSubjectSpuEntity" id="homeSubjectSpuMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="subjectId" column="subject_id"/>
|
||||||
|
<result property="spuId" column="spu_id"/>
|
||||||
|
<result property="sort" column="sort"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.MemberPriceDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.MemberPriceEntity" id="memberPriceMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="memberLevelId" column="member_level_id"/>
|
||||||
|
<result property="memberLevelName" column="member_level_name"/>
|
||||||
|
<result property="memberPrice" column="member_price"/>
|
||||||
|
<result property="addOther" column="add_other"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.SeckillPromotionDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.SeckillPromotionEntity" id="seckillPromotionMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="title" column="title"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
<result property="userId" column="user_id"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.SeckillSessionDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.SeckillSessionEntity" id="seckillSessionMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="name" column="name"/>
|
||||||
|
<result property="startTime" column="start_time"/>
|
||||||
|
<result property="endTime" column="end_time"/>
|
||||||
|
<result property="status" column="status"/>
|
||||||
|
<result property="createTime" column="create_time"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,18 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.SeckillSkuNoticeDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.SeckillSkuNoticeEntity" id="seckillSkuNoticeMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="memberId" column="member_id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="sessionId" column="session_id"/>
|
||||||
|
<result property="subcribeTime" column="subcribe_time"/>
|
||||||
|
<result property="sendTime" column="send_time"/>
|
||||||
|
<result property="noticeType" column="notice_type"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.SeckillSkuRelationDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.SeckillSkuRelationEntity" id="seckillSkuRelationMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="promotionId" column="promotion_id"/>
|
||||||
|
<result property="promotionSessionId" column="promotion_session_id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="seckillPrice" column="seckill_price"/>
|
||||||
|
<result property="seckillCount" column="seckill_count"/>
|
||||||
|
<result property="seckillLimit" column="seckill_limit"/>
|
||||||
|
<result property="seckillSort" column="seckill_sort"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.SkuFullReductionDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.SkuFullReductionEntity" id="skuFullReductionMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="fullPrice" column="full_price"/>
|
||||||
|
<result property="reducePrice" column="reduce_price"/>
|
||||||
|
<result property="addOther" column="add_other"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,17 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.SkuLadderDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.SkuLadderEntity" id="skuLadderMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="skuId" column="sku_id"/>
|
||||||
|
<result property="fullCount" column="full_count"/>
|
||||||
|
<result property="discount" column="discount"/>
|
||||||
|
<result property="price" column="price"/>
|
||||||
|
<result property="addOther" column="add_other"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
|
|
||||||
|
<mapper namespace="com.xjs.mall.coupon.dao.SpuBoundsDao">
|
||||||
|
|
||||||
|
<!-- 可根据自己的需求,是否要使用 -->
|
||||||
|
<resultMap type="com.xjs.mall.coupon.entity.SpuBoundsEntity" id="spuBoundsMap">
|
||||||
|
<result property="id" column="id"/>
|
||||||
|
<result property="spuId" column="spu_id"/>
|
||||||
|
<result property="growBounds" column="grow_bounds"/>
|
||||||
|
<result property="buyBounds" column="buy_bounds"/>
|
||||||
|
<result property="work" column="work"/>
|
||||||
|
</resultMap>
|
||||||
|
|
||||||
|
|
||||||
|
</mapper>
|
@ -0,0 +1,16 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
This is the JRebel configuration file. It maps the running application to your IDE workspace, enabling JRebel reloading for this project.
|
||||||
|
Refer to https://manuals.jrebel.com/jrebel/standalone/config.html for more information.
|
||||||
|
-->
|
||||||
|
<application generated-by="intellij" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://update.zeroturnaround.com/jrebel/rebel-2_3.xsd">
|
||||||
|
|
||||||
|
<id>mall-coupon</id>
|
||||||
|
|
||||||
|
<classpath>
|
||||||
|
<dir name="D:/Dev/IdeaPerject/GitHub/Cloud/xjs-business/xjs-project-mall/mall-coupon/target/classes">
|
||||||
|
</dir>
|
||||||
|
</classpath>
|
||||||
|
|
||||||
|
</application>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue