remove unused code
This commit is contained in:
@@ -1,24 +1,15 @@
|
||||
package com.peanut.modules.book.controller;
|
||||
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.book.entity.BuyOrderDetailEntity;
|
||||
import com.peanut.modules.book.service.BuyOrderDetailService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Map;
|
||||
|
||||
import com.peanut.modules.book.entity.BuyOrderEntity;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
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.peanut.modules.book.entity.BuyOrderDetailEntity;
|
||||
import com.peanut.modules.book.service.BuyOrderDetailService;
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 商品订单详情表
|
||||
*
|
||||
@@ -32,32 +23,27 @@ public class BuyOrderDetailController {
|
||||
@Autowired
|
||||
private BuyOrderDetailService buyOrderDetailService;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
// @RequiresPermissions("book:buyorderdetail:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
public R list(@RequestParam Map<String, Object> params) {
|
||||
PageUtils page = buyOrderDetailService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询已购买书籍
|
||||
* 查询已购买书籍
|
||||
*
|
||||
* @param params
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/querybuy")
|
||||
public R querybuy(@RequestParam Map<String, Object> params){
|
||||
public R querybuy(@RequestParam Map<String, Object> params) {
|
||||
PageUtils page = buyOrderDetailService.querybuy(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 去重查询可打印面单
|
||||
*
|
||||
@@ -65,10 +51,8 @@ public class BuyOrderDetailController {
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/querySheetPage")
|
||||
public R querySheetPage(@RequestParam Map<String, Object> params){
|
||||
|
||||
public R querySheetPage(@RequestParam Map<String, Object> params) {
|
||||
PageUtils page = buyOrderDetailService.querySheet(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
@@ -76,9 +60,8 @@ public class BuyOrderDetailController {
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{allOrderId}")
|
||||
public R info(@PathVariable("allOrderId") Long allOrderId){
|
||||
BuyOrderDetailEntity buyOrderDetail = buyOrderDetailService.getById(allOrderId);
|
||||
|
||||
public R info(@PathVariable("allOrderId") Long allOrderId) {
|
||||
BuyOrderDetailEntity buyOrderDetail = buyOrderDetailService.getById(allOrderId);
|
||||
return R.ok().put("buyOrderDetail", buyOrderDetail);
|
||||
}
|
||||
|
||||
@@ -86,10 +69,8 @@ public class BuyOrderDetailController {
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
// @RequiresPermissions("book:buyorderdetail:save")
|
||||
public R save(@RequestBody BuyOrderDetailEntity buyOrderDetail){
|
||||
buyOrderDetailService.save(buyOrderDetail);
|
||||
|
||||
public R save(@RequestBody BuyOrderDetailEntity buyOrderDetail) {
|
||||
buyOrderDetailService.save(buyOrderDetail);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -97,10 +78,8 @@ public class BuyOrderDetailController {
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
// @RequiresPermissions("book:buyorderdetail:update")
|
||||
public R update(@RequestBody BuyOrderDetailEntity buyOrderDetail){
|
||||
buyOrderDetailService.updateById(buyOrderDetail);
|
||||
|
||||
public R update(@RequestBody BuyOrderDetailEntity buyOrderDetail) {
|
||||
buyOrderDetailService.updateById(buyOrderDetail);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -108,15 +87,13 @@ public class BuyOrderDetailController {
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
// @RequiresPermissions("book:buyorderdetail:delete")
|
||||
public R delete(@RequestBody Long[] allOrderIds){
|
||||
buyOrderDetailService.removeByIds(Arrays.asList(allOrderIds));
|
||||
|
||||
public R delete(@RequestBody Long[] allOrderIds) {
|
||||
buyOrderDetailService.removeByIds(Arrays.asList(allOrderIds));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@RequestMapping("/updateOrderStatus")
|
||||
public R updateOrderStatus(@RequestBody BuyOrderDetailEntity buyOrderDetail){
|
||||
public R updateOrderStatus(@RequestBody BuyOrderDetailEntity buyOrderDetail) {
|
||||
buyOrderDetail.setOrderStatus("2");
|
||||
buyOrderDetailService.updateById(buyOrderDetail);
|
||||
return R.ok();
|
||||
@@ -130,7 +107,7 @@ public class BuyOrderDetailController {
|
||||
* @return
|
||||
*/
|
||||
@RequestMapping("/batchUpdateByShippingSns")
|
||||
public R batchUpdateByShippingSns(@RequestBody String[] shippingSnList){
|
||||
public R batchUpdateByShippingSns(@RequestBody String[] shippingSnList) {
|
||||
buyOrderDetailService.batchUpdateByShippingSns(shippingSnList);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -25,7 +25,6 @@ import java.util.Map;
|
||||
@RequestMapping("api/province")
|
||||
public class ProvinceController {
|
||||
|
||||
|
||||
@Autowired
|
||||
private ProvinceService provinceService;
|
||||
@Autowired
|
||||
@@ -37,7 +36,7 @@ public class ProvinceController {
|
||||
|
||||
//获取地址
|
||||
@RequestMapping("/getProvince")
|
||||
public R getProvince(){
|
||||
public R getProvince() {
|
||||
|
||||
|
||||
//优化查询速度 目录放入redis中
|
||||
@@ -46,40 +45,36 @@ public class ProvinceController {
|
||||
if (StringUtils.isNotBlank(s)) {
|
||||
List<Object> redisData = JSONArray.parseArray(s);
|
||||
for (Object object : redisData) {
|
||||
Map <String,Object> ret = (Map<String, Object>) object;//取出list里面的值转为map
|
||||
Map<String, Object> ret = (Map<String, Object>) object;//取出list里面的值转为map
|
||||
listData.add(ret);
|
||||
}
|
||||
return R.ok().put("provinceEntity",listData);
|
||||
return R.ok().put("provinceEntity", listData);
|
||||
}
|
||||
List<ProvinceEntity> provinceEntityList = provinceService.getCity();
|
||||
redisTemplate.opsForValue().set("Province", JSON.toJSONString(provinceEntityList));
|
||||
return R.ok().put("provinceEntity",provinceEntityList);
|
||||
return R.ok().put("provinceEntity", provinceEntityList);
|
||||
}
|
||||
|
||||
//获取省列表
|
||||
@RequestMapping("/getProvinceList")
|
||||
public R getProvinceList(){
|
||||
public R getProvinceList() {
|
||||
List<ProvinceEntity> provinceList = provinceService.getBaseMapper().selectList(new QueryWrapper<ProvinceEntity>());
|
||||
|
||||
return R.ok().put("provinceList",provinceList);
|
||||
return R.ok().put("provinceList", provinceList);
|
||||
}
|
||||
|
||||
//获取市列表
|
||||
@RequestMapping("/getCityList")
|
||||
public R getCityList(@RequestParam("provId") Integer provId){
|
||||
public R getCityList(@RequestParam("provId") Integer provId) {
|
||||
List<CityEntity> prov = cityService.getBaseMapper().selectList(new QueryWrapper<CityEntity>()
|
||||
.eq("prov_id", provId));
|
||||
return R.ok().put("prov",prov);
|
||||
return R.ok().put("prov", prov);
|
||||
}
|
||||
|
||||
//获取区列表
|
||||
@RequestMapping("/getCountyList")
|
||||
public R getCountyList(@RequestParam("cityId") Integer cityId){
|
||||
public R getCountyList(@RequestParam("cityId") Integer cityId) {
|
||||
List<CountyEntity> countyList = countyService.getBaseMapper().selectList(new QueryWrapper<CountyEntity>().eq("city_id", cityId));
|
||||
|
||||
|
||||
return R.ok().put("countyList",countyList);
|
||||
return R.ok().put("countyList", countyList);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,24 +1,15 @@
|
||||
package com.peanut.modules.book.controller;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.peanut.modules.book.entity.AuthorEntity;
|
||||
import com.peanut.modules.book.service.BookService;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
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.peanut.modules.book.entity.PublisherEntity;
|
||||
import com.peanut.modules.book.service.PublisherService;
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.book.entity.PublisherEntity;
|
||||
import com.peanut.modules.book.service.BookService;
|
||||
import com.peanut.modules.book.service.PublisherService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* 出版商表
|
||||
@@ -39,10 +30,8 @@ public class PublisherController {
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
// @RequiresPermissions("book:publisher:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = publisherService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
@@ -50,7 +39,6 @@ public class PublisherController {
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/publisherList")
|
||||
// @RequiresPermissions("book:publisher:list")
|
||||
public R publisherList(){
|
||||
List<PublisherEntity> publisherEntities = publisherService.getBaseMapper().selectList(new QueryWrapper<PublisherEntity>());
|
||||
ArrayList<Object> list = new ArrayList<>();
|
||||
@@ -60,7 +48,6 @@ public class PublisherController {
|
||||
map.put("value",publisherEntitie.getPublisherName());
|
||||
list.add(map);
|
||||
}
|
||||
|
||||
return R.ok().put("list", list);
|
||||
}
|
||||
|
||||
@@ -68,10 +55,8 @@ public class PublisherController {
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
// @RequiresPermissions("book:publisher:info")
|
||||
public R info(@PathVariable("id") Integer id){
|
||||
PublisherEntity publisher = publisherService.getById(id);
|
||||
|
||||
return R.ok().put("publisher", publisher);
|
||||
}
|
||||
|
||||
@@ -80,7 +65,6 @@ public class PublisherController {
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/appGetInfo/{id}/{limit}/{page}")
|
||||
// @RequiresPermissions("book:author:info")
|
||||
public R appGetInfo(@PathVariable("id") Integer id,
|
||||
@PathVariable("limit") String limit,
|
||||
@PathVariable("page") String page){
|
||||
@@ -103,7 +87,6 @@ public class PublisherController {
|
||||
public R save(@RequestBody PublisherEntity publisher){
|
||||
publisher.setDelFlag(0);
|
||||
publisherService.save(publisher);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -111,10 +94,8 @@ public class PublisherController {
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
// @RequiresPermissions("book:publisher:update")
|
||||
public R update(@RequestBody PublisherEntity publisher){
|
||||
publisherService.updateById(publisher);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -122,11 +103,8 @@ public class PublisherController {
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
// @RequiresPermissions("book:publisher:delete")
|
||||
public R delete(@RequestBody Integer[] ids){
|
||||
publisherService.removeByIds(Arrays.asList(ids));
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,23 +1,16 @@
|
||||
package com.peanut.modules.book.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.book.entity.SeckillProdRelationEntity;
|
||||
import com.peanut.modules.book.service.SeckillProdRelationService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
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.peanut.modules.book.entity.SeckillProdRelationEntity;
|
||||
import com.peanut.modules.book.service.SeckillProdRelationService;
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
|
||||
|
||||
|
||||
@@ -38,7 +31,6 @@ public class SeckillProdRelationController {
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
// @RequiresPermissions("book:seckillprodrelation:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
PageUtils page = seckillProdRelationService.queryPage(params);
|
||||
|
||||
@@ -50,7 +42,6 @@ public class SeckillProdRelationController {
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{id}")
|
||||
// @RequiresPermissions("book:seckillprodrelation:info")
|
||||
public R info(@PathVariable("id") Integer id){
|
||||
SeckillProdRelationEntity seckillProdRelation = seckillProdRelationService.getById(id);
|
||||
|
||||
@@ -61,26 +52,18 @@ public class SeckillProdRelationController {
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
// @RequiresPermissions("book:seckillprodrelation:save")
|
||||
public R save(@RequestBody SeckillProdRelationEntity seckillProdRelation){
|
||||
|
||||
//判断当前场次 是否有相同商品
|
||||
|
||||
Integer prodId = seckillProdRelation.getProdId();
|
||||
|
||||
Integer promotionSeckillId = seckillProdRelation.getPromotionSeckillId();
|
||||
|
||||
List<SeckillProdRelationEntity> list = seckillProdRelationService.list(new QueryWrapper<SeckillProdRelationEntity>().eq("promotion_seckill_id", promotionSeckillId));
|
||||
|
||||
for (SeckillProdRelationEntity seckillProdRelationEntity : list) {
|
||||
Integer prodId1 = seckillProdRelationEntity.getProdId();
|
||||
if (prodId1 == prodId){
|
||||
return R.error("商品已存在");
|
||||
}
|
||||
}
|
||||
|
||||
seckillProdRelationService.save(seckillProdRelation);
|
||||
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -88,7 +71,6 @@ public class SeckillProdRelationController {
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
// @RequiresPermissions("book:seckillprodrelation:update")
|
||||
public R update(@RequestBody SeckillProdRelationEntity seckillProdRelation){
|
||||
seckillProdRelationService.updateById(seckillProdRelation);
|
||||
|
||||
|
||||
@@ -78,7 +78,6 @@ public class ShopProductLabelController {
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping("/getLabels")
|
||||
public R getLabels(){
|
||||
List<ShopProductLabelEntity> shopProductLabelEntities = shopProductLabelService.getBaseMapper().selectList(new QueryWrapper<ShopProductLabelEntity>()
|
||||
@@ -88,8 +87,6 @@ public class ShopProductLabelController {
|
||||
return R.ok().put("result",re);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 废除
|
||||
* @param params
|
||||
@@ -102,7 +99,6 @@ public class ShopProductLabelController {
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取商品列表通过标签
|
||||
* @return
|
||||
@@ -119,12 +115,4 @@ public class ShopProductLabelController {
|
||||
|
||||
return R.ok().put("page",shopProductEntityPage);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -1,21 +1,17 @@
|
||||
package com.peanut.modules.book.controller;
|
||||
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.book.entity.ShopSeckillEntity;
|
||||
import com.peanut.modules.book.service.ShopSeckillService;
|
||||
import com.peanut.modules.book.to.SeckillRedisTo;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.peanut.modules.book.to.SeckillRedisTo;
|
||||
import com.peanut.modules.book.vo.SeckillProdVo;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import com.peanut.modules.book.entity.ShopSeckillEntity;
|
||||
import com.peanut.modules.book.service.ShopSeckillService;
|
||||
import com.peanut.common.utils.PageUtils;
|
||||
import com.peanut.common.utils.R;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 秒杀库存表
|
||||
@@ -34,10 +30,8 @@ public class ShopSeckillController {
|
||||
* 列表
|
||||
*/
|
||||
@RequestMapping("/list")
|
||||
// @RequiresPermissions("book:shopseckill:list")
|
||||
public R list(@RequestParam Map<String, Object> params){
|
||||
public R list(@RequestParam Map<String, Object> params) {
|
||||
PageUtils page = shopSeckillService.queryPage(params);
|
||||
|
||||
return R.ok().put("page", page);
|
||||
}
|
||||
|
||||
@@ -46,10 +40,8 @@ public class ShopSeckillController {
|
||||
* 信息
|
||||
*/
|
||||
@RequestMapping("/info/{seckillId}")
|
||||
// @RequiresPermissions("book:shopseckill:info")
|
||||
public R info(@PathVariable("seckillId") Long seckillId){
|
||||
ShopSeckillEntity shopSeckill = shopSeckillService.getById(seckillId);
|
||||
|
||||
public R info(@PathVariable("seckillId") Long seckillId) {
|
||||
ShopSeckillEntity shopSeckill = shopSeckillService.getById(seckillId);
|
||||
return R.ok().put("shopSeckill", shopSeckill);
|
||||
}
|
||||
|
||||
@@ -57,10 +49,8 @@ public class ShopSeckillController {
|
||||
* 保存
|
||||
*/
|
||||
@RequestMapping("/save")
|
||||
// @RequiresPermissions("book:shopseckill:save")
|
||||
public R save(@RequestBody ShopSeckillEntity shopSeckill){
|
||||
shopSeckillService.save(shopSeckill);
|
||||
|
||||
public R save(@RequestBody ShopSeckillEntity shopSeckill) {
|
||||
shopSeckillService.save(shopSeckill);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -68,10 +58,8 @@ public class ShopSeckillController {
|
||||
* 修改
|
||||
*/
|
||||
@RequestMapping("/update")
|
||||
// @RequiresPermissions("book:shopseckill:update")
|
||||
public R update(@RequestBody ShopSeckillEntity shopSeckill){
|
||||
shopSeckillService.updateById(shopSeckill);
|
||||
|
||||
public R update(@RequestBody ShopSeckillEntity shopSeckill) {
|
||||
shopSeckillService.updateById(shopSeckill);
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@@ -79,28 +67,24 @@ public class ShopSeckillController {
|
||||
* 删除
|
||||
*/
|
||||
@RequestMapping("/delete")
|
||||
// @RequiresPermissions("book:shopseckill:delete")
|
||||
public R delete(@RequestBody Long[] seckillIds){
|
||||
shopSeckillService.removeByIds(Arrays.asList(seckillIds));
|
||||
|
||||
public R delete(@RequestBody Long[] seckillIds) {
|
||||
shopSeckillService.removeByIds(Arrays.asList(seckillIds));
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@GetMapping("/getSeckillProd")
|
||||
public R getSeckillProd(){
|
||||
public R getSeckillProd() {
|
||||
List<SeckillRedisTo> list = shopSeckillService.getCurrentSeckillProd();
|
||||
|
||||
return R.ok().put("list",list);
|
||||
return R.ok().put("list", list);
|
||||
}
|
||||
|
||||
@GetMapping("/kill")
|
||||
public R kill(@RequestParam("killId") String killId,
|
||||
@RequestParam("key") String key,
|
||||
@RequestParam("num") Integer num,
|
||||
@RequestParam("userId") Integer userId){
|
||||
String orderId = shopSeckillService.kill(killId,key,num,userId);
|
||||
|
||||
return R.ok().put("orderId",orderId);
|
||||
@RequestParam("userId") Integer userId) {
|
||||
String orderId = shopSeckillService.kill(killId, key, num, userId);
|
||||
return R.ok().put("orderId", orderId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -32,9 +32,9 @@ public class UserBookClockController {
|
||||
/**
|
||||
* 计算打卡天数
|
||||
*
|
||||
* @param bookId
|
||||
* @param userId
|
||||
* @return
|
||||
* @param bookId book ID
|
||||
* @param userId user ID
|
||||
* @return R
|
||||
*/
|
||||
@RequestMapping(path = "/clockInDays", method = RequestMethod.GET)
|
||||
public R clockInDays(@RequestParam("bookId") Integer bookId,
|
||||
@@ -67,9 +67,9 @@ public class UserBookClockController {
|
||||
/**
|
||||
* 用户打卡
|
||||
*
|
||||
* @param bookId
|
||||
* @param userId
|
||||
* @return
|
||||
* @param bookId book ID
|
||||
* @param userId user ID
|
||||
* @return R
|
||||
*/
|
||||
@RequestMapping(path = "/clockIn", method = RequestMethod.GET)
|
||||
public R clockIn(@RequestParam("bookId") Integer bookId,
|
||||
|
||||
@@ -5,10 +5,8 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.peanut.common.utils.R;
|
||||
import com.peanut.modules.book.entity.BookClockEntryEntity;
|
||||
import com.peanut.modules.book.entity.BookEntity;
|
||||
import com.peanut.modules.book.service.BookClockEntryChatService;
|
||||
import com.peanut.modules.book.service.BookClockEntryService;
|
||||
import com.peanut.modules.book.service.BookService;
|
||||
import com.peanut.modules.book.service.UserBookClockService;
|
||||
import com.peanut.modules.book.to.PageIdDto;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -20,13 +18,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RequestMapping("book/clock")
|
||||
public class UserClockController {
|
||||
|
||||
@Autowired
|
||||
private UserBookClockService userBookClockService;
|
||||
@Autowired
|
||||
private BookClockEntryService bookClockEntryService;
|
||||
@Autowired
|
||||
private BookClockEntryChatService bookClockEntryChatService;
|
||||
@Autowired
|
||||
private BookService bookService;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user