Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warehouse
Overview
Overview
Details
Activity
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
胡懿
warehouse
Commits
03cc9f0e
Commit
03cc9f0e
authored
Aug 07, 2023
by
zhanglt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出库单bug修复
parent
6ddc39b4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
OutboundInfoMapper.xml
...ules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
+6
-0
OutboundService.java
...s/modules/warehouse/outbound/service/OutboundService.java
+14
-1
No files found.
src/main/java/com/jeeplus/modules/warehouse/outbound/mapper/xml/OutboundInfoMapper.xml
View file @
03cc9f0e
...
...
@@ -6,6 +6,12 @@
a.id AS "id",
a.outbound_id AS "outbound.id",
a.ledger_info_id AS "ledgerInfo.id",
ledgerInfo.code AS "ledgerInfo.code",
ledgerInfo.batch_num AS "ledgerInfo.batchNum",
ledgerInfo.model AS "ledgerInfo.model",
ledgerInfo.amount AS "ledgerInfo.amount",
ledgerInfo.shelves_ids AS "ledgerInfo.shelvesIds",
ledgerInfo.warehouse_ids AS "ledgerInfo.warehouseIds",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
...
...
src/main/java/com/jeeplus/modules/warehouse/outbound/service/OutboundService.java
View file @
03cc9f0e
...
...
@@ -12,8 +12,12 @@ import com.jeeplus.modules.warehouse.ledger.entity.Ledger;
import
com.jeeplus.modules.warehouse.ledger.entity.LedgerInfo
;
import
com.jeeplus.modules.warehouse.ledger.mapper.LedgerInfoMapper
;
import
com.jeeplus.modules.warehouse.ledger.mapper.LedgerMapper
;
import
com.jeeplus.modules.warehouse.materialrequisition.entity.MaterialRequisitionInfo
;
import
com.jeeplus.modules.warehouse.qrcode.entity.QrCode
;
import
com.jeeplus.modules.warehouse.qrcode.service.QrCodeService
;
import
com.jeeplus.modules.warehouse.shelves.entity.Shelves
;
import
com.jeeplus.modules.warehouse.shelves.utils.ShelvesUtil
;
import
com.jeeplus.modules.warehouse.warehouse.entity.Warehouse
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -47,7 +51,16 @@ public class OutboundService extends CrudService<OutboundMapper, Outbound> {
public
Outbound
get
(
String
id
)
{
Outbound
outbound
=
super
.
get
(
id
);
outbound
.
setOutboundInfoList
(
outboundInfoMapper
.
findList
(
new
OutboundInfo
(
outbound
)));
List
<
OutboundInfo
>
list
=
outboundInfoMapper
.
findList
(
new
OutboundInfo
(
outbound
));
for
(
OutboundInfo
obi
:
list
)
{
LedgerInfo
li
=
obi
.
getLedgerInfo
();
List
<
Shelves
>
shelvesList
=
ShelvesUtil
.
getShelvesListByIds
(
li
.
getShelvesIds
());
li
.
setShelvesList
(
shelvesList
);
List
<
Warehouse
>
warehouseList
=
ShelvesUtil
.
getWarehouseListByIds
(
li
.
getWarehouseIds
());
li
.
setWarehouseList
(
warehouseList
);
}
outbound
.
setOutboundInfoList
(
list
);
return
outbound
;
}
...
...
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