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
17fdf7b0
Commit
17fdf7b0
authored
Sep 04, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
用户更新藏品,预估价设置null3
parent
34e731e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/SupplierItemDao.java
...java/com/wwdz/ch/db/dao/distribution/SupplierItemDao.java
+1
-0
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
...wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
+5
-4
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dao/distribution/SupplierItemDao.java
View file @
17fdf7b0
...
...
@@ -62,6 +62,7 @@ public interface SupplierItemDao {
*/
int
delete
(
long
itemId
);
/**
* 首页查询商品列表
* @param supplierItemRequestDto
...
...
ch-wx-api/src/main/java/com/wwdz/ch/wx/impl/distribution/SupplierItemServiceImpl.java
View file @
17fdf7b0
...
...
@@ -810,15 +810,16 @@ public class SupplierItemServiceImpl implements SupplierItemService {
try
{
SupplierItem
oldItem
=
supplierItemDao
.
findById
(
dto
.
getId
());
SupplierItem
supplierItem
=
new
SupplierItem
();
BeanUtil
.
copyProperties
(
oldItem
,
supplierItem
);
BeanUtil
.
copyProperties
(
dto
,
supplierItem
);
EntityMapper
.
copyAttribute
(
oldItem
,
supplierItem
);
EntityMapper
.
copyAttribute
(
dto
,
supplierItem
);
supplierItem
.
setDistributionPrice
(
PriceUtil
.
convertPriceFromStr
(
StringUtils
.
isEmpty
(
dto
.
getDistributionPrice
())?
"0"
:
dto
.
getDistributionPrice
()));
supplierItem
.
setImages
(
dto
.
getImages
());
supplierItem
.
setOfficialEstimatedPrice
(
null
);
/*
supplierItem.setType(oldItem.getType());
supplierItem
.
setType
(
oldItem
.
getType
());
supplierItem
.
setCreatorId
(
oldItem
.
getCreatorId
());
supplierItem
.
setRebate
(
oldItem
.
getRebate
());
supplierItem.setSupplierId(oldItem.getSupplierId());*/
supplierItem
.
setSupplierId
(
oldItem
.
getSupplierId
());
supplierItem
.
setIsDeleted
(
oldItem
.
getIsDeleted
());
if
(
StringUtils
.
hasLength
(
dto
.
getVideos
()))
{
supplierItem
.
setVideos
(
getVideosImage
(
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