Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
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
DataCenter_Core2.1_20190520
Commits
063b2d42
Commit
063b2d42
authored
Sep 17, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决获取SKU销量接口出错的问题
parent
498ba049
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
SkuInfoServices.cs
Bailun.DC.Services/SkuInfoServices.cs
+8
-0
ApiController.cs
Bailun.DC.Web/Controllers/ApiController.cs
+1
-1
No files found.
Bailun.DC.Services/SkuInfoServices.cs
View file @
063b2d42
...
...
@@ -269,6 +269,14 @@ join dc_base_sku t2 on t1.bailun_sku=t2.bailun_sku ";
/// <returns></returns>
public
List
<
dc_base_sku_mapping
>
GetBailunSkuByPlatformSku
(
List
<
string
>
platformsku
)
{
for
(
var
i
=
0
;
i
<
platformsku
.
Count
;
i
++)
{
if
(
platformsku
[
i
].
IndexOf
(
'\''
)
>=
0
)
{
platformsku
[
i
]
=
platformsku
[
i
].
Replace
(
"'"
,
"''"
);
}
}
using
(
var
cn
=
new
MySqlConnection
(
Common
.
GlobalConfig
.
ConnectionString
))
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
...
...
Bailun.DC.Web/Controllers/ApiController.cs
View file @
063b2d42
...
...
@@ -150,7 +150,7 @@ namespace Bailun.DC.Web.Controllers
a
.
platform_sku_unit_price
,
//单价
a
.
item_id
,
//itemid
a
.
platform_sku
,
//平台sku
bailunskus
=
listBailunSku
.
Where
(
b
=>
b
.
platform_sku
==
a
.
platform_sku
&&
b
.
platform
==
a
.
platform_type
&&
b
.
site
==
a
.
website
).
Select
(
c
=>
c
.
bailun_sku
).
Distinct
().
ToList
()
bailunskus
=
listBailunSku
.
Where
(
b
=>
b
.
platform_sku
==
a
.
platform_sku
&&
b
.
platform
==
a
.
platform_type
&&
b
.
site
==
a
.
website
)?.
Select
(
c
=>
c
.
bailun_sku
)?.
Distinct
().
ToList
(),
});
return
Json
(
new
...
...
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