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
766fc5c0
Commit
766fc5c0
authored
Sep 03, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台商品列表加上交换类型
parent
69fe08bc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+4
-4
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
766fc5c0
...
...
@@ -159,7 +159,8 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
if
(
dto
.
getType
()
==
null
)
{
dto
.
setTypeList
(
Arrays
.
asList
(
DistributionEnum
.
DistributionTypeEnum
.
FIXED_PRICE
.
getCode
(),
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
(),
DistributionEnum
.
DistributionTypeEnum
.
DISCOUNT
.
getCode
()));
DistributionEnum
.
DistributionTypeEnum
.
DISCOUNT
.
getCode
(),
DistributionEnum
.
DistributionTypeEnum
.
EXCHANGE
.
getCode
()));
}
Date
now
=
new
Date
();
List
<
SupplierItem
>
supplierItemList
=
supplierItemDao
.
findList
(
dto
);
...
...
@@ -172,7 +173,8 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
supplierItemVo
.
setOfficialEstimatedPrice
(
PriceUtil
.
convertPriceFenToYuan
(
supplierItem
.
getOfficialEstimatedPrice
()));
supplierItemVo
.
setHomePageImage
(
MediaUtil
.
getHomePageImage
(
supplierItem
.
getImages
(),
supplierItem
.
getVideos
()));
supplierItemVo
.
setTypeName
(
DistributionEnum
.
DistributionTypeEnum
.
getNameByCode
(
supplierItem
.
getType
()));
supplierItemVo
.
setCreatorName
(
supplierItem
.
getCreatorId
()
==
CommConsts
.
SYSTEM_ACCOUNT
.
longValue
()?
"平台自营"
:
cacheUtil
.
getAppletUserById
(
supplierItem
.
getCreatorId
()).
getNickname
());
supplierItemVo
.
setCreatorName
(
supplierItem
.
getCreatorId
()
==
CommConsts
.
SYSTEM_ACCOUNT
.
longValue
()
||
supplierItem
.
getCreatorId
()
==
CommConsts
.
SELF_SUPPORT_ACCOUNT
.
longValue
()?
"平台自营"
:
cacheUtil
.
getAppletUserById
(
supplierItem
.
getCreatorId
()).
getNickname
());
supplierItemVo
.
setStatusName
(
SupplierItemEnum
.
StatusEnum
.
getNameByCode
(
supplierItem
.
getStatus
()));
if
(
supplierItemDao
.
isSupplierIdExisted
(
supplierItem
.
getId
(),
DistributionEnum
.
DistributionTypeEnum
.
AUCTION
.
getCode
()))
{
supplierItemVo
.
setIsTransformAuction
(
true
);
...
...
@@ -184,8 +186,6 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
}
else
{
supplierItemVo
.
setIsTransformGroupPurchase
(
false
);
}
if
(
supplierItem
.
getBuyLimitNum
()
==
-
1
)
{
supplierItemVo
.
setIsLimitBuy
(
false
);
}
...
...
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