Commit d9e06e54 by tyfanchz

修改:去除无用接口

1 parent 8449601e
...@@ -12,7 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired; ...@@ -12,7 +12,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
/** /**
...@@ -112,17 +111,17 @@ public class ProductController { ...@@ -112,17 +111,17 @@ public class ProductController {
return productService.getCommandSetById(id); return productService.getCommandSetById(id);
} }
/** ///**
* 校验商城商品 id。 // * 校验商城商品 id。
* // *
* @param shopProductId 商品 id // * @param shopProductId 商品 id
* @return 商品 id 是否合法 // * @return 商品 id 是否合法
*/ // */
@RequestMapping(value = "/checkShopProductId", method = {RequestMethod.GET, RequestMethod.POST}) //@RequestMapping(value = "/checkShopProductId", method = {RequestMethod.GET, RequestMethod.POST})
public Boolean checkShopProductId(String shopProductId) { //public Boolean checkShopProductId(String shopProductId) {
log.info("$$$$ /product/checkShopProductId param: {}", shopProductId); // log.info("$$$$ /product/checkShopProductId param: {}", shopProductId);
return productService.checkShopProductId(shopProductId); // return productService.checkShopProductId(shopProductId);
} //}
/** /**
* 上下架产品。 * 上下架产品。
......
...@@ -73,16 +73,16 @@ public class ProductTypeController { ...@@ -73,16 +73,16 @@ public class ProductTypeController {
return productTypeService.save(productType); return productTypeService.save(productType);
} }
/** ///**
* 获取商城标签。 // * 获取商城标签。
* // *
* @return 结果 // * @return 结果
*/ // */
@RequestMapping(value = "/getShopTagList", method = {RequestMethod.GET, RequestMethod.POST}) //@RequestMapping(value = "/getShopTagList", method = {RequestMethod.GET, RequestMethod.POST})
public List<String> getShopTagList() { //public List<String> getShopTagList() {
log.info("$$$$ /productType/getShopTagList ..."); // log.info("$$$$ /productType/getShopTagList ...");
return productTypeService.getShopTagList(); // return productTypeService.getShopTagList();
} //}
/** /**
* 根据id列表获取指令执行内容 * 根据id列表获取指令执行内容
......
package com.glsx.smart.controller; package com.glsx.smart.controller;
import java.util.List;
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSON;
import com.glsx.plat.common.utils.StringUtils; import com.glsx.plat.common.utils.StringUtils;
import com.glsx.plat.core.web.R; import com.glsx.plat.core.web.R;
...@@ -14,8 +15,6 @@ import org.springframework.web.bind.annotation.RequestMapping; ...@@ -14,8 +15,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/** /**
* <p>Description: * <p>Description:
* <p>Project: chejia-smart * <p>Project: chejia-smart
...@@ -32,7 +31,7 @@ public class SysCodeController { ...@@ -32,7 +31,7 @@ public class SysCodeController {
private SmartSysCodeService sysCodeService; private SmartSysCodeService sysCodeService;
@RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST}) @RequestMapping(value = "/getList", method = {RequestMethod.GET, RequestMethod.POST})
public R getList(@RequestBody SmartSysCode code) { public R getList(SmartSysCode code) {
log.info("/sysCode/getList param: {}", JSON.toJSONString(code)); log.info("/sysCode/getList param: {}", JSON.toJSONString(code));
if(StringUtils.isEmpty(code.getDictType()) if(StringUtils.isEmpty(code.getDictType())
|| StringUtils.isEmpty(code.getParentKey())){ || StringUtils.isEmpty(code.getParentKey())){
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!