rk
8 小时以前 c74a6f59490cfb9a0ee37f70427739b74e7fbd58
server/web/src/main/java/com/doumee/api/web/ShopInfoApi.java
@@ -15,6 +15,7 @@
import com.doumee.dao.dto.ShopNearbyDTO;
import com.doumee.dao.vo.ShopDetailVO;
import com.doumee.dao.vo.ShopCenterVO;
import com.doumee.dao.vo.LocationTagShopCountVO;
import com.doumee.dao.vo.ShopNearbyVO;
import com.doumee.dao.vo.ShopSalesStatsVO;
import com.doumee.dao.vo.ShopWebDetailVO;
@@ -29,6 +30,8 @@
import javax.validation.Valid;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
 * 门店入驻(小程序端)
@@ -67,6 +70,13 @@
    @PostMapping("/nearby")
    public ApiResponse<PageData<ShopNearbyVO>> nearby(@RequestBody @Validated PageWrap<ShopNearbyDTO> pageWrap) {
        return ApiResponse.success(shopInfoService.findNearbyShops(pageWrap));
    }
    @ApiOperation("按位置标签统计门店数量")
    @GetMapping("/locationTagShopCount")
    public ApiResponse<List<LocationTagShopCountVO>> locationTagShopCount(
            @RequestParam(required = false) Integer cityId) {
        return ApiResponse.success(shopInfoService.countShopsByLocationTag(cityId));
    }
    @ApiOperation("门店详情")
@@ -144,4 +154,16 @@
        return ApiResponse.success("密码修改成功,请重新登录");
    }
    @LoginShopRequired
    @ApiOperation("门店打印订单标签")
    @GetMapping("/printOrderLabel/{orderId}")
    @ApiImplicitParams({
            @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "门店token值", required = true),
            @ApiImplicitParam(paramType = "path", dataType = "Integer", name = "orderId", value = "订单主键", required = true)
    })
    public ApiResponse printOrderLabel(@PathVariable Integer orderId) {
        ordersService.printOrderLabel(orderId, this.getShopId());
        return ApiResponse.success("打印成功");
    }
}