Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fileServe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vanke
fileServe
Commits
3cf04651
Commit
3cf04651
authored
Jun 13, 2020
by
XiaHou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权星相关接口修复
parent
f38af83e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
PmsProductController.java
...mall/portal/controller/quanxing/PmsProductController.java
+23
-0
No files found.
mall-portal/src/main/java/com/macro/mall/portal/controller/quanxing/PmsProductController.java
View file @
3cf04651
...
@@ -69,4 +69,27 @@ public class PmsProductController {
...
@@ -69,4 +69,27 @@ public class PmsProductController {
}
}
return
CommonResult
.
failed
(
res
.
getMsg
());
return
CommonResult
.
failed
(
res
.
getMsg
());
}
}
@ApiOperation
(
"权星小程序_创建商品"
)
@RequestMapping
(
value
=
"/addProduct"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
CommonResult
addProduct
(
@RequestBody
PmsProductRequestParam
pmsProductRequestParam
){
ResultMsg
res
=
this
.
pmsProductService
.
addProduct
(
pmsProductRequestParam
);
if
(
res
.
isFlag
()){
return
CommonResult
.
success
(
null
,
res
.
getMsg
());
}
return
CommonResult
.
failed
(
res
.
getMsg
());
}
@ApiOperation
(
"权星后台_修改商品后保存操作 如果sku有变动则需传入pmsProductSkuValueList以及pmsSkuStockList 没有变动则不需传"
)
@RequestMapping
(
value
=
"/update"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
//@PreAuthorize("hasAuthority('pms:product:update')")
public
CommonResult
update
(
@RequestBody
PmsProductRequestParam
pmsProductRequestParam
)
{
ResultMsg
res
=
pmsProductService
.
updateProduct
(
pmsProductRequestParam
);
if
(
res
.
isFlag
()){
return
CommonResult
.
success
(
null
,
res
.
getMsg
());
}
return
CommonResult
.
failed
(
res
.
getMsg
());
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment