Commit f2317a6e by tyfanchz

修改接口返回

1 parent 42603bbd
...@@ -125,9 +125,6 @@ public class ProductController { ...@@ -125,9 +125,6 @@ public class ProductController {
JSON.toJSONString(rpcResponse)); JSON.toJSONString(rpcResponse));
boolean productIdValid = rpcResponse.isSuccess() && rpcResponse.getResult() != null; boolean productIdValid = rpcResponse.isSuccess() && rpcResponse.getResult() != null;
return R.ok().data(productIdValid); return R.ok().data(productIdValid);
//Boolean productIdValid = productFeignClient.checkShopProductId(req);
//return R.ok().data(productIdValid);
} }
/** /**
......
...@@ -123,9 +123,6 @@ public class ProductTypeController { ...@@ -123,9 +123,6 @@ public class ProductTypeController {
goodLabelList.forEach(item -> shopTagList.add(item.getLabelName())); goodLabelList.forEach(item -> shopTagList.add(item.getLabelName()));
} }
return R.ok().data(shopTagList); return R.ok().data(shopTagList);
//List<String> shopTagList = productTypeFeignClient.getShopTagList();
//return R.ok().data(shopTagList);
} }
/** /**
......
...@@ -72,7 +72,6 @@ public class SceneTemplateController extends BaseController{ ...@@ -72,7 +72,6 @@ public class SceneTemplateController extends BaseController{
Date now = new Date(); Date now = new Date();
sceneTemplate.setUpdateTime(now); sceneTemplate.setUpdateTime(now);
sceneTemplate.setUpdateBy(-1L); sceneTemplate.setUpdateBy(-1L);
templateFeignClient.updateParam(sceneTemplate); return R.ok().data(templateFeignClient.updateParam(sceneTemplate));
return R.ok();
} }
} }
...@@ -41,10 +41,6 @@ public interface ProductFeignClient { ...@@ -41,10 +41,6 @@ public interface ProductFeignClient {
@ResponseBody @ResponseBody
List<DeviceOrderResp> getCommandSetById(@SpringQueryMap ProductReq req); List<DeviceOrderResp> getCommandSetById(@SpringQueryMap ProductReq req);
//@RequestMapping(value = "/product/checkShopProductId", method = {RequestMethod.GET})
//@ResponseBody
//Boolean checkShopProductId(@SpringQueryMap ProductReq req);
@RequestMapping(value = "/product/putOnOff", method = {RequestMethod.POST}) @RequestMapping(value = "/product/putOnOff", method = {RequestMethod.POST})
@ResponseBody @ResponseBody
Boolean putOnOff(@SpringQueryMap ProductReq req); Boolean putOnOff(@SpringQueryMap ProductReq req);
......
...@@ -36,10 +36,6 @@ public interface ProductTypeFeignClient { ...@@ -36,10 +36,6 @@ public interface ProductTypeFeignClient {
@ResponseBody @ResponseBody
Boolean save(@RequestBody ProductTypeReq req); Boolean save(@RequestBody ProductTypeReq req);
//@RequestMapping(value = "/productType/getShopTagList", method = {RequestMethod.GET})
//@ResponseBody
//List<String> getShopTagList();
@ResponseBody @ResponseBody
@RequestMapping(value = "/productType/getListAndCondition", method = {RequestMethod.POST}) @RequestMapping(value = "/productType/getListAndCondition", method = {RequestMethod.POST})
List<ProductTypeResp> getListAndCondition(@RequestBody List<Long> list); List<ProductTypeResp> getListAndCondition(@RequestBody List<Long> list);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!