Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
9aa2772c
Commit
9aa2772c
authored
Mar 05, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分销商个人主页订单33
parent
e5e733d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+7
-4
No files found.
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
9aa2772c
...
@@ -36,6 +36,8 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -36,6 +36,8 @@ public class SupplierItemServiceImpl implements SupplierItemService {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DistributorShareRecordServiceImpl
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
DistributorShareRecordServiceImpl
.
class
);
private
final
static
Long
SYSTEM_ACCOUNT
=
8888888888L
;
@Autowired
@Autowired
SupplierItemDao
supplierItemDao
;
SupplierItemDao
supplierItemDao
;
...
@@ -88,17 +90,18 @@ public class SupplierItemServiceImpl implements SupplierItemService {
...
@@ -88,17 +90,18 @@ public class SupplierItemServiceImpl implements SupplierItemService {
String
shareRecordId
=
dto
.
getShareRecordId
();
String
shareRecordId
=
dto
.
getShareRecordId
();
DistributorShareRecord
distributorShareRecord
=
null
;
DistributorShareRecord
distributorShareRecord
=
null
;
long
itemId
=
0
;
long
itemId
=
0
;
if
(
StringUtils
.
isEmpty
(
shareRecordId
)
&&
dto
.
getId
()
==
null
)
{
if
(
dto
.
getId
()
!=
null
)
{
itemId
=
dto
.
getId
();
}
else
if
(
StringUtils
.
isEmpty
(
shareRecordId
)
&&
dto
.
getId
()
==
null
)
{
return
Result
.
failed
(
"商品信息为空"
);
return
Result
.
failed
(
"商品信息为空"
);
}
else
if
(
StringUtils
.
hasLength
(
shareRecordId
))
{
}
else
{
distributorShareRecord
=
distributorShareRecordDao
.
findById
(
shareRecordId
);
distributorShareRecord
=
distributorShareRecordDao
.
findById
(
shareRecordId
);
if
(
distributorShareRecord
==
null
||
!
distributorShareRecord
.
getEnabled
())
{
if
(
distributorShareRecord
==
null
||
!
distributorShareRecord
.
getEnabled
())
{
return
Result
.
failed
(
"该商品已下架"
);
return
Result
.
failed
(
"该商品已下架"
);
}
else
{
}
else
{
itemId
=
distributorShareRecord
.
getItemId
();
itemId
=
distributorShareRecord
.
getItemId
();
}
}
}
else
{
itemId
=
dto
.
getId
();
}
}
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
SupplierItemVo
supplierItemVo
=
new
SupplierItemVo
();
//用户点击链接进入详情页需要记录
//用户点击链接进入详情页需要记录
...
...
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