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
59183053
Commit
59183053
authored
Mar 08, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑商品2
parent
fc013093
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
...va/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
+2
-3
No files found.
ch-admin-api/src/main/java/com/wwdz/ch/admin/impl/SysSupplierItemServiceImpl.java
View file @
59183053
...
@@ -56,7 +56,6 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
...
@@ -56,7 +56,6 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
AuctionConfigDao
auctionConfigDao
;
AuctionConfigDao
auctionConfigDao
;
@Override
@Override
@Transactional
@Transactional
public
Result
create
(
SupplierItemRequestDto
dto
)
{
public
Result
create
(
SupplierItemRequestDto
dto
)
{
...
@@ -65,9 +64,9 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
...
@@ -65,9 +64,9 @@ public class SysSupplierItemServiceImpl implements SysSupplierItemService {
//商品表中新增数据
//商品表中新增数据
SupplierItem
supplierItem
=
new
SupplierItem
();
SupplierItem
supplierItem
=
new
SupplierItem
();
EntityMapper
.
copyAttribute
(
dto
,
supplierItem
);
EntityMapper
.
copyAttribute
(
dto
,
supplierItem
);
supplierItem
.
setDistributionPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getDistributionPrice
()));
supplierItem
.
setDistributionPrice
(
PriceUtil
.
convertPriceFromStr
(
StringUtils
.
isEmpty
(
dto
.
getDistributionPrice
())?
"0"
:
dto
.
getDistributionPrice
()));
if
(
StringUtils
.
hasLength
(
dto
.
getSupplyPrice
()))
{
if
(
StringUtils
.
hasLength
(
dto
.
getSupplyPrice
()))
{
supplierItem
.
setSupplyPrice
(
PriceUtil
.
convertPriceFromStr
(
dto
.
getSupplyPrice
()));
supplierItem
.
setSupplyPrice
(
PriceUtil
.
convertPriceFromStr
(
StringUtils
.
isEmpty
(
dto
.
getSupplyPrice
())?
"0"
:
dto
.
getSupplyPrice
()));
}
}
supplierItem
.
setImages
(
dto
.
getImages
());
supplierItem
.
setImages
(
dto
.
getImages
());
supplierItem
.
setVideos
(
dto
.
getVideos
());
supplierItem
.
setVideos
(
dto
.
getVideos
());
...
...
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