PC+mini铺位改造
This commit is contained in:
@@ -5,6 +5,7 @@ import com.cool.store.request.*;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.PointService;
|
||||
import com.cool.store.service.ShopService;
|
||||
import com.cool.store.vo.PartnerUserInfoVO;
|
||||
import com.cool.store.vo.point.MiniPointPageVO;
|
||||
import com.cool.store.vo.point.PointDetailVO;
|
||||
import com.cool.store.vo.point.ShopRentInfoVO;
|
||||
@@ -59,6 +60,9 @@ public class MiniShopController {
|
||||
@ApiOperation("获取推荐给我的铺位")
|
||||
@PostMapping("/getLineRecommendPointPage")
|
||||
public ResponseResult<PageInfo<MiniPointPageVO>> getLineRecommendPointPage(@RequestBody MiniPointPageRequest request) {
|
||||
PartnerUserInfoVO user = PartnerUserHolder.getUser();
|
||||
request.setPartnerId(user.getPartnerId());
|
||||
request.setLineId(user.getLineId());
|
||||
return ResponseResult.success(pointService.getLineRecommendPointPage(request));
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package com.cool.store.controller.webc;
|
||||
|
||||
import com.cool.store.context.PartnerUserHolder;
|
||||
import com.cool.store.dto.TallyBookDTO;
|
||||
import com.cool.store.request.TallyBookRequest;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.TallyBookService;
|
||||
import com.cool.store.vo.PartnerUserInfoVO;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author: WangShuo
|
||||
* @Date: 2025/03/31/14:23
|
||||
* @Version 1.0
|
||||
* @注释:
|
||||
*/
|
||||
@RestController
|
||||
@Api("mini记账本")
|
||||
@RequestMapping("/mini/tallyBook")
|
||||
public class TallyBookController {
|
||||
@Resource
|
||||
private TallyBookService tallyBookService;
|
||||
|
||||
@PostMapping("/insertOrUpdate")
|
||||
public ResponseResult insertOrUpdateSelective(@RequestBody @Validated TallyBookRequest request) {
|
||||
PartnerUserInfoVO user = PartnerUserHolder.getUser();
|
||||
return ResponseResult.success(tallyBookService.insertOrUpdateSelective(request, user.getPartnerId()));
|
||||
}
|
||||
|
||||
@GetMapping("/getTallyBookListByShopIdAndYear")
|
||||
public ResponseResult<List<TallyBookDTO>> getTallyBookListByShopIdAndYear(@RequestParam("shopId") Long shopId, @RequestParam("year") Integer year) {
|
||||
PartnerUserInfoVO user = PartnerUserHolder.getUser();
|
||||
return ResponseResult.success(tallyBookService.getTallyBookListByShopIdAndYear(shopId,year));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user