Commit e960f6febfecb32de6b2922239fa142faea85390

Authored by jiangchengyong
1 parent 0fbfa4ec

店铺 update

mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/GetShopDeliveryTimeReq.java
1 package com.diligrp.mobsite.getway.domain.protocol; 1 package com.diligrp.mobsite.getway.domain.protocol;
2 2
3 import com.diligrp.mobsite.getway.domain.base.BaseListReq; 3 import com.diligrp.mobsite.getway.domain.base.BaseListReq;
  4 +import io.swagger.annotations.ApiModelProperty;
4 5
5 /** 6 /**
6 * Created by xxxzzz on 2016/12/21. 7 * Created by xxxzzz on 2016/12/21.
7 */ 8 */
8 public class GetShopDeliveryTimeReq extends BaseListReq { 9 public class GetShopDeliveryTimeReq extends BaseListReq {
  10 + @ApiModelProperty(value = "店铺ID")
  11 + private Long shopId;
  12 +
  13 + public Long getShopId() {
  14 + return shopId;
  15 + }
  16 +
  17 + public void setShopId(Long shopId) {
  18 + this.shopId = shopId;
  19 + }
9 } 20 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/detail/BindToShopResp.java
1 package com.diligrp.mobsite.getway.domain.protocol.detail; 1 package com.diligrp.mobsite.getway.domain.protocol.detail;
2 2
  3 +import com.b2c.myapp.common.api.shopBuyer.output.ShopBuyerOutput;
3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 4 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
  5 +import io.swagger.annotations.ApiModelProperty;
4 6
5 /** 7 /**
6 * <B>Description</B> 店铺简介响应 <br /> 8 * <B>Description</B> 店铺简介响应 <br />
@@ -12,35 +14,14 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp; @@ -12,35 +14,14 @@ import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
12 */ 14 */
13 @SuppressWarnings("serial") 15 @SuppressWarnings("serial")
14 public class BindToShopResp extends BaseResp { 16 public class BindToShopResp extends BaseResp {
  17 + @ApiModelProperty(value = "买家当前绑定的店铺信息")
  18 + private ShopBuyerOutput shopBuyerOutput;
15 19
16 - private Long shopId;  
17 -  
18 - private String shopName;  
19 -  
20 - private String logo;  
21 -  
22 -  
23 - public Long getShopId() {  
24 - return shopId;  
25 - }  
26 -  
27 - public void setShopId(Long shopId) {  
28 - this.shopId = shopId;  
29 - }  
30 -  
31 - public String getShopName() {  
32 - return shopName;  
33 - }  
34 -  
35 - public void setShopName(String shopName) {  
36 - this.shopName = shopName;  
37 - }  
38 -  
39 - public String getLogo() {  
40 - return logo; 20 + public ShopBuyerOutput getShopBuyerOutput() {
  21 + return shopBuyerOutput;
41 } 22 }
42 23
43 - public void setLogo(String logo) {  
44 - this.logo = logo; 24 + public void setShopBuyerOutput(ShopBuyerOutput shopBuyerOutput) {
  25 + this.shopBuyerOutput = shopBuyerOutput;
45 } 26 }
46 } 27 }
mobsite-getway-domain/src/main/java/com/diligrp/mobsite/getway/domain/protocol/detail/GetShopByIdResp.java
1 package com.diligrp.mobsite.getway.domain.protocol.detail; 1 package com.diligrp.mobsite.getway.domain.protocol.detail;
2 2
3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp; 3 import com.diligrp.mobsite.getway.domain.protocol.BaseResp;
  4 +import io.swagger.annotations.ApiModelProperty;
  5 +
  6 +import java.util.List;
4 7
5 /** 8 /**
6 * Created by xxxzzz on 2016/12/9. 9 * Created by xxxzzz on 2016/12/9.
7 */ 10 */
8 public class GetShopByIdResp extends BaseResp { 11 public class GetShopByIdResp extends BaseResp {
  12 + @ApiModelProperty(value = "店铺id")
  13 + private Long shopId;
  14 +
  15 + @ApiModelProperty(value = "城市code")
  16 + private Long cityCode;
  17 +
  18 + @ApiModelProperty(value = "城市名称")
  19 + private String cityName;
  20 +
  21 + @ApiModelProperty(value = "店铺名称")
  22 + private String shopName;
  23 +
  24 + @ApiModelProperty(value = "店铺logo")
  25 + private String shopLogo;
  26 +
  27 + @ApiModelProperty(value = "主营类目")
  28 + private List<Long> categories;
  29 +
  30 +
  31 +
  32 + @ApiModelProperty(value = "店铺地址")
  33 + private String shopAddr;
  34 +
  35 + @ApiModelProperty(value = "客户电话")
  36 + private String phone;
  37 +
  38 +
  39 + @ApiModelProperty(value = "商品排列方式(1:两列式 2:列表式)")
  40 + private Integer productDisplayWay;
  41 +
  42 + @ApiModelProperty(value = "配送费")
  43 + private Long postage;
  44 +
  45 + @ApiModelProperty(value = "订单免配送费金额")
  46 + private Long freeShippingPrice;
  47 +
  48 + @ApiModelProperty(value = "店铺公告")
  49 + private String shopNotices;
  50 +
  51 + public Long getShopId() {
  52 + return shopId;
  53 + }
  54 +
  55 + public void setShopId(Long shopId) {
  56 + this.shopId = shopId;
  57 + }
  58 +
  59 + public Long getCityCode() {
  60 + return cityCode;
  61 + }
  62 +
  63 + public void setCityCode(Long cityCode) {
  64 + this.cityCode = cityCode;
  65 + }
  66 +
  67 + public String getCityName() {
  68 + return cityName;
  69 + }
  70 +
  71 + public void setCityName(String cityName) {
  72 + this.cityName = cityName;
  73 + }
  74 +
  75 + public String getShopName() {
  76 + return shopName;
  77 + }
  78 +
  79 + public void setShopName(String shopName) {
  80 + this.shopName = shopName;
  81 + }
  82 +
  83 + public String getShopLogo() {
  84 + return shopLogo;
  85 + }
  86 +
  87 + public void setShopLogo(String shopLogo) {
  88 + this.shopLogo = shopLogo;
  89 + }
  90 +
  91 +
  92 + public List<Long> getCategories() {
  93 + return categories;
  94 + }
  95 +
  96 + public void setCategories(List<Long> categories) {
  97 + this.categories = categories;
  98 + }
  99 +
  100 + public Integer getProductDisplayWay() {
  101 + return productDisplayWay;
  102 + }
  103 +
  104 + public void setProductDisplayWay(Integer productDisplayWay) {
  105 + this.productDisplayWay = productDisplayWay;
  106 + }
  107 +
  108 + public Long getPostage() {
  109 + return postage;
  110 + }
  111 +
  112 + public void setPostage(Long postage) {
  113 + this.postage = postage;
  114 + }
  115 +
  116 + public Long getFreeShippingPrice() {
  117 + return freeShippingPrice;
  118 + }
  119 +
  120 + public void setFreeShippingPrice(Long freeShippingPrice) {
  121 + this.freeShippingPrice = freeShippingPrice;
  122 + }
  123 +
  124 + public String getShopNotices() {
  125 + return shopNotices;
  126 + }
  127 +
  128 + public void setShopNotices(String shopNotices) {
  129 + this.shopNotices = shopNotices;
  130 + }
  131 +
  132 + public String getShopAddr() {
  133 + return shopAddr;
  134 + }
  135 +
  136 + public void setShopAddr(String shopAddr) {
  137 + this.shopAddr = shopAddr;
  138 + }
  139 +
  140 + public String getPhone() {
  141 + return phone;
  142 + }
  143 +
  144 + public void setPhone(String phone) {
  145 + this.phone = phone;
  146 + }
9 } 147 }
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/shop/ShopService.java
@@ -15,98 +15,6 @@ import com.diligrp.mobsite.getway.domain.protocol.shop.*; @@ -15,98 +15,6 @@ import com.diligrp.mobsite.getway.domain.protocol.shop.*;
15 */ 15 */
16 public interface ShopService { 16 public interface ShopService {
17 17
18 -  
19 - SearchShopResp searchKeyword(SearchShopReq req);  
20 -  
21 -  
22 - GetShopDetailResp getDetailById(GetShopDetailReq req);  
23 -  
24 - GetShopCategoryResp getShopCategory(Long id);  
25 -  
26 - GetShopProductResp getProductByShopId(GetShopProductReq req);  
27 -  
28 - RemoveFavoriteShopResp removeShopFavorite(Long shopId, Long userId);  
29 -  
30 -  
31 - /**  
32 - * 获取商品简介  
33 - * @param req  
34 - * @return  
35 - * @createTime 2015年6月9日 下午2:32:37  
36 - * @author zhangshirui  
37 - */  
38 - /**  
39 - * 查询店铺资质信息  
40 - * @param req  
41 - * @return  
42 - * @createTime 2015年6月9日 下午3:53:12  
43 - * @author zhangshirui  
44 - */  
45 - GetShopCreditResp getShopCredit(GetShopCreditReq req);  
46 - /**  
47 - * 查询商品详情  
48 - * @param req  
49 - * @return  
50 - * @createTime 2015年6月9日 下午2:04:16  
51 - * @author zhangshirui  
52 - */  
53 - @Deprecated  
54 - GetShopDetailsResp getShopDetails(GetShopDetailsReq req);  
55 -  
56 - /**  
57 - *查询销售店铺列表  
58 - * */  
59 - SearchSaleShopResp getSaleShopList(SearchSaleShopReq req);  
60 -  
61 - /**  
62 - *查询物流店铺列表  
63 - * */  
64 - SearchLogisticsShopResp getLogisticsShopList(SearchLogisticsShopReq req);  
65 -  
66 - /**  
67 - *查询代购店铺列表  
68 - * */  
69 - SearchBuyOnOtherShopResp getBuyOnOtherShopList(SearchBuyOnOtherShopReq req);  
70 -  
71 - /**  
72 - * 查询销售店铺主页  
73 - * @param req  
74 - * @return  
75 - * @createTime 2015年6月9日 下午2:04:16  
76 - * @author duanyugen  
77 - */  
78 - SaleShopMainPageResp getShopDetailNew(GetShopDetailsReq req);  
79 -  
80 - /**  
81 - * 查询物流店铺主页  
82 - * @param req  
83 - * @return  
84 - * @createTime 2015年6月9日 下午2:04:16  
85 - * @author duanyugen  
86 - */  
87 - // LogisticsShopMainPageResp getlogisticsShopMainPage(GetShopDetailsReq req);  
88 -  
89 - /**  
90 - * 查询店铺基本信息  
91 - * @param req  
92 - * @return  
93 - * @createTime 2015年6月9日 下午2:04:16  
94 - * @author duanyugen  
95 - */  
96 - ShopBasicInfoResp getShopBasicInfo(GetShopDetailsReq req);  
97 -  
98 - /**  
99 - * 添加店铺收藏  
100 - * @param req  
101 - * @return  
102 - * @createTime 2015年8月3日 下午4:55:54  
103 - * @author zhangshiruicom.diligrp.mobsite.getway.domain.protocol.detail.GetShopByIdResp getById(GetShopByIdReq );  
104 - */  
105 - AddFavoriteShopResp addShopFavorite(AddFavoriteShopReq req);  
106 -  
107 -  
108 - BindToShopResp getShopIntroduction(BindToShopReq req);  
109 -  
110 BindToShopResp bindToShop(BindToShopReq req); 18 BindToShopResp bindToShop(BindToShopReq req);
111 19
112 GetShopByIdResp getShopById(GetShopByIdReq req); 20 GetShopByIdResp getShopById(GetShopByIdReq req);
mobsite-getway-service/src/main/java/com/diligrp/mobsite/getway/service/buyer/shop/impl/ShopServiceImpl.java
1 package com.diligrp.mobsite.getway.service.buyer.shop.impl; 1 package com.diligrp.mobsite.getway.service.buyer.shop.impl;
2 2
3 -import com.diligrp.mobsite.getway.domain.protocol.detail.*;  
4 -import com.diligrp.mobsite.getway.domain.protocol.search.*;  
5 -import com.diligrp.mobsite.getway.domain.protocol.shop.*; 3 +import com.diligrp.mobsite.getway.domain.protocol.detail.BindToShopReq;
  4 +import com.diligrp.mobsite.getway.domain.protocol.detail.BindToShopResp;
  5 +import com.diligrp.mobsite.getway.domain.protocol.detail.GetShopByIdReq;
  6 +import com.diligrp.mobsite.getway.domain.protocol.detail.GetShopByIdResp;
6 import com.diligrp.mobsite.getway.service.buyer.shop.ShopService; 7 import com.diligrp.mobsite.getway.service.buyer.shop.ShopService;
7 -import org.slf4j.Logger;  
8 -import org.slf4j.LoggerFactory;  
9 -import org.springframework.beans.factory.annotation.Value;  
10 import org.springframework.stereotype.Service; 8 import org.springframework.stereotype.Service;
11 9
12 10
@@ -20,99 +18,6 @@ import org.springframework.stereotype.Service; @@ -20,99 +18,6 @@ import org.springframework.stereotype.Service;
20 */ 18 */
21 @Service 19 @Service
22 public class ShopServiceImpl implements ShopService { 20 public class ShopServiceImpl implements ShopService {
23 -  
24 - /**  
25 - * 城市级别  
26 - */  
27 - private static final int CITY_LEVEL_ONE = 1;  
28 - private static final int CITY_LEVEL_TWO = 2;  
29 - private static final int CITY_LEVEL_THREE = 3;  
30 - private final Logger logger = LoggerFactory.getLogger(ShopServiceImpl.class);  
31 -  
32 - // 车辆数量  
33 - private static final String COMPANY_COUNT_TYPE_VEHICLE = "COMPANY_COUNT_TYPE_VEHICLE";  
34 - //  
35 - private static final String COMPANY_COUNT_TYPE_LINES = "COMPANY_COUNT_TYPE_VEHICLE";  
36 - // 综合评分  
37 - private static final String AVERAGE_SCORE = "AVERAGE_SCORE";  
38 -  
39 - @Value("${system.shopurl.prefix}")  
40 - private String shareURLPrefix;  
41 -  
42 -  
43 -  
44 -  
45 - @Override  
46 - public SearchShopResp searchKeyword(SearchShopReq req) {  
47 - return null;  
48 - }  
49 -  
50 -  
51 - @Override  
52 - public GetShopDetailResp getDetailById(GetShopDetailReq req) {  
53 - return null;  
54 - }  
55 -  
56 - @Override  
57 - public GetShopCategoryResp getShopCategory(Long id) {  
58 - return null;  
59 - }  
60 -  
61 - @Override  
62 - public GetShopProductResp getProductByShopId(GetShopProductReq req) {  
63 - return null;  
64 - }  
65 -  
66 - @Override  
67 - public RemoveFavoriteShopResp removeShopFavorite(Long shopId, Long userId) {  
68 - return null;  
69 - }  
70 -  
71 - @Override  
72 - public GetShopCreditResp getShopCredit(GetShopCreditReq req) {  
73 - return null;  
74 - }  
75 -  
76 - @Override  
77 - public GetShopDetailsResp getShopDetails(GetShopDetailsReq req) {  
78 - return null;  
79 - }  
80 -  
81 - @Override  
82 - public SearchSaleShopResp getSaleShopList(SearchSaleShopReq req) {  
83 - return null;  
84 - }  
85 -  
86 - @Override  
87 - public SearchLogisticsShopResp getLogisticsShopList(SearchLogisticsShopReq req) {  
88 - return null;  
89 - }  
90 -  
91 - @Override  
92 - public SearchBuyOnOtherShopResp getBuyOnOtherShopList(SearchBuyOnOtherShopReq req) {  
93 - return null;  
94 - }  
95 -  
96 - @Override  
97 - public SaleShopMainPageResp getShopDetailNew(GetShopDetailsReq req) {  
98 - return null;  
99 - }  
100 -  
101 - @Override  
102 - public ShopBasicInfoResp getShopBasicInfo(GetShopDetailsReq req) {  
103 - return null;  
104 - }  
105 -  
106 - @Override  
107 - public AddFavoriteShopResp addShopFavorite(AddFavoriteShopReq req) {  
108 - return null;  
109 - }  
110 -  
111 - @Override  
112 - public BindToShopResp getShopIntroduction(BindToShopReq req) {  
113 - return null;  
114 - }  
115 -  
116 @Override 21 @Override
117 public BindToShopResp bindToShop(BindToShopReq req) { 22 public BindToShopResp bindToShop(BindToShopReq req) {
118 return null; 23 return null;
mobsite-getway-web/src/main/java/com/diligrp/mobsite/getway/web/api/buyer/shop/ShopController.java
@@ -60,29 +60,10 @@ public class ShopController extends BaseApiController { @@ -60,29 +60,10 @@ public class ShopController extends BaseApiController {
60 /** 60 /**
61 * 买家绑定店铺 61 * 买家绑定店铺
62 */ 62 */
63 - @ApiOperation(value = "买家绑定店铺", httpMethod = "POST",response = BindToShopResp.class)  
64 - @RequestMapping(value = "/bindToShop",method = RequestMethod.POST) 63 + @ApiOperation(value = "买家绑定店铺(绑定成功后,请在客户端缓存shopId、shopBuyerId,很多接口基于这两个参数的)", httpMethod = "POST",response = BindToShopResp.class)
  64 + @RequestMapping(value = "/bindAndActivate",method = RequestMethod.POST)
65 @ResponseBody 65 @ResponseBody
66 - public void bindToShop(@RequestBody BindToShopReq temp) {  
67 - BindToShopReq req = getRequest(BindToShopReq.class);  
68 - try {  
69 - BeanValidator.validator(req);  
70 - BindToShopResp resp = shopServiceImpl.bindToShop(req);  
71 - sendSuccessResp(resp);  
72 - }  
73 - catch(Exception e) {  
74 - log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
75 - sendError(e.getMessage());  
76 - }  
77 - }  
78 -  
79 - /**  
80 - * 买家更换绑定店铺  
81 - */  
82 - @ApiOperation(value = "买家更换绑定店铺", httpMethod = "POST",response = BindToShopResp.class)  
83 - @RequestMapping(value = "/changeBindToShop",method = RequestMethod.POST)  
84 - @ResponseBody  
85 - public void changeBindToShop(@RequestBody BindToShopReq temp) { 66 + public void bindAndActivate(@RequestBody BindToShopReq temp) {
86 BindToShopReq req = getRequest(BindToShopReq.class); 67 BindToShopReq req = getRequest(BindToShopReq.class);
87 try { 68 try {
88 BeanValidator.validator(req); 69 BeanValidator.validator(req);
@@ -136,32 +117,4 @@ public class ShopController extends BaseApiController { @@ -136,32 +117,4 @@ public class ShopController extends BaseApiController {
136 } 117 }
137 } 118 }
138 119
139 -  
140 -  
141 - ///**  
142 - // * 通过店铺ID获取店铺详细介绍页  
143 - // * @author zhangshirui  
144 - // */  
145 - //@ApiOperation(value = "获取店铺详情页", httpMethod = "POST",response = GetShopDetailsResp.class)  
146 - //@RequestMapping(value = "/getShopDetails",method = RequestMethod.POST)  
147 - //@ResponseBody  
148 - //public void getShopDetails() {  
149 - // GetShopDetailsReq req = getRequest(GetShopDetailsReq.class);  
150 - // try {  
151 - // GetShopDetailsResp resp = shopServiceImpl.getShopDetails(req);  
152 - // sendSuccessResp(resp);  
153 - // }  
154 - // catch(Exception e) {  
155 - // log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
156 - // sendError(e.getMessage());  
157 - // }  
158 - //}  
159 -  
160 -  
161 -  
162 -  
163 -  
164 -  
165 -  
166 -  
167 } 120 }
mobsite-getway-web/src/main/java/com/diligrp/mobsite/getway/web/api/buyer/shop/ShopNewController.java deleted 100644 → 0
1 -//package com.diligrp.mobsite.getway.web.api.buyer.shop;  
2 -//  
3 -//import com.diligrp.mobsite.getway.domain.except.ServiceException;  
4 -//import com.diligrp.mobsite.getway.domain.protocol.search.*;  
5 -//import com.diligrp.mobsite.getway.domain.protocol.shop.*;  
6 -//import com.diligrp.mobsite.getway.service.buyer.shop.ShopService;  
7 -//import com.diligrp.mobsite.getway.web.api.base.BaseApiController;  
8 -//import com.diligrp.mobsite.getway.web.utils.DiligrpEndpoint;  
9 -//import org.slf4j.Logger;  
10 -//import org.slf4j.LoggerFactory;  
11 -//import org.springframework.beans.factory.annotation.Autowired;  
12 -//import org.springframework.stereotype.Controller;  
13 -//import org.springframework.web.bind.annotation.RequestMapping;  
14 -//import org.springframework.web.bind.annotation.ResponseBody;  
15 -//  
16 -//  
17 -///**  
18 -// * <B>Description</B> 店铺controller <br />  
19 -// * <B>Copyright</B> Copyright (c) 2014 www.diligrp.com All rights reserved. <br />  
20 -// * 本软件源代码版权归地利集团,未经许可不得任意复制与传播.<br />  
21 -// * <B>Company</B> 地利集团  
22 -// * @createTime Aug 18, 2014 5:38:22 PM  
23 -// * @author duanyugen  
24 -// */  
25 -//@Controller  
26 -//@RequestMapping("/mobsiteApp/shop/")  
27 -//public class ShopNewController extends BaseApiController {  
28 -//  
29 -// @Autowired  
30 -// private ShopService shopServiceImpl;  
31 -// private Logger log = LoggerFactory.getLogger(ShopNewController.class);  
32 -//  
33 -// /**  
34 -// * 通过关键字搜索售卖店铺  
35 -// * @createTime Aug 22, 2014 2:06:08 PM  
36 -// * @author duanyugen  
37 -// */  
38 -// @RequestMapping("getSaleShopList")  
39 -// @ResponseBody  
40 -// @DiligrpEndpoint(group = "店铺信息",req=SearchShopReq.class, resp=SearchShopResp.class,desc="通过关键字搜索售卖店铺")  
41 -// public void getSaleShopList() {  
42 -// SearchSaleShopReq req = getRequest(SearchSaleShopReq.class);  
43 -// try {  
44 -// SearchSaleShopResp resp = shopServiceImpl.getSaleShopList(req);  
45 -// sendSuccessResp(resp);  
46 -// } catch (ServiceException e){  
47 -// log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);  
48 -// sendError(e.getCode(), e.getMessage());  
49 -// }  
50 -// catch(Exception e) {  
51 -// log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
52 -// sendError(e.getMessage());  
53 -// }  
54 -// }  
55 -// /**  
56 -// * 通过关键字获取物流店铺列表  
57 -// * @createTime Aug 22, 2014 2:06:08 PM  
58 -// * @author duanyugen  
59 -// */  
60 -// @RequestMapping("getLogisticsShopList")  
61 -// @ResponseBody  
62 -// @DiligrpEndpoint(group = "店铺信息",req=SearchLogisticsShopReq.class, resp=SearchLogisticsShopResp.class,desc="通过关键字搜索售卖店铺")  
63 -// public void getLogisticsShopList() {  
64 -// SearchLogisticsShopReq req = getRequest(SearchLogisticsShopReq.class);  
65 -// try {  
66 -// SearchLogisticsShopResp resp = shopServiceImpl.getLogisticsShopList(req);  
67 -// sendSuccessResp(resp);  
68 -// } catch (ServiceException e){  
69 -// log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);  
70 -// sendError(e.getCode(), e.getMessage());  
71 -// }  
72 -// catch(Exception e) {  
73 -// log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
74 -// sendError(e.getMessage());  
75 -// }  
76 -// }  
77 -// /**  
78 -// * 通过关键字搜索获取代购店铺列表  
79 -// * @createTime Aug 22, 2014 2:06:08 PM  
80 -// * @author duanyugen  
81 -// */  
82 -// @RequestMapping("getBuyOnOtherShopList")  
83 -// @ResponseBody  
84 -// @DiligrpEndpoint(group = "店铺信息",req=SearchBuyOnOtherShopReq.class, resp=SearchBuyOnOtherShopResp.class,desc="通过关键字搜索售卖店铺")  
85 -// public void getBuyOnOtherShopList() {  
86 -// SearchBuyOnOtherShopReq req = getRequest(SearchBuyOnOtherShopReq.class);  
87 -// try {  
88 -// SearchBuyOnOtherShopResp resp = shopServiceImpl.getBuyOnOtherShopList(req);  
89 -// sendSuccessResp(resp);  
90 -// } catch (ServiceException e){  
91 -// log.error(String.format("Code=%s,ErrorMessage=%s,UserId=%s", e.getCode(), e.getMessage(), req.getUserId()), e);  
92 -// sendError(e.getCode(), e.getMessage());  
93 -// }  
94 -// catch(Exception e) {  
95 -// log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
96 -// sendError(e.getMessage());  
97 -// }  
98 -// }  
99 -//  
100 -//  
101 -// /**  
102 -// * 通过店铺ID获取售卖店铺主页  
103 -// * @author duanyugen  
104 -// */  
105 -// @RequestMapping("getShopDetailNew")  
106 -// @ResponseBody  
107 -// @DiligrpEndpoint(group = "店铺信息",req=GetShopDetailsReq.class, resp=GetShopDetailsResp.class,desc="通过店铺ID获取店铺详细介绍页")  
108 -// public void getShopDetailNew() {  
109 -// GetShopDetailsReq req = getRequest(GetShopDetailsReq.class);  
110 -// try {  
111 -// SaleShopMainPageResp resp = shopServiceImpl.getShopDetailNew(req);  
112 -// sendSuccessResp(resp);  
113 -// }  
114 -// catch(Exception e) {  
115 -// log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
116 -// sendError(e.getMessage());  
117 -// }  
118 -// }  
119 -//  
120 -// /**  
121 -// * 通过店铺ID查询物流店铺主页  
122 -// * @author duanyugen  
123 -// */  
124 -// @RequestMapping("getlogisticsShopMainPage")  
125 -// @ResponseBody  
126 -// @DiligrpEndpoint(group = "店铺信息",req=GetShopDetailsReq.class, resp=GetShopDetailsResp.class,desc="通过店铺ID获取店铺详细介绍页")  
127 -// public void getlogisticsShopMainPage() {  
128 -// GetShopDetailsReq req = getRequest(GetShopDetailsReq.class);  
129 -// try {  
130 -// LogisticsShopMainPageResp resp = null;  
131 -// //shopServiceImpl.getlogisticsShopMainPage(req);  
132 -// sendSuccessResp(resp);  
133 -// }  
134 -// catch(Exception e) {  
135 -// log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
136 -// sendError(e.getMessage());  
137 -// }  
138 -// }  
139 -//  
140 -// /**  
141 -// * 通过店铺ID获取店铺基本信息(查询代购店铺主页也使用这个接口)  
142 -// * @author duanyugen  
143 -// */  
144 -// @RequestMapping("getShopBasicInfo")  
145 -// @ResponseBody  
146 -// @DiligrpEndpoint(group = "店铺信息",req=GetShopDetailsReq.class, resp=ShopBasicInfoResp.class,desc="通过店铺ID获取店铺详细介绍页")  
147 -// public void getShopBasicInfo() {  
148 -// GetShopDetailsReq req = getRequest(GetShopDetailsReq.class);  
149 -// try {  
150 -// ShopBasicInfoResp resp = shopServiceImpl.getShopBasicInfo(req);  
151 -// sendSuccessResp(resp);  
152 -// } catch(Exception e) {  
153 -// log.error(String.format("ErrorMessage=%s,UserId=%s",e.getMessage(),req.getUserId()), e);  
154 -// sendError(e.getMessage());  
155 -// }  
156 -// }  
157 -//}