Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
Bailun.PmsAPI
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
pds
Bailun.PmsAPI
Commits
db526318
Commit
db526318
authored
Mar 20, 2021
by
xiezhigang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量查询
parent
a03d6508
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
.gitignore
.gitignore
+1
-0
yt_product_base.cs
PetaPoco/Ext/yt_product_base.cs
+8
-7
No files found.
.gitignore
View file @
db526318
...
@@ -265,3 +265,4 @@ Web/UploadFiles/BeautyProduct/*
...
@@ -265,3 +265,4 @@ Web/UploadFiles/BeautyProduct/*
Web/App_Data/*
Web/App_Data/*
Web/Properties/PublishProfiles/*.pubxml
Web/Properties/PublishProfiles/*.pubxml
Web/UploadFiles/*
Web/UploadFiles/*
/WebApi/ExprotFile/ExprotProduct
PetaPoco/Ext/yt_product_base.cs
View file @
db526318
...
@@ -228,20 +228,21 @@ namespace DbConn
...
@@ -228,20 +228,21 @@ namespace DbConn
}
}
else
else
{
{
string
[]
searchs
=
objCon
.
search
.
Split
(
','
);
if
(
objCon
.
searchType
==
1
)
if
(
objCon
.
searchType
==
1
)
cdnSql
.
Append
(
" and s_sku
= @0"
,
objCon
.
search
);
cdnSql
.
Append
(
" and s_sku
in (@search)"
,
new
{
search
=
searchs
}
);
else
if
(
objCon
.
searchType
==
2
)
else
if
(
objCon
.
searchType
==
2
)
cdnSql
.
Append
(
" and s_product
= @0"
,
objCon
.
search
);
cdnSql
.
Append
(
" and s_product
in (@search)"
,
new
{
search
=
searchs
}
);
else
if
(
objCon
.
searchType
==
3
)
else
if
(
objCon
.
searchType
==
3
)
cdnSql
.
Append
(
" and s_ctitle
= @0"
,
objCon
.
search
);
cdnSql
.
Append
(
" and s_ctitle
in (@search)"
,
new
{
search
=
searchs
}
);
else
if
(
objCon
.
searchType
==
4
)
else
if
(
objCon
.
searchType
==
4
)
cdnSql
.
Append
(
" and s_goods_code
= @0"
,
objCon
.
search
);
cdnSql
.
Append
(
" and s_goods_code
in (@search)"
,
new
{
search
=
searchs
}
);
else
if
(
objCon
.
searchType
==
5
)
else
if
(
objCon
.
searchType
==
5
)
cdnSql
.
Append
(
" and s_product_code
= @0"
,
objCon
.
search
);
cdnSql
.
Append
(
" and s_product_code
in (@search)"
,
new
{
search
=
searchs
}
);
else
if
(
objCon
.
searchType
==
6
)
else
if
(
objCon
.
searchType
==
6
)
cdnSql
.
Append
(
" and s_id in (select sp_sid from yt_product_supplier where sp_deliver_name
= @0)"
,
objCon
.
search
);
cdnSql
.
Append
(
" and s_id in (select sp_sid from yt_product_supplier where sp_deliver_name
in (@search))"
,
new
{
search
=
searchs
}
);
else
if
(
objCon
.
searchType
==
601
)
else
if
(
objCon
.
searchType
==
601
)
cdnSql
.
Append
(
" and s_id in (select is_sid from dv_import_sku where is_custom_product
= @0)"
,
objCon
.
search
);
cdnSql
.
Append
(
" and s_id in (select is_sid from dv_import_sku where is_custom_product
in (@search))"
,
new
{
search
=
searchs
}
);
}
}
}
}
if
(
objCon
.
cateId
>
0
)
if
(
objCon
.
cateId
>
0
)
...
...
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