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
ef7ced5c
Commit
ef7ced5c
authored
Jun 13, 2020
by
XiaHou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
权星相关接口修复
parent
d0d6c627
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
UmsMemberServiceImpl.java
.../macro/mall/service/member/impl/UmsMemberServiceImpl.java
+6
-0
PmsProductServiceImpl.java
...acro/mall/service/product/impl/PmsProductServiceImpl.java
+3
-0
No files found.
mall-service/src/main/java/com/macro/mall/service/member/impl/UmsMemberServiceImpl.java
View file @
ef7ced5c
...
@@ -715,6 +715,12 @@ public class UmsMemberServiceImpl implements UmsMemberService {
...
@@ -715,6 +715,12 @@ public class UmsMemberServiceImpl implements UmsMemberService {
}
}
if
(
umsMember
.
getPhone
()
==
null
||
""
.
equals
(
umsMember
.
getPhone
())){
if
(
umsMember
.
getPhone
()
==
null
||
""
.
equals
(
umsMember
.
getPhone
())){
return
new
ResultMsg
(
false
,
"手机号为空"
);
return
new
ResultMsg
(
false
,
"手机号为空"
);
}
else
{
//手机号不为空 校验是否已存在此号码
UmsMember
um
=
this
.
getByPhone
(
umsMember
.
getPhone
());
if
(
um
!=
null
){
return
new
ResultMsg
(
false
,
"已存在此手机号!"
);
}
}
}
if
(
umsMember
.
getPassword
()
==
null
||
""
.
equals
(
umsMember
.
getPassword
())){
if
(
umsMember
.
getPassword
()
==
null
||
""
.
equals
(
umsMember
.
getPassword
())){
return
new
ResultMsg
(
false
,
"密码为空"
);
return
new
ResultMsg
(
false
,
"密码为空"
);
...
...
mall-service/src/main/java/com/macro/mall/service/product/impl/PmsProductServiceImpl.java
View file @
ef7ced5c
...
@@ -188,6 +188,7 @@ public class PmsProductServiceImpl implements PmsProductService {
...
@@ -188,6 +188,7 @@ public class PmsProductServiceImpl implements PmsProductService {
this
.
pmsProductSkuValueDao
.
updateDeleteStatusByProductId
(
ppsv
);
this
.
pmsProductSkuValueDao
.
updateDeleteStatusByProductId
(
ppsv
);
pmsProductRequestParam
.
getPmsProductSkuValueList
().
forEach
(
pmsProductSkuValue
->{
pmsProductRequestParam
.
getPmsProductSkuValueList
().
forEach
(
pmsProductSkuValue
->{
pmsProductSkuValue
.
setId
(
null
);
//防止前端 传入之前id 插入主键重复数据
pmsProductSkuValue
.
setProductId
(
pmsProductRequestParam
.
getPmsProduct
().
getId
());
pmsProductSkuValue
.
setProductId
(
pmsProductRequestParam
.
getPmsProduct
().
getId
());
pmsProductSkuValue
.
setCreateDate
(
new
Date
());
pmsProductSkuValue
.
setCreateDate
(
new
Date
());
pmsProductSkuValue
.
setUpdateDate
(
new
Date
());
pmsProductSkuValue
.
setUpdateDate
(
new
Date
());
...
@@ -208,6 +209,7 @@ public class PmsProductServiceImpl implements PmsProductService {
...
@@ -208,6 +209,7 @@ public class PmsProductServiceImpl implements PmsProductService {
for
(
int
i
=
0
;
i
<
categoryIds
.
length
;
i
++)
{
for
(
int
i
=
0
;
i
<
categoryIds
.
length
;
i
++)
{
skuCode
=
skuCode
+
"_"
+
categoryIds
[
i
];
skuCode
=
skuCode
+
"_"
+
categoryIds
[
i
];
}
}
pmsSkuStock
.
setId
(
null
);
//防止前端传入之前id 插入报主键重复
pmsSkuStock
.
setSkuCode
(
skuCode
);
pmsSkuStock
.
setSkuCode
(
skuCode
);
pmsSkuStock
.
setProductId
(
pmsProductRequestParam
.
getPmsProduct
().
getId
());
pmsSkuStock
.
setProductId
(
pmsProductRequestParam
.
getPmsProduct
().
getId
());
pmsSkuStock
.
setCreateDate
(
new
Date
());
pmsSkuStock
.
setCreateDate
(
new
Date
());
...
@@ -938,6 +940,7 @@ public class PmsProductServiceImpl implements PmsProductService {
...
@@ -938,6 +940,7 @@ public class PmsProductServiceImpl implements PmsProductService {
//获取已审核的
//获取已审核的
pmsProduct
=
new
PmsProduct
();
pmsProduct
=
new
PmsProduct
();
pmsProduct
.
setMchtId
(
memberId
);
pmsProduct
.
setMchtId
(
memberId
);
pmsProduct
.
setPublishStatus
(
1
);
//上架状态:0->下架;1->上架
pmsProduct
.
setVerifyStatus
(
1
);
//审核状态:0->未审核;1->审核通过 2->驳回 3->审核失败
pmsProduct
.
setVerifyStatus
(
1
);
//审核状态:0->未审核;1->审核通过 2->驳回 3->审核失败
dataMap
.
put
(
"已审核"
,
this
.
productDao
.
getProductCount
(
pmsProduct
));
dataMap
.
put
(
"已审核"
,
this
.
productDao
.
getProductCount
(
pmsProduct
));
//获取未通过
//获取未通过
...
...
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