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
e2f273b1
Commit
e2f273b1
authored
Jul 07, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购
parent
2ae5a6af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
RB_Procurement.cs
Mall.Model/Entity/Property/RB_Procurement.cs
+4
-0
RB_Procurement_Detail.cs
Mall.Model/Entity/Property/RB_Procurement_Detail.cs
+4
-0
RB_ProcurementRepository.cs
Mall.Repository/Property/RB_ProcurementRepository.cs
+4
-0
PropertyController.cs
Mall.WebApi/Controllers/Property/PropertyController.cs
+4
-0
No files found.
Mall.Model/Entity/Property/RB_Procurement.cs
View file @
e2f273b1
...
...
@@ -138,5 +138,9 @@ namespace Mall.Model.Entity.Property
/// 供应商名称
/// </summary>
public
string
SupplierName
{
get
;
set
;
}
/// <summary>
/// 入库状态 1未入库 2部分入库 3已入库
/// </summary>
public
int
?
StockInStatus
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Model/Entity/Property/RB_Procurement_Detail.cs
View file @
e2f273b1
...
...
@@ -109,5 +109,9 @@ namespace Mall.Model.Entity.Property
get
;
set
;
}
/// <summary>
/// 已入库的数量
/// </summary>
public
int
?
StockInNum
{
get
;
set
;
}
}
}
\ No newline at end of file
Mall.Repository/Property/RB_ProcurementRepository.cs
View file @
e2f273b1
...
...
@@ -49,6 +49,10 @@ namespace Mall.Repository.Property
{
where
+=
" and p.CreateTime <='"
+
dmodel
.
EndTime
+
" 23:59:59'"
;
}
if
(
dmodel
.
StockInStatus
>
0
)
{
where
+=
" and p."
+
nameof
(
RB_Procurement_Extend
.
StockInStatus
)
+
"="
+
dmodel
.
StockInStatus
;
}
string
sql
=
$@" SELECT p.* FROM rb_procurement p
INNER JOIN rb_procurement_detail pd on p.Id = pd.ProcurementId
...
...
Mall.WebApi/Controllers/Property/PropertyController.cs
View file @
e2f273b1
...
...
@@ -55,12 +55,14 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
TotalCostMoney
,
x
.
TotalNumber
,
x
.
Remark
,
x
.
StockInStatus
,
DetailList
=
x
.
DetailList
.
Select
(
y
=>
new
{
y
.
Id
,
y
.
MaterialId
,
y
.
CostMoney
,
y
.
Number
,
y
.
StockInNum
,
MaterialModel
=
new
{
y
.
MaterialModel
.
Name
,
y
.
MaterialModel
.
SuppliesNum
,
...
...
@@ -102,12 +104,14 @@ namespace Mall.WebApi.Controllers.MallBase
model
.
TotalCostMoney
,
model
.
TotalNumber
,
model
.
Remark
,
model
.
StockInStatus
,
DetailList
=
model
.
DetailList
.
Select
(
y
=>
new
{
y
.
Id
,
y
.
MaterialId
,
y
.
CostMoney
,
y
.
Number
,
y
.
StockInNum
,
MaterialModel
=
new
{
y
.
MaterialModel
.
Name
,
...
...
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