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
3f0219ff
Commit
3f0219ff
authored
Jun 19, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ebay+wish 的 分单规则,只适用张莹霞
parent
f60f2bac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+4
-4
PurchaseAdviseServices.cs
AutoTurnOver.Services/PurchaseAdviseServices.cs
+1
-1
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
3f0219ff
...
@@ -754,9 +754,9 @@ where ( t5.`status`=0 or t5.`status` is null ) and t1.quantity_begin_advise>0 an
...
@@ -754,9 +754,9 @@ where ( t5.`status`=0 or t5.`status` is null ) and t1.quantity_begin_advise>0 an
/// 特定平台的缺货sku
/// 特定平台的缺货sku
/// </summary>
/// </summary>
/// <param name="platform_types">平台</param>
/// <param name="platform_types">平台</param>
/// <param name="not_buyer_names">
过滤掉
指定采购员</param>
/// <param name="not_buyer_names">指定采购员</param>
/// <returns></returns>
/// <returns></returns>
public
static
List
<
string
>
ShortageSkuList
(
List
<
string
>
platform_types
,
List
<
string
>
not_
buyer_names
)
public
static
List
<
string
>
ShortageSkuList
(
List
<
string
>
platform_types
,
List
<
string
>
buyer_names
)
{
{
var
datas
=
_connection
.
Query
<
shortage_sku_list_dto
>(
@"
var
datas
=
_connection
.
Query
<
shortage_sku_list_dto
>(
@"
select t1.bailun_sku,t2.buyer_name from dc_base_oms_sku as t1
select t1.bailun_sku,t2.buyer_name from dc_base_oms_sku as t1
...
@@ -775,9 +775,9 @@ and t1.bailun_interception_status not in ('Success','Part') and t1.platform_type
...
@@ -775,9 +775,9 @@ and t1.bailun_interception_status not in ('Success','Part') and t1.platform_type
and platform_type in @platform_types
and platform_type in @platform_types
"
,
new
{
platform_types
=
platform_types
},
commandTimeout
:
0
).
AsList
();
"
,
new
{
platform_types
=
platform_types
},
commandTimeout
:
0
).
AsList
();
if
(
not_buyer_names
!=
null
&&
not_
buyer_names
.
Count
>=
1
)
if
(
buyer_names
!=
null
&&
buyer_names
.
Count
>=
1
)
{
{
return
datas
.
Where
(
s
=>
!
not_
buyer_names
.
Any
(
v
=>
v
==
s
.
buyer_name
)).
Select
(
s
=>
s
.
bailun_sku
).
ToList
();
return
datas
.
Where
(
s
=>
buyer_names
.
Any
(
v
=>
v
==
s
.
buyer_name
)).
Select
(
s
=>
s
.
bailun_sku
).
ToList
();
}
}
else
else
{
{
...
...
AutoTurnOver.Services/PurchaseAdviseServices.cs
View file @
3f0219ff
...
@@ -274,7 +274,7 @@ namespace AutoTurnOver.Services
...
@@ -274,7 +274,7 @@ namespace AutoTurnOver.Services
var
other_datas
=
new
List
<
dc_auto_purchase_advise_detailed_dto
>();
var
other_datas
=
new
List
<
dc_auto_purchase_advise_detailed_dto
>();
// 查询当前有缺货的sku
// 查询当前有缺货的sku
var
shortageSkuList
=
purchase_advise
.
ShortageSkuList
(
new
List
<
string
>
{
"ebay"
,
"wish"
},
new
List
<
string
>
{
"张莹霞
1
"
});
var
shortageSkuList
=
purchase_advise
.
ShortageSkuList
(
new
List
<
string
>
{
"ebay"
,
"wish"
},
new
List
<
string
>
{
"张莹霞"
});
alone_datas
=
datas
.
Where
(
s
=>
shortageSkuList
.
Any
(
v
=>
v
==
s
.
bailun_sku
)).
ToList
();
alone_datas
=
datas
.
Where
(
s
=>
shortageSkuList
.
Any
(
v
=>
v
==
s
.
bailun_sku
)).
ToList
();
other_datas
=
datas
.
Where
(
s
=>
!
shortageSkuList
.
Any
(
v
=>
v
==
s
.
bailun_sku
)).
ToList
();
other_datas
=
datas
.
Where
(
s
=>
!
shortageSkuList
.
Any
(
v
=>
v
==
s
.
bailun_sku
)).
ToList
();
...
...
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