Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
code
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
solho
code
Commits
022a4b06
Commit
022a4b06
authored
Aug 01, 2022
by
charleslee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:添加國別篩選條件
parent
c84f5c1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
WebAPI/Controllers/ProcInfoController.cs
WebAPI/Controllers/ProcInfoController.cs
+8
-0
No files found.
WebAPI/Controllers/ProcInfoController.cs
View file @
022a4b06
...
...
@@ -1208,6 +1208,8 @@ namespace WebAPI.Controllers
try
{
var
case_volume
=
HttpContext
.
Current
.
Request
.
Form
[
"case_volume"
];
var
country_id
=
HttpContext
.
Current
.
Request
.
Form
[
"country_id"
];
List
<
string
>
list_country_id
=
null
;
var
customer_name
=
HttpContext
.
Current
.
Request
.
Form
[
"customer_name"
];
var
ctrl_proc_id
=
HttpContext
.
Current
.
Request
.
Form
[
"ctrl_proc_id"
];
var
proc_status_id
=
HttpContext
.
Current
.
Request
.
Form
[
"proc_status_id"
];
...
...
@@ -1235,6 +1237,11 @@ namespace WebAPI.Controllers
arr_where
.
Add
(
"pci.case_volume like @case_volume"
);
case_volume
=
"%"
+
case_volume
+
"%"
;
}
if
(
country_id
!=
null
&&
!
string
.
IsNullOrEmpty
(
country_id
))
{
list_country_id
=
country_id
.
Split
(
','
).
ToList
();
arr_where
.
Add
(
"pci.country_id in @list_country_id"
);
}
if
(
customer_name
!=
null
&&
!
string
.
IsNullOrEmpty
(
customer_name
))
{
arr_where
.
Add
(
"cc.customer_name like @customer_name"
);
...
...
@@ -1269,6 +1276,7 @@ namespace WebAPI.Controllers
}
List
<
dynamic
>
list_flow_doer
=
conn
.
Query
<
dynamic
>(
str_sql
,
new
{
case_volume
=
case_volume
,
list_country_id
=
list_country_id
,
customer_name
=
customer_name
,
ctrl_proc_id
=
ctrl_proc_id
,
proc_status_id
=
proc_status_id
,
...
...
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