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
94d8ffcf
Commit
94d8ffcf
authored
May 20, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
周转表新是否自动回货的筛选
parent
33abdf5a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
3 deletions
+21
-3
dc_auto_turnover.cs
AutoTurnOver.DB/dc_auto_turnover.cs
+14
-0
dc_auto_turnover.cs
AutoTurnOver.Models/dc_auto_turnover.cs
+1
-0
SkuAutoTurnController.cs
AutoTurnOver/Controllers/SkuAutoTurnController.cs
+6
-3
No files found.
AutoTurnOver.DB/dc_auto_turnover.cs
View file @
94d8ffcf
...
@@ -98,6 +98,9 @@ from dc_auto_turnover as dat
...
@@ -98,6 +98,9 @@ from dc_auto_turnover as dat
if
(
m
.
monitor_status
!=
null
)
if
(
m
.
monitor_status
!=
null
)
{
{
sqlCount
+=
" left join dc_auto_config_sku_warehouse as t5 on dat.bailun_sku = t5.bailun_sku and dat.warehouse_code = t5.warehouse_code "
;
sqlCount
+=
" left join dc_auto_config_sku_warehouse as t5 on dat.bailun_sku = t5.bailun_sku and dat.warehouse_code = t5.warehouse_code "
;
}
if
(
m
.
returngoodspush_state
!=
null
)
{
sqlCount
+=
" left join dc_auto_config_sku_warehouse as t12 on dat.bailun_sku = t12.bailun_sku and dat.warehouse_code = t12.warehouse_code "
;
}
}
if
(
m
.
has_tort
!=
null
)
if
(
m
.
has_tort
!=
null
)
{
{
...
@@ -144,6 +147,17 @@ from dc_auto_turnover as dat
...
@@ -144,6 +147,17 @@ from dc_auto_turnover as dat
sql
+=
" and ( t5.`status`=0 or t5.`status` is null ) "
;
sql
+=
" and ( t5.`status`=0 or t5.`status` is null ) "
;
sqlCount
+=
" and ( t5.`status`=0 or t5.`status` is null ) "
;
sqlCount
+=
" and ( t5.`status`=0 or t5.`status` is null ) "
;
}
}
if
(
m
.
returngoodspush_state
==
1
)
{
sql
+=
" and t12.`status`=1 "
;
sqlCount
+=
" and t12.`status`=1 "
;
}
if
(
m
.
returngoodspush_state
==
0
)
{
sql
+=
" and ( t12.`status`=0 or t12.`status` is null ) "
;
sqlCount
+=
" and ( t12.`status`=0 or t12.`status` is null ) "
;
}
if
(
m
.
hasAadvise
==
true
)
if
(
m
.
hasAadvise
==
true
)
{
{
...
...
AutoTurnOver.Models/dc_auto_turnover.cs
View file @
94d8ffcf
...
@@ -325,6 +325,7 @@ namespace AutoTurnOver.Models
...
@@ -325,6 +325,7 @@ namespace AutoTurnOver.Models
/// 0 = 开启监控
/// 0 = 开启监控
/// </summary>
/// </summary>
public
int
?
monitor_status
{
get
;
set
;
}
public
int
?
monitor_status
{
get
;
set
;
}
public
int
?
returngoodspush_state
{
get
;
set
;
}
/// <summary>
/// <summary>
///百伦分类
///百伦分类
...
...
AutoTurnOver/Controllers/SkuAutoTurnController.cs
View file @
94d8ffcf
...
@@ -29,7 +29,7 @@ namespace AutoTurnOver.Controllers
...
@@ -29,7 +29,7 @@ namespace AutoTurnOver.Controllers
/// <returns></returns>
/// <returns></returns>
[
HttpGet
]
[
HttpGet
]
[
UseAction
]
[
UseAction
]
public
JsonResult
List
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
searchType
,
string
key_words
,
string
buyer_name
,
int
?
IsRedundant
,
int
?
IsStockOut
,
string
warehousecode
,
string
supplier_name
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
hasDefectConfig
,
bool
?
hasAadvise
=
null
,
string
categoryIds
=
null
,
int
?
monitor_status
=
null
,
int
?
has_tort
=
null
)
public
JsonResult
List
(
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
searchType
,
string
key_words
,
string
buyer_name
,
int
?
IsRedundant
,
int
?
IsStockOut
,
string
warehousecode
,
string
supplier_name
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
hasDefectConfig
,
bool
?
hasAadvise
=
null
,
string
categoryIds
=
null
,
int
?
monitor_status
=
null
,
int
?
returngoodspush_state
=
null
,
int
?
has_tort
=
null
)
{
{
try
try
{
{
...
@@ -46,6 +46,7 @@ namespace AutoTurnOver.Controllers
...
@@ -46,6 +46,7 @@ namespace AutoTurnOver.Controllers
hasAadvise
=
hasAadvise
,
hasAadvise
=
hasAadvise
,
categoryIds
=
categoryIds
,
categoryIds
=
categoryIds
,
monitor_status
=
monitor_status
,
monitor_status
=
monitor_status
,
returngoodspush_state
=
returngoodspush_state
,
buyer_name
=
buyer_name
,
buyer_name
=
buyer_name
,
supplier_name
=
supplier_name
,
supplier_name
=
supplier_name
,
has_tort
=
has_tort
has_tort
=
has_tort
...
@@ -78,7 +79,7 @@ namespace AutoTurnOver.Controllers
...
@@ -78,7 +79,7 @@ namespace AutoTurnOver.Controllers
return
new
JsonResult
(
new
Services
.
SkuAutoTurnServices
().
GetLabelList
());
return
new
JsonResult
(
new
Services
.
SkuAutoTurnServices
().
GetLabelList
());
}
}
public
JsonResult
ListSumFooter
(
string
supplier_name
,
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
searchType
,
string
key_words
,
string
buyer_name
,
string
sku_prefix
,
int
?
IsRedundant
,
int
?
IsStockOut
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
hasDefectConfig
,
bool
?
hasAadvise
=
null
,
string
categoryIds
=
null
,
int
?
monitor_status
=
null
,
int
?
has_tort
=
null
)
public
JsonResult
ListSumFooter
(
string
supplier_name
,
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
searchType
,
string
key_words
,
string
buyer_name
,
string
sku_prefix
,
int
?
IsRedundant
,
int
?
IsStockOut
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
hasDefectConfig
,
bool
?
hasAadvise
=
null
,
string
categoryIds
=
null
,
int
?
monitor_status
=
null
,
int
?
returngoodspush_state
=
null
,
int
?
has_tort
=
null
)
{
{
var
m
=
new
Condition_AutoTurnOver
var
m
=
new
Condition_AutoTurnOver
{
{
...
@@ -93,6 +94,7 @@ namespace AutoTurnOver.Controllers
...
@@ -93,6 +94,7 @@ namespace AutoTurnOver.Controllers
hasAadvise
=
hasAadvise
,
hasAadvise
=
hasAadvise
,
categoryIds
=
categoryIds
,
categoryIds
=
categoryIds
,
monitor_status
=
monitor_status
,
monitor_status
=
monitor_status
,
returngoodspush_state
=
returngoodspush_state
,
buyer_name
=
buyer_name
,
buyer_name
=
buyer_name
,
supplier_name
=
supplier_name
,
supplier_name
=
supplier_name
,
has_tort
=
has_tort
has_tort
=
has_tort
...
@@ -111,7 +113,7 @@ namespace AutoTurnOver.Controllers
...
@@ -111,7 +113,7 @@ namespace AutoTurnOver.Controllers
/// <param name="warehousecode"></param>
/// <param name="warehousecode"></param>
/// <returns></returns>
/// <returns></returns>
[
UseAction
]
[
UseAction
]
public
ActionResult
Export
(
string
supplier_name
,
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
searchType
,
string
key_words
,
string
buyer_name
,
string
sku_prefix
,
int
?
IsRedundant
,
int
?
IsStockOut
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
hasDefectConfig
,
bool
?
hasAadvise
=
null
,
string
categoryIds
=
null
,
int
?
monitor_status
=
null
,
int
?
has_tort
=
null
)
public
ActionResult
Export
(
string
supplier_name
,
int
limit
,
int
offset
,
string
order
,
string
sort
,
int
?
searchType
,
string
key_words
,
string
buyer_name
,
string
sku_prefix
,
int
?
IsRedundant
,
int
?
IsStockOut
,
string
warehousecode
,
string
warehousetype
,
int
?
warehousearea
,
bool
?
hasDefectConfig
,
bool
?
hasAadvise
=
null
,
string
categoryIds
=
null
,
int
?
monitor_status
=
null
,
int
?
returngoodspush_state
=
null
,
int
?
has_tort
=
null
)
{
{
try
try
{
{
...
@@ -130,6 +132,7 @@ namespace AutoTurnOver.Controllers
...
@@ -130,6 +132,7 @@ namespace AutoTurnOver.Controllers
hasAadvise
=
hasAadvise
,
hasAadvise
=
hasAadvise
,
categoryIds
=
categoryIds
,
categoryIds
=
categoryIds
,
monitor_status
=
monitor_status
,
monitor_status
=
monitor_status
,
returngoodspush_state
=
returngoodspush_state
,
buyer_name
=
buyer_name
,
buyer_name
=
buyer_name
,
supplier_name
=
supplier_name
,
supplier_name
=
supplier_name
,
has_tort
=
has_tort
has_tort
=
has_tort
...
...
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