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
581f31de
Commit
581f31de
authored
May 20, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回货过滤指定数据
parent
09e834cd
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
1 deletion
+50
-1
db_config.cs
AutoTurnOver.DB/db_config.cs
+0
-0
dc_return_goods_not_push.cs
AutoTurnOver.Models/dc_return_goods_not_push.cs
+24
-0
ConfigServices.cs
AutoTurnOver.Services/ConfigServices.cs
+4
-0
ReportServices.cs
AutoTurnOver.Services/ReportServices.cs
+6
-1
ConfigController.cs
AutoTurnOver/Controllers/ConfigController.cs
+16
-0
No files found.
AutoTurnOver.DB/db_config.cs
View file @
581f31de
This diff is collapsed.
Click to expand it.
AutoTurnOver.Models/dc_return_goods_not_push.cs
0 → 100644
View file @
581f31de
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
AutoTurnOver.Models
{
public
class
dc_return_goods_not_push
{
public
int
id
{
get
;
set
;
}
public
string
bailun_sku
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
int
status
{
get
;
set
;
}
}
public
class
dc_return_goods_not_push_log
{
public
int
id
{
get
;
set
;
}
public
string
bailun_sku
{
get
;
set
;
}
public
string
warehouse_code
{
get
;
set
;
}
public
int
status
{
get
;
set
;
}
public
DateTime
create_time
{
get
;
set
;
}
public
string
create_user_name
{
get
;
set
;
}
}
}
AutoTurnOver.Services/ConfigServices.cs
View file @
581f31de
...
@@ -415,6 +415,10 @@ namespace AutoTurnOver.Services
...
@@ -415,6 +415,10 @@ namespace AutoTurnOver.Services
{
{
return
DB
.
db_config
.
BatchMonitorStatus
(
ids
,
monitor_status
,
user
);
return
DB
.
db_config
.
BatchMonitorStatus
(
ids
,
monitor_status
,
user
);
}
}
public
string
BatchReturnGoodsStatus
(
string
ids
,
int
monitor_status
,
UserData
user
)
{
return
DB
.
db_config
.
BatchReturnGoodsStatus
(
ids
,
monitor_status
,
user
);
}
public
string
BatchTortStatus
(
string
ids
,
int
monitor_status
,
UserData
user
)
public
string
BatchTortStatus
(
string
ids
,
int
monitor_status
,
UserData
user
)
{
{
...
...
AutoTurnOver.Services/ReportServices.cs
View file @
581f31de
...
@@ -552,7 +552,12 @@ namespace AutoTurnOver.Services
...
@@ -552,7 +552,12 @@ namespace AutoTurnOver.Services
public
List
<
dc_return_goods_push
>
ReturnGoodsPushFilter
(
List
<
dc_return_goods_push
>
datas
)
public
List
<
dc_return_goods_push
>
ReturnGoodsPushFilter
(
List
<
dc_return_goods_push
>
datas
)
{
{
// 规则一
// 规则一
datas
=
datas
.
Where
(
s
=>
!(
s
.
bailun_sku
==
"294155433"
&&
(
s
.
warehouse_code
==
"GB4PXBL"
||
s
.
warehouse_code
==
"BLGBPX"
))
).
ToList
();
var
not_push_list
=
db_config
.
ReturnGoodsList
(
datas
.
Select
(
s
=>
s
.
bailun_sku
).
ToList
());
if
(
not_push_list
!=
null
&&
not_push_list
.
Count
>=
1
)
{
datas
=
datas
.
Where
(
s
=>
!
not_push_list
.
Any
(
p
=>
p
.
bailun_sku
==
s
.
bailun_sku
&&
p
.
warehouse_code
==
s
.
warehouse_code
)).
ToList
();
}
// 规则二
// 规则二
var
buyers
=
new
List
<
string
>
{
"张莹霞"
,
"张莹霞1"
,
"黄静洁"
};
var
buyers
=
new
List
<
string
>
{
"张莹霞"
,
"张莹霞1"
,
"黄静洁"
};
...
...
AutoTurnOver/Controllers/ConfigController.cs
View file @
581f31de
...
@@ -715,5 +715,20 @@ namespace AutoTurnOver.Controllers
...
@@ -715,5 +715,20 @@ namespace AutoTurnOver.Controllers
}
}
#
endregion
#
endregion
/// <summary>
/// 批量修改缺货推送状态
/// </summary>
/// <param name="ids"></param>
/// <param name="monitor_status"></param>
/// <returns></returns>
[
HttpGet
]
public
JsonResult
BatchReturnGoodsStatus
(
string
ids
,
int
monitor_status
)
{
var
user
=
AutoUtility
.
GetUser
();
if
(
user
==
null
)
return
null
;
var
result
=
new
Services
.
ConfigServices
().
BatchReturnGoodsStatus
(
ids
,
monitor_status
,
user
);
return
new
JsonResult
(
result
);
}
}
}
}
}
\ No newline at end of file
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