|
@@ -61,6 +61,7 @@ import org.springframework.security.core.parameters.P;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
+import org.springframework.web.bind.annotation.PathVariable;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -102,6 +103,25 @@ public class ChannelController extends BaseApiController {
|
|
|
private IUserAddrService userAddrService;
|
|
|
|
|
|
|
|
|
+ @PostMapping("/saleSite/info/{channelId}")
|
|
|
+ @ApiOperation("查询门店基本信息")
|
|
|
+ @ApiResponses(
|
|
|
+ @ApiResponse(code = 200, message = "查询成功", response = ChannelVO.class)
|
|
|
+ )
|
|
|
+ public AjaxResult saleSiteInfo(@PathVariable("channelId") Long channelId) {
|
|
|
+ if (channelId == null || channelId <= 0) {
|
|
|
+ return AjaxResult.error("门店id不正确");
|
|
|
+ }
|
|
|
+
|
|
|
+ Channel channel = channelService.getById(channelId);
|
|
|
+ if (channel == null) {
|
|
|
+ return AjaxResult.error("门店信息不存在");
|
|
|
+ }
|
|
|
+
|
|
|
+ return AjaxResult.success("操作成功", channel.getSiteName());
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* 获取我的下级渠道列表信息,支持翻页
|
|
|
*
|