Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
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
周健威
rs-cloud-platform
Commits
09375411
Commit
09375411
authored
Jan 04, 2021
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加通知信息
parent
7ef3955d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
ShoppingCartInfoBiz.java
...m/upyuns/platform/rs/website/biz/ShoppingCartInfoBiz.java
+11
-4
No files found.
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/ShoppingCartInfoBiz.java
View file @
09375411
...
...
@@ -66,6 +66,9 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
@Autowired
NoticeInfoBiz
noticeInfoBiz
;
@Autowired
ImageInfoRelationBiz
imageInfoRelationBiz
;
/**
* 添加购物车
*
...
...
@@ -155,15 +158,19 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
//影像图库
if
(
OrderTypeEnum
.
IMAGE_STORAGE
.
getType
().
equals
(
orderInfoDto
.
getType
()))
{
ImageI
mgStorage
imageImgStorage
=
imageImgStorage
Biz
.
selectById
(
orderInfoDto
.
getDetailId
());
if
(
imageI
mgStorage
!=
null
)
{
ShoppingCartInfo
old
=
selectByUser
(
appUserDTO
.
getUserid
(),
Long
.
valueOf
(
imageI
mgStorage
.
getId
()));
ImageI
nfoRelation
imageInfoRelation
=
imageInfoRelation
Biz
.
selectById
(
orderInfoDto
.
getDetailId
());
if
(
imageI
nfoRelation
!=
null
)
{
ShoppingCartInfo
old
=
selectByUser
(
appUserDTO
.
getUserid
(),
Long
.
valueOf
(
imageI
nfoRelation
.
getId
()));
if
(
old
!=
null
)
{
return
ObjectRestResponse
.
succ
();
//return ObjectRestResponse.createFailedResult(ResultCode.ORDER_GOODS_EXIST, ResultCode.getMsg(ResultCode.ORDER_GOODS_EXIST));
}
else
{
ImageImgStorage
imageImgStorage
=
imageImgStorageBiz
.
selectById
(
imageInfoRelation
.
getRelationId
());
List
<
ImageInfoRelation
>
list
=
new
ArrayList
<>();
list
.
add
(
imageInfoRelation
);
imageImgStorage
.
setImageInfoRelationList
(
list
);
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
shoppingCartInfo
.
setDetailId
(
Long
.
valueOf
(
imageI
mgStorage
.
getId
()));
shoppingCartInfo
.
setDetailId
(
Long
.
valueOf
(
imageI
nfoRelation
.
getId
()));
shoppingCartInfo
.
setDetailJson
(
JSONObject
.
toJSONString
(
imageImgStorage
));
shoppingCartInfo
.
setPrice
(
orderInfoDto
.
getPrice
());
shoppingCartInfo
.
setFilePath
(
orderInfoDto
.
getFilePath
());
...
...
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