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
91e29dba
Commit
91e29dba
authored
Dec 18, 2020
by
unset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
123
parent
89b4eaf4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
6 deletions
+12
-6
ResultCode.java
...thub/wxiaoqi/security/common/util/process/ResultCode.java
+3
-0
resultcod.properties
...common/src/main/resources/properties/resultcod.properties
+6
-0
AppUserManageBiz.java
...m/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
+0
-3
ShoppingCartInfoBiz.java
...m/upyuns/platform/rs/website/biz/ShoppingCartInfoBiz.java
+3
-3
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/util/process/ResultCode.java
View file @
91e29dba
...
...
@@ -45,6 +45,9 @@ public class ResultCode {
public
static
int
ORDER_NOT_EXIST
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ORDER_NOT_EXIST"
));
public
static
int
ORDER_GOODS_EXIST
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ORDER_GOODS_EXIST"
));
public
static
int
GET_AUTH_INFO_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"GET_AUTH_INFO_FAILED_CODE"
));
public
static
int
WRONG_FORMAT_OF_ID_CARD
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"WRONG_FORMAT_OF_ID_CARD"
));
...
...
ace-common/src/main/resources/properties/resultcod.properties
View file @
91e29dba
...
...
@@ -75,6 +75,11 @@ INCOMPLETE_DATA=4006
ORDER_NOT_EXIST
=
20001
20001
=
该订单不存在
ORDER_GOODS_EXIST
=
20002
20002
=
购物车商品已存在
#参数时效已过时
PARAM_EXPIRE_CODE
=
1010
1010
=
参数时效已过时,不能使用
...
...
@@ -86,3 +91,4 @@ GET_APPUSER_FAILED_CODE=4003
#手机号已绑定微信
WX_BIND_CODE
=
4002
4002
=
手机号已绑定微信
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/biz/AppUserManageBiz.java
View file @
91e29dba
...
...
@@ -58,9 +58,6 @@ public class AppUserManageBiz extends BaseBiz<AppUserDetailMapper, AppUserDetail
PageHelper
.
startPage
(
appUserManageDTO
.
getPage
(),
appUserManageDTO
.
getLimit
());
List
<
AppUserManageVo
>
appUserManageVos
=
mapper
.
selectAppUser
(
appUserManageDTO
);
PageInfo
<
AppUserManageVo
>
pageInfo
=
PageInfo
.
of
(
appUserManageVos
);
if
(
pageInfo
.
getList
()
==
null
||
pageInfo
.
getList
().
size
()
==
0
)
{
return
new
PageInfo
<>();
}
return
pageInfo
;
}
...
...
rs-website/rs-website-server/src/main/java/com/upyuns/platform/rs/website/biz/ShoppingCartInfoBiz.java
View file @
91e29dba
...
...
@@ -123,7 +123,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
ImageDataVO
imageDataVO
=
imageDataVOList
.
get
(
0
);
ShoppingCartInfo
old
=
selectByUser
(
appUserDTO
.
getUserid
(),
Long
.
valueOf
(
imageDataVO
.
getId
()));
if
(
old
!=
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"商品不能重复添加购物车!"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
ORDER_GOODS_EXIST
,
ResultCode
.
getMsg
(
ResultCode
.
ORDER_GOODS_EXIST
)
);
}
else
{
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
shoppingCartInfo
.
setDetailId
(
Long
.
valueOf
(
imageDataVO
.
getId
()));
...
...
@@ -152,7 +152,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
if
(
imageImgStorage
!=
null
)
{
ShoppingCartInfo
old
=
selectByUser
(
appUserDTO
.
getUserid
(),
Long
.
valueOf
(
imageImgStorage
.
getId
()));
if
(
old
!=
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"商品不能重复添加购物车!"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
ORDER_GOODS_EXIST
,
ResultCode
.
getMsg
(
ResultCode
.
ORDER_GOODS_EXIST
)
);
}
else
{
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
shoppingCartInfo
.
setDetailId
(
Long
.
valueOf
(
imageImgStorage
.
getId
()));
...
...
@@ -183,7 +183,7 @@ public class ShoppingCartInfoBiz extends BaseBiz<ShoppingCartInfoMapper, Shoppin
if
(
industryApplicationInfo
!=
null
)
{
ShoppingCartInfo
old
=
selectByUser
(
appUserDTO
.
getUserid
(),
Long
.
valueOf
(
industryApplicationInfo
.
getId
()));
if
(
old
!=
null
)
{
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
FAILED_CODE
,
"商品不能重复添加购物车!"
);
return
ObjectRestResponse
.
createFailedResult
(
ResultCode
.
ORDER_GOODS_EXIST
,
ResultCode
.
getMsg
(
ResultCode
.
ORDER_GOODS_EXIST
)
);
}
else
{
ShoppingCartInfo
shoppingCartInfo
=
new
ShoppingCartInfo
();
shoppingCartInfo
.
setDetailId
(
Long
.
valueOf
(
industryApplicationInfo
.
getId
()));
...
...
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