Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
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
黄奎
mall.oytour.com
Commits
6e820300
Commit
6e820300
authored
Apr 13, 2021
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复重新入库相同商品
parent
9932eb88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
PropertyModule.cs
Mall.Module.Property/PropertyModule.cs
+2
-2
RB_Supplies_InventoryRepository.cs
Mall.Repository/Property/RB_Supplies_InventoryRepository.cs
+2
-2
No files found.
Mall.Module.Property/PropertyModule.cs
View file @
6e820300
...
...
@@ -817,7 +817,7 @@ namespace Mall.Module.Property
if
(
demodel
.
StockInState
==
1
)
{
//新增库存表数据
var
ilist
=
supplies_InventoryRepository
.
GetList
(
new
RB_Supplies_Inventory_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
WarehouseId
=
demodel
.
WarehouseId
,
SuppliesId
=
item
.
SuppliesId
});
var
ilist
=
supplies_InventoryRepository
.
GetList
(
new
RB_Supplies_Inventory_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
WarehouseId
=
demodel
.
WarehouseId
,
SuppliesId
=
item
.
SuppliesId
}
,
trans
);
if
(
ilist
.
Any
())
{
var
iModel
=
ilist
.
FirstOrDefault
();
...
...
@@ -1624,7 +1624,7 @@ namespace Mall.Module.Property
{
//查询出该仓库 耗材下 所有的库存
string
Sstr
=
string
.
Join
(
","
,
list
.
Select
(
x
=>
x
.
Id
).
Distinct
());
iList
=
supplies_InventoryRepository
.
GetList
(
new
RB_Supplies_Inventory_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
WarehouseIdStr
=
demodel
.
WareHouseId
.
Value
.
ToString
(),
SuppliesIdStr
=
Sstr
});
iList
=
supplies_InventoryRepository
.
GetList
(
new
RB_Supplies_Inventory_Extend
()
{
RB_Group_Id
=
demodel
.
RB_Group_Id
,
WarehouseIdStr
=
demodel
.
WareHouseId
.
Value
.
ToString
(),
SuppliesIdStr
=
Sstr
}
,
null
);
}
foreach
(
var
item
in
list
)
{
...
...
Mall.Repository/Property/RB_Supplies_InventoryRepository.cs
View file @
6e820300
...
...
@@ -44,7 +44,7 @@ namespace Mall.Repository.Property
/// </summary>
/// <param name="dmodel"></param>
/// <returns></returns>
public
List
<
RB_Supplies_Inventory_Extend
>
GetList
(
RB_Supplies_Inventory_Extend
dmodel
)
public
List
<
RB_Supplies_Inventory_Extend
>
GetList
(
RB_Supplies_Inventory_Extend
dmodel
,
System
.
Data
.
IDbTransaction
trans
)
{
string
where
=
" where 1=1 "
;
where
+=
string
.
Format
(
" AND {0}={1}"
,
nameof
(
RB_Supplies_Inventory_Extend
.
Status
),
0
);
...
...
@@ -67,7 +67,7 @@ namespace Mall.Repository.Property
}
string
sql
=
$@" select * from RB_Supplies_Inventory
{
where
}
order by Id desc"
;
return
Get
<
RB_Supplies_Inventory_Extend
>(
sql
).
ToList
();
return
Get
<
RB_Supplies_Inventory_Extend
>(
sql
,
null
,
trans
).
ToList
();
}
/// <summary>
...
...
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