Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
bltdc
data-center-auto
Commits
33f8b907
Commit
33f8b907
authored
Nov 23, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周转表支持商品编码 多个查询
parent
635bf71b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
2 deletions
+19
-2
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+3
-2
HttpHelper.cs
AutoTurnOver.Utility/HttpHelper.cs
+16
-0
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
33f8b907
...
@@ -161,8 +161,9 @@ from dc_auto_turnover as dat
...
@@ -161,8 +161,9 @@ from dc_auto_turnover as dat
sqlCount
+=
" and dat.bailun_sku ="
+
$"'%
{
m
.
key_words
}
%'"
;
sqlCount
+=
" and dat.bailun_sku ="
+
$"'%
{
m
.
key_words
}
%'"
;
break
;
break
;
case
3
:
case
3
:
sql
+=
" and dat.product_inner_code ="
+
$"'
{
m
.
key_words
}
'"
;
sql
+=
" and dat.product_inner_code in @product_inner_code "
;
sqlCount
+=
" and dat.product_inner_code ="
+
$"'
{
m
.
key_words
}
'"
;
sqlCount
+=
" and dat.product_inner_code in @product_inner_code "
;
parameters
.
Add
(
"product_inner_code"
,
m
.
key_words
.
Split
(
','
).
ToList
());
break
;
break
;
case
4
:
case
4
:
sql
+=
" and dat.product_inner_code like "
+
$"'%
{
m
.
key_words
}
%'"
;
sql
+=
" and dat.product_inner_code like "
+
$"'%
{
m
.
key_words
}
%'"
;
...
...
AutoTurnOver.Utility/HttpHelper.cs
View file @
33f8b907
...
@@ -56,6 +56,8 @@ namespace AutoTurnOver.Utility
...
@@ -56,6 +56,8 @@ namespace AutoTurnOver.Utility
request
.
ContentType
=
"text/html; charset=UTF-8"
;
request
.
ContentType
=
"text/html; charset=UTF-8"
;
break
;
break
;
}
}
try
{
StringBuilder
builder
=
new
StringBuilder
();
StringBuilder
builder
=
new
StringBuilder
();
HttpWebResponse
response
=
(
HttpWebResponse
)
request
.
GetResponse
();
HttpWebResponse
response
=
(
HttpWebResponse
)
request
.
GetResponse
();
Stream
responseStream
=
response
.
GetResponseStream
();
Stream
responseStream
=
response
.
GetResponseStream
();
...
@@ -70,5 +72,19 @@ namespace AutoTurnOver.Utility
...
@@ -70,5 +72,19 @@ namespace AutoTurnOver.Utility
return
builder
.
ToString
();
return
builder
.
ToString
();
}
}
catch
(
WebException
ex
)
{
var
response
=
(
HttpWebResponse
)
ex
.
Response
;
Stream
myResponseStream
=
response
.
GetResponseStream
();
//获取返回值
StreamReader
myStreamReader
=
new
StreamReader
(
myResponseStream
,
Encoding
.
GetEncoding
(
"utf-8"
));
string
retString
=
myStreamReader
.
ReadToEnd
();
throw
;
}
}
}
}
}
}
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