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
84ef6507
Commit
84ef6507
authored
Jul 20, 2023
by
胡懿
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改领用模块查看列表详情逻辑
parent
1885a7de
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
15 deletions
+32
-15
MaterialLossInfoMapper.xml
...ehouse/materialloss/mapper/xml/MaterialLossInfoMapper.xml
+5
-8
MaterialRequisitionInfoMapper.xml
...lrequisition/mapper/xml/MaterialRequisitionInfoMapper.xml
+15
-6
MaterialRequisitionService.java
...terialrequisition/service/MaterialRequisitionService.java
+12
-1
No files found.
src/main/java/com/jeeplus/modules/warehouse/materialloss/mapper/xml/MaterialLossInfoMapper.xml
View file @
84ef6507
...
@@ -6,15 +6,14 @@
...
@@ -6,15 +6,14 @@
a.id AS "id",
a.id AS "id",
a.material_loss_id AS "materialLoss.id",
a.material_loss_id AS "materialLoss.id",
a.ledger_info_id AS "ledgerInfo.id",
a.ledger_info_id AS "ledgerInfo.id",
ledgerInfo.name AS "ledgerInfo.name",
ledgerInfo.code AS "ledgerInfo.code",
ledgerInfo.code AS "ledgerInfo.code",
ledgerInfo.type_id AS "ledgerInfo.type.id",
ledgerInfo.type_id AS "ledgerInfo.type.id",
ledgerInfo.batch_num AS "ledgerInfo.batch_num",
ledgerInfo.batch_num AS "ledgerInfo.batchNum",
ledgerInfo.shelves_id AS "ledgerInfo.shelves.id",
ledgerInfo.shelves_ids AS "ledgerInfo.shelvesIds",
warehouse.id AS "ledgerInfo.shelves.warehouse.id",
ledgerInfo.warehouse_ids AS "ledgerInfo.warehouseIds",
warehouse.name AS "ledgerInfo.shelves.warehouse.name",
shelves.name AS "ledgerInfo.shelves.name",
tpye.name AS "ledgerInfo.type.name",
tpye.name AS "ledgerInfo.type.name",
tpye.code AS "ledgerInfo.type.code",
tpye.unit AS "ledgerInfo.type.unit",
ledgerInfo.model AS "ledgerInfo.model",
ledgerInfo.model AS "ledgerInfo.model",
ledgerInfo.amount AS "ledgerInfo.amount",
ledgerInfo.amount AS "ledgerInfo.amount",
a.remarks AS "remarks",
a.remarks AS "remarks",
...
@@ -27,8 +26,6 @@
...
@@ -27,8 +26,6 @@
<sql
id=
"materialLossInfoJoins"
>
<sql
id=
"materialLossInfoJoins"
>
left join t_wh_ledger_info ledgerInfo on a.ledger_info_id = ledgerInfo.id
left join t_wh_ledger_info ledgerInfo on a.ledger_info_id = ledgerInfo.id
left join t_wh_shelves shelves on ledgerInfo.shelves_id = shelves.id
left join t_wh_warehouse warehouse on shelves.warehouse_id = warehouse.id
LEFT JOIN t_wh_material_type tpye ON ledgerInfo.type_id = tpye.id
LEFT JOIN t_wh_material_type tpye ON ledgerInfo.type_id = tpye.id
</sql>
</sql>
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/mapper/xml/MaterialRequisitionInfoMapper.xml
View file @
84ef6507
...
@@ -6,19 +6,28 @@
...
@@ -6,19 +6,28 @@
a.id AS "id",
a.id AS "id",
a.material_requisition_id AS "materialRequisition.id",
a.material_requisition_id AS "materialRequisition.id",
a.ledger_info_id AS "ledgerInfo.id",
a.ledger_info_id AS "ledgerInfo.id",
a.remarks AS "remarks",
a.receiver AS "receiver",
a.create_by AS "createBy.id",
a.create_by AS "createBy.id",
a.create_date AS "createDate",
a.create_date AS "createDate",
a.update_by AS "updateBy.id",
a.update_by AS "updateBy.id",
a.update_date AS "updateDate",
a.update_date AS "updateDate",
a.del_flag AS "delFlag",
ledgerInfo.name AS "ledgerInfo.name",
ledgerInfo.code AS "ledgerInfo.code",
ledgerInfo.code AS "ledgerInfo.code",
ledgerInfo.type_id AS "ledgerInfo.type.id",
ledgerInfo.batch_num AS "ledgerInfo.batchNum",
tpye.name AS "ledgerInfo.type.name",
ledgerInfo.model AS "ledgerInfo.model",
ledgerInfo.model AS "ledgerInfo.model",
ledgerInfo.amount AS "ledgerInfo.amount",
ledgerInfo.amount AS "ledgerInfo.amount",
a.remarks AS "remarks",
ledgerInfo.shelves_ids AS "ledgerInfo.shelvesIds",
a.receiver AS "receiver"
ledgerInfo.warehouse_ids AS "ledgerInfo.warehouseIds",
ledgerInfo.type_id AS "ledgerInfo.type.id",
tpye.name AS "ledgerInfo.type.name",
tpye.code AS "ledgerInfo.type.code",
tpye.unit AS "ledgerInfo.type.unit",
a.del_flag AS "delFlag"
</sql>
</sql>
<sql
id=
"materialRequisitionInfoJoins"
>
<sql
id=
"materialRequisitionInfoJoins"
>
...
...
src/main/java/com/jeeplus/modules/warehouse/materialrequisition/service/MaterialRequisitionService.java
View file @
84ef6507
...
@@ -19,6 +19,9 @@ import com.jeeplus.modules.warehouse.outbound.entity.OutboundInfo;
...
@@ -19,6 +19,9 @@ import com.jeeplus.modules.warehouse.outbound.entity.OutboundInfo;
import
com.jeeplus.modules.warehouse.outbound.service.OutboundService
;
import
com.jeeplus.modules.warehouse.outbound.service.OutboundService
;
import
com.jeeplus.modules.warehouse.qrcode.entity.QrCode
;
import
com.jeeplus.modules.warehouse.qrcode.entity.QrCode
;
import
com.jeeplus.modules.warehouse.qrcode.service.QrCodeService
;
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.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
...
@@ -54,7 +57,15 @@ public class MaterialRequisitionService extends CrudService<MaterialRequisitionM
...
@@ -54,7 +57,15 @@ public class MaterialRequisitionService extends CrudService<MaterialRequisitionM
public
MaterialRequisition
get
(
String
id
)
{
public
MaterialRequisition
get
(
String
id
)
{
MaterialRequisition
materialRequisition
=
super
.
get
(
id
);
MaterialRequisition
materialRequisition
=
super
.
get
(
id
);
materialRequisition
.
setMaterialRequisitionInfoList
(
materialRequisitionInfoMapper
.
findList
(
new
MaterialRequisitionInfo
(
materialRequisition
)));
List
<
MaterialRequisitionInfo
>
list
=
materialRequisitionInfoMapper
.
findList
(
new
MaterialRequisitionInfo
(
materialRequisition
));
for
(
MaterialRequisitionInfo
mri
:
list
)
{
LedgerInfo
li
=
mri
.
getLedgerInfo
();
List
<
Shelves
>
shelvesList
=
ShelvesUtil
.
getShelvesListByIds
(
li
.
getShelvesIds
());
li
.
setShelvesList
(
shelvesList
);
List
<
Warehouse
>
warehouseList
=
ShelvesUtil
.
getWarehouseListByIds
(
li
.
getWarehouseIds
());
li
.
setWarehouseList
(
warehouseList
);
}
materialRequisition
.
setMaterialRequisitionInfoList
(
list
);
return
materialRequisition
;
return
materialRequisition
;
}
}
...
...
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