|
@@ -6,14 +6,20 @@ import com.yohoufo.product.response.ProductDetailResp; |
|
@@ -6,14 +6,20 @@ import com.yohoufo.product.response.ProductDetailResp; |
6
|
import com.yohoufo.product.response.ProductSeriesTemplateResp;
|
6
|
import com.yohoufo.product.response.ProductSeriesTemplateResp;
|
7
|
import com.yohoufo.product.response.StorageDataResp;
|
7
|
import com.yohoufo.product.response.StorageDataResp;
|
8
|
import com.yohoufo.product.response.StorageLeastPriceResp;
|
8
|
import com.yohoufo.product.response.StorageLeastPriceResp;
|
|
|
9
|
+
|
|
|
10
|
+import javax.annotation.Resource;
|
|
|
11
|
+
|
9
|
import org.slf4j.Logger;
|
12
|
import org.slf4j.Logger;
|
10
|
import org.slf4j.LoggerFactory;
|
13
|
import org.slf4j.LoggerFactory;
|
|
|
14
|
+import org.springframework.beans.factory.annotation.Autowired;
|
11
|
import org.springframework.web.bind.annotation.RequestMapping;
|
15
|
import org.springframework.web.bind.annotation.RequestMapping;
|
12
|
import org.springframework.web.bind.annotation.RequestParam;
|
16
|
import org.springframework.web.bind.annotation.RequestParam;
|
13
|
|
17
|
|
14
|
import com.yohoufo.common.ApiResponse;
|
18
|
import com.yohoufo.common.ApiResponse;
|
15
|
import com.yohoufo.common.annotation.IgnoreSession;
|
19
|
import com.yohoufo.common.annotation.IgnoreSession;
|
16
|
import com.yohoufo.common.annotation.IgnoreSignature;
|
20
|
import com.yohoufo.common.annotation.IgnoreSignature;
|
|
|
21
|
+import com.yohoufo.common.caller.UfoServiceCaller;
|
|
|
22
|
+
|
17
|
import org.springframework.web.bind.annotation.RestController;
|
23
|
import org.springframework.web.bind.annotation.RestController;
|
18
|
|
24
|
|
19
|
|
25
|
|
|
@@ -22,6 +28,9 @@ public class ProductController { |
|
@@ -22,6 +28,9 @@ public class ProductController { |
22
|
|
28
|
|
23
|
private final Logger LOG = LoggerFactory.getLogger(ProductController.class);
|
29
|
private final Logger LOG = LoggerFactory.getLogger(ProductController.class);
|
24
|
|
30
|
|
|
|
31
|
+ @Autowired
|
|
|
32
|
+ UfoServiceCaller serviceCaller;
|
|
|
33
|
+
|
25
|
@ApiOperation(name = "ufo.product.data", desc="商品详情")
|
34
|
@ApiOperation(name = "ufo.product.data", desc="商品详情")
|
26
|
@IgnoreSignature
|
35
|
@IgnoreSignature
|
27
|
@IgnoreSession
|
36
|
@IgnoreSession
|
|
@@ -125,6 +134,7 @@ public class ProductController { |
|
@@ -125,6 +134,7 @@ public class ProductController { |
125
|
@RequestMapping(params = "method=ufo.product.cancelSaleSkup")
|
134
|
@RequestMapping(params = "method=ufo.product.cancelSaleSkup")
|
126
|
public ApiResponse cancelSaleSkup(
|
135
|
public ApiResponse cancelSaleSkup(
|
127
|
@RequestParam(value = "skup", required = false) Integer skup) {
|
136
|
@RequestParam(value = "skup", required = false) Integer skup) {
|
|
|
137
|
+ serviceCaller.call("ufo.product.data", 99);
|
128
|
return new ApiResponse(200, "取消卖出成功!", Boolean.TRUE);
|
138
|
return new ApiResponse(200, "取消卖出成功!", Boolean.TRUE);
|
129
|
}
|
139
|
}
|
130
|
|
140
|
|