Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
TakeStock
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
pengjinyang
TakeStock
Commits
150f873a
Commit
150f873a
authored
May 07, 2022
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增盘点类型筛选
parent
3adb634e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
SearchScheduleInputDto.cs
...Stock.Application/TakeStock/Dto/SearchScheduleInputDto.cs
+7
-1
TakeStockAppService.cs
TakeStock.Application/TakeStock/TakeStockAppService.cs
+11
-2
No files found.
TakeStock.Application/TakeStock/Dto/SearchScheduleInputDto.cs
View file @
150f873a
using
System
;
using
Domain.TakeStock
;
using
System
;
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Text
;
using
static
Domain
.
TakeStock
.
TakeStockEnum
;
using
static
Domain
.
TakeStock
.
TakeStockEnum
;
...
@@ -36,5 +37,10 @@ namespace TakeStock.Application.TakeStock.Dto
...
@@ -36,5 +37,10 @@ namespace TakeStock.Application.TakeStock.Dto
/// 交易流水号
/// 交易流水号
/// </summary>
/// </summary>
public
string
SysOrderCode
{
get
;
set
;
}
public
string
SysOrderCode
{
get
;
set
;
}
/// <summary>
/// 盘点类型
/// </summary>
public
TakeStockType
?
TakeStockType
{
get
;
set
;
}
}
}
}
}
TakeStock.Application/TakeStock/TakeStockAppService.cs
View file @
150f873a
...
@@ -129,7 +129,12 @@ namespace TakeStock.Application.TakeStock
...
@@ -129,7 +129,12 @@ namespace TakeStock.Application.TakeStock
// expr = Expression.Lambda<Func<TakeStockSchedule, bool>>(Expression.And(expr.Body, temp.Body), expr.Parameters);
// expr = Expression.Lambda<Func<TakeStockSchedule, bool>>(Expression.And(expr.Body, temp.Body), expr.Parameters);
//}
//}
if
(
search
.
TakeStockType
.
HasValue
)
{
Expression
<
Func
<
TakeStockSchedule
,
bool
>>
temp
=
s
=>
s
.
TakeStockType
==
search
.
TakeStockType
.
Value
;
expr
=
Expression
.
Lambda
<
Func
<
TakeStockSchedule
,
bool
>>(
Expression
.
And
(
expr
.
Body
,
temp
.
Body
),
expr
.
Parameters
);
//expr.And(s => s.Code.Equals(search.Code));
}
return
expr
;
return
expr
;
}
}
...
@@ -219,8 +224,12 @@ namespace TakeStock.Application.TakeStock
...
@@ -219,8 +224,12 @@ namespace TakeStock.Application.TakeStock
{
{
sqlStr
.
Append
(
" AND DATE(t2.CreationTime)>=@StartTime AND DATE(t2.CreationTime)<=@EndTime "
);
sqlStr
.
Append
(
" AND DATE(t2.CreationTime)>=@StartTime AND DATE(t2.CreationTime)<=@EndTime "
);
}
}
if
(
input
.
TakeStockType
.
HasValue
)
{
sqlStr
.
Append
(
" AND t2.`TakeStockType` = @TakeStockType"
);
}
sqlStr
.
Append
(
" ORDER BY t2.CreationTime DESC "
);
sqlStr
.
Append
(
" ORDER BY t2.CreationTime DESC "
);
var
dataList
=
takeStockService
.
ExportTakeStockData
<
ExportTakeStockOutputDto
>(
sqlStr
.
ToString
(),
new
{
Code
=
input
.
Code
,
WarehouseCode
=
input
.
WarehouseCode
,
StartTime
=
input
.
CreDateTime
[
0
],
EndTime
=
input
.
CreDateTime
[
1
]
});
var
dataList
=
takeStockService
.
ExportTakeStockData
<
ExportTakeStockOutputDto
>(
sqlStr
.
ToString
(),
new
{
Code
=
input
.
Code
,
WarehouseCode
=
input
.
WarehouseCode
,
StartTime
=
input
.
CreDateTime
[
0
],
EndTime
=
input
.
CreDateTime
[
1
]
,
TakeStockType
=
input
.
TakeStockType
});
return
dataList
;
return
dataList
;
}
}
...
...
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