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
1b529288
Commit
1b529288
authored
Sep 13, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
采购建议查询接口新增是否逾期
parent
6043b7ee
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+8
-0
dc_auto_purchase_advise.cs
AutoTurnOver.Models/dc_auto_purchase_advise.cs
+6
-0
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
1b529288
...
...
@@ -2131,6 +2131,14 @@ where 1=1 ";
sql
+=
" and t1.`status` =@is_delete "
;
parameters
.
Add
(
"is_delete"
,
m
.
is_delete
);
}
if
(
m
.
is_overdue
==
1
)
{
sql
+=
" AND (to_days(now()) - to_days(t1.create_time))>1 AND t1.`status` = 0 AND t1.ispush!= 1 "
;
}
else
if
(
m
.
is_overdue
==
0
)
{
sql
+=
" AND ((to_days(now()) - to_days(t1.create_time))<1 OR t1.`status` != 0 OR t1.ispush=1) "
;
}
if
(!
string
.
IsNullOrWhiteSpace
(
m
.
purchase_user
))
{
...
...
AutoTurnOver.Models/dc_auto_purchase_advise.cs
View file @
1b529288
...
...
@@ -587,6 +587,12 @@ namespace AutoTurnOver.Models
[
Description
(
"是否过期"
)]
public
int
is_delete
{
get
;
set
;
}
=
0
;
/// <summary>
/// 是否逾期
/// </summary>
[
Description
(
"是否逾期"
)]
public
int
is_overdue
{
get
;
set
;
}
=
-
1
;
[
Description
(
"sku"
)]
public
string
sku
{
get
;
set
;
}
[
Description
(
"仓库编码"
)]
...
...
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