Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Property
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
liudong1993
Property
Commits
ac5a23d2
Commit
ac5a23d2
authored
Jul 30, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交出库
parent
9edcd163
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
7 deletions
+9
-7
WarehouseOutModule.cs
Property.Module.Mall/WarehouseOutModule.cs
+2
-2
RB_Supplies_CheckRepository.cs
Property.Repository/Supplies/RB_Supplies_CheckRepository.cs
+6
-4
WarehouseOutController.cs
Property.WebApi/Controllers/Mall/WarehouseOutController.cs
+1
-1
No files found.
Property.Module.Mall/WarehouseOutModule.cs
View file @
ac5a23d2
...
@@ -382,8 +382,8 @@ namespace Property.Module.Mall
...
@@ -382,8 +382,8 @@ namespace Property.Module.Mall
{
{
oldMoney
=
oldOutGoods
.
Sum
(
x
=>
x
.
CostMoney
??
0
)
/
Convert
.
ToDecimal
(
oldOutGoods
.
Count
());
oldMoney
=
oldOutGoods
.
Sum
(
x
=>
x
.
CostMoney
??
0
)
/
Convert
.
ToDecimal
(
oldOutGoods
.
Count
());
}
}
costMoney
=
(
nowGoods
.
Sum
(
x
=>
x
.
CostMoney
??
0
)
/
nowGoodsFinan
.
FirstOrDefault
()?.
Number
??
0
);
costMoney
=
(
nowGoods
.
Sum
(
x
=>
x
.
CostMoney
??
0
)
/
nowGoodsFinan
.
Sum
(
x
=>
x
.
Number
??
0
));
//
costMoney = (nowGoods.Sum(x => x.CostMoney ?? 0) / nowGoodsFinan.Sum(x => x.Number ?? 0));
//更新申请单的出库状态
//更新申请单的出库状态
Dictionary
<
string
,
object
>
filesGoods
=
new
Dictionary
<
string
,
object
>()
{
Dictionary
<
string
,
object
>
filesGoods
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
CostFinanceId
),
frid
},
{
nameof
(
RB_Goods_OrderDetail
.
CostFinanceId
),
frid
},
...
...
Property.Repository/Supplies/RB_Supplies_CheckRepository.cs
View file @
ac5a23d2
...
@@ -32,10 +32,12 @@ namespace Property.Repository
...
@@ -32,10 +32,12 @@ namespace Property.Repository
{
{
where
+=
" and "
+
nameof
(
RB_Supplies_Check_Extend
.
Periods
)
+
" like '%"
+
dmodel
.
Periods
+
"%'"
;
where
+=
" and "
+
nameof
(
RB_Supplies_Check_Extend
.
Periods
)
+
" like '%"
+
dmodel
.
Periods
+
"%'"
;
}
}
if
(
dmodel
.
WarehouseId
>
0
)
{
if
(
dmodel
.
WarehouseId
>
0
)
{
where
+=
" and "
+
nameof
(
RB_Supplies_Check_Extend
.
WarehouseId
)
+
"="
+
dmodel
.
WarehouseId
;
where
+=
" and "
+
nameof
(
RB_Supplies_Check_Extend
.
WarehouseId
)
+
"="
+
dmodel
.
WarehouseId
;
}
}
if
(
dmodel
.
CheckState
>
0
)
{
if
(
dmodel
.
CheckState
>
0
)
{
where
+=
" and "
+
nameof
(
RB_Supplies_Check_Extend
.
CheckState
)
+
"="
+
(
int
)
dmodel
.
CheckState
;
where
+=
" and "
+
nameof
(
RB_Supplies_Check_Extend
.
CheckState
)
+
"="
+
(
int
)
dmodel
.
CheckState
;
}
}
string
sql
=
$@" select * from RB_Supplies_Check
{
where
}
order by Id desc"
;
string
sql
=
$@" select * from RB_Supplies_Check
{
where
}
order by Id desc"
;
...
@@ -63,11 +65,11 @@ namespace Property.Repository
...
@@ -63,11 +65,11 @@ namespace Property.Repository
if
(
dmodel
.
StartDate
.
HasValue
)
if
(
dmodel
.
StartDate
.
HasValue
)
{
{
where
+=
$" and
nameof(RB_Supplies_Check_Extend.StartDate) >=
{
dmodel
.
StartDate
}
"
;
where
+=
$" and
"
+
nameof
(
RB_Supplies_Check_Extend
.
StartDate
)
+
"<='"
+
dmodel
.
StartDate
+
"'
"
;
}
}
if
(
dmodel
.
EndDate
.
HasValue
)
if
(
dmodel
.
EndDate
.
HasValue
)
{
{
where
+=
$" and
nameof(RB_Supplies_Check_Extend.StartDate) <=
{
dmodel
.
EndDate
}
"
;
where
+=
$" and
"
+
nameof
(
RB_Supplies_Check_Extend
.
EndDate
)
+
">='"
+
dmodel
.
EndDate
+
"'
"
;
}
}
if
(!
string
.
IsNullOrWhiteSpace
(
dmodel
.
Periods
))
if
(!
string
.
IsNullOrWhiteSpace
(
dmodel
.
Periods
))
...
...
Property.WebApi/Controllers/Mall/WarehouseOutController.cs
View file @
ac5a23d2
...
@@ -299,7 +299,7 @@ namespace Property.WebApi.Controllers.Mall
...
@@ -299,7 +299,7 @@ namespace Property.WebApi.Controllers.Mall
{
{
return
ApiResult
.
Failed
(
"订单号:"
+
oldOrderGoods
.
OrderNo
+
"商品名称:"
+
oldOrderGoods
.
GoodsName
+
"必须一起出库"
);
return
ApiResult
.
Failed
(
"订单号:"
+
oldOrderGoods
.
OrderNo
+
"商品名称:"
+
oldOrderGoods
.
GoodsName
+
"必须一起出库"
);
}
}
if
(!
wareHouseGoodsList
.
Any
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
&&
x
.
GoodsId
==
item
.
Key
.
GoodsId
&&
x
.
SpecificationSort
==
item
.
Key
.
SpecificationSort
))
if
(!
wareHouseGoodsList
.
Any
(
x
=>
x
.
OrderGoodsId
==
item
.
Key
.
OrderGoodsId
&&
x
.
NewGoodsId
==
item
.
Key
.
GoodsId
&&
x
.
New
SpecificationSort
==
item
.
Key
.
SpecificationSort
))
{
{
return
ApiResult
.
Failed
(
"订单号:"
+
oldOrderGoods
.
OrderNo
+
"商品名称:"
+
oldOrderGoods
.
GoodsName
+
"没在当前仓库"
);
return
ApiResult
.
Failed
(
"订单号:"
+
oldOrderGoods
.
OrderNo
+
"商品名称:"
+
oldOrderGoods
.
GoodsName
+
"没在当前仓库"
);
}
}
...
...
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