Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms_api
Project
Project
Details
Activity
Releases
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
高宇
wms_api
Commits
c1716341
Commit
c1716341
authored
Dec 25, 2024
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改退单
parent
f957b7d6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
StoreGoodsApplyServiceImpl.java
...regoodsapply/service/impl/StoreGoodsApplyServiceImpl.java
+4
-1
StoreGoodsLogServiceImpl.java
.../storegoodslog/service/impl/StoreGoodsLogServiceImpl.java
+4
-1
StoreGoodsStockRepository.java
...ft/bus/storegoodsstock/dao/StoreGoodsStockRepository.java
+1
-1
StoreGoodsStockMapper.xml
...rces/mapper/bus/storeGoodsStock/StoreGoodsStockMapper.xml
+2
-1
No files found.
src/main/java/org/rcisoft/bus/storegoodsapply/service/impl/StoreGoodsApplyServiceImpl.java
View file @
c1716341
...
...
@@ -275,7 +275,10 @@ public class StoreGoodsApplyServiceImpl extends ServiceImpl<StoreGoodsApplyRepos
storeGoodsLog
.
setApplyId
(
storeGoodsApply
.
getBusinessId
());
//根据id查询子表
for
(
StoreGoodsLog
box
:
storeGoodsLogServiceImpl
.
findAll
(
storeGoodsLog
))
{
StoreGoodsStock
goodsStock
=
storeGoodsStockRepository
.
selectByGoodsId
(
box
.
getGoodsId
());
StoreGoodsStock
oldStoreGoodsStock
=
new
StoreGoodsStock
();
oldStoreGoodsStock
.
setGoodsId
(
box
.
getGoodsId
());
oldStoreGoodsStock
.
setStoreId
(
CyUserUtil
.
getAuthenDept
());
StoreGoodsStock
goodsStock
=
storeGoodsStockRepository
.
selectByGoodsId
(
oldStoreGoodsStock
);
goodsStock
.
setGoodsCounts
(
goodsStock
.
getGoodsCounts
()
+
box
.
getGoodsCounts
());
// 返回库存
storeGoodsStockRepositoryImpl
.
updateCounts
(
goodsStock
);
...
...
src/main/java/org/rcisoft/bus/storegoodslog/service/impl/StoreGoodsLogServiceImpl.java
View file @
c1716341
...
...
@@ -110,7 +110,10 @@ public class StoreGoodsLogServiceImpl extends ServiceImpl<StoreGoodsLogRepositor
if
(
storeGoodsLog
.
getIsReturn
().
equals
(
"1"
)){
for
(
StoreGoodsLog
box
:
storeGoodsLogServiceImpl
.
findAll
(
oldStoreGoodsLog
))
{
StoreGoodsStock
goodsStock
=
storeGoodsStockRepository
.
selectByGoodsId
(
box
.
getGoodsId
());
StoreGoodsStock
oldStoreGoodsStock
=
new
StoreGoodsStock
();
oldStoreGoodsStock
.
setGoodsId
(
box
.
getGoodsId
());
oldStoreGoodsStock
.
setStoreId
(
CyUserUtil
.
getAuthenDept
());
StoreGoodsStock
goodsStock
=
storeGoodsStockRepository
.
selectByGoodsId
(
oldStoreGoodsStock
);
goodsStock
.
setGoodsCounts
(
goodsStock
.
getGoodsCounts
()
+
box
.
getGoodsCounts
());
// 返回库存
storeGoodsStockRepositoryImpl
.
updateCounts
(
goodsStock
);
...
...
src/main/java/org/rcisoft/bus/storegoodsstock/dao/StoreGoodsStockRepository.java
View file @
c1716341
...
...
@@ -26,6 +26,6 @@ public interface StoreGoodsStockRepository extends CyBaseMapper<StoreGoodsStock>
StoreGoodsStock
selectByIdOut
(
int
id
);
StoreGoodsStock
selectByGoodsId
(
int
id
);
StoreGoodsStock
selectByGoodsId
(
@Param
(
"entity"
)
StoreGoodsStock
storeGoodsStock
);
}
src/main/resources/mapper/bus/storeGoodsStock/StoreGoodsStockMapper.xml
View file @
c1716341
...
...
@@ -178,6 +178,7 @@
<select
id=
"selectByGoodsId"
resultType=
"org.rcisoft.bus.storegoodsstock.entity.StoreGoodsStock"
>
select *
from store_goods_stock
where goods_id = #{goodsId}
where goods_id = #{entity.goodsId}
and store_id = #{entity.storeId}
</select>
</mapper>
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