Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d9e06e54
authored
Mar 25, 2021
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改:去除无用接口
1 parent
8449601e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
25 deletions
src/main/java/com/glsx/smart/controller/ProductController.java
src/main/java/com/glsx/smart/controller/ProductTypeController.java
src/main/java/com/glsx/smart/controller/SysCodeController.java
src/main/java/com/glsx/smart/controller/ProductController.java
View file @
d9e06e5
...
@@ -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);
}
//
}
/**
/**
* 上下架产品。
* 上下架产品。
...
...
src/main/java/com/glsx/smart/controller/ProductTypeController.java
View file @
d9e06e5
...
@@ -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列表获取指令执行内容
...
...
src/main/java/com/glsx/smart/controller/SysCodeController.java
View file @
d9e06e5
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
())){
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment