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
2b45bb71
Commit
2b45bb71
authored
Jan 17, 2022
by
solho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:標準版取得LIST修改
parent
a388db43
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
WebAPI/Controllers/CustomerController.cs
WebAPI/Controllers/CustomerController.cs
+5
-4
No files found.
WebAPI/Controllers/CustomerController.cs
View file @
2b45bb71
...
...
@@ -74,15 +74,16 @@ namespace WebAPI.Controllers
string
input
=
param
.
Input
.
ToString
();
try
{
JObject
obj_input
=
JObject
.
Parse
(
input
.
ToString
());
using
(
SqlConnection
Conn
=
new
SqlConnection
(
connString
))
{
SqlCommand
cmd
=
new
SqlCommand
(
""
,
Conn
)
{
CommandText
=
@"
select customer_name,customer_id from c_customer a
CommandText
=
@"select a.customer_name,a.customer_id,case when isnull(b.customer_id,'')!='' then 1 else 0 end isSelect from c_customer a
left join (select [request_customer_id] as customer_id from [essen_customer] a1 where a1.customer_id=@customer_id) b on a.customer_id=b.customer_id
where a.is_enabled=1 "
};
cmd
.
Parameters
.
AddWithValue
(
"@customer_id"
,
obj_input
[
"customer_id"
]
==
null
?
""
:
obj_input
[
"customer_id"
].
ToString
());
DataTable
dt
=
SqlToDt
(
cmd
);
response
.
Msg
=
JsonConvert
.
SerializeObject
(
dt
);
response
.
Code
=
"1"
;
...
...
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