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
d6750d0e
Commit
d6750d0e
authored
Aug 01, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
b1b89436
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dc_auto_stock_monitor_dao.cs
AutoTurnOver.DB/dc_auto_stock_monitor_dao.cs
+2
-2
No files found.
AutoTurnOver.DB/dc_auto_stock_monitor_dao.cs
View file @
d6750d0e
...
...
@@ -173,13 +173,13 @@ where tdb.usable_stock>0 ";
{
// 可上架
var
fields
=
GetShowField
(
search
.
warehouse_code
);
sql
+=
$"and tdb.usable_stock>0 and (
{
string
.
Join
(
" or "
,
fields
.
Select
(
v
=>
$"
t11.
{
v
}
<= 0 "
))}
)"
;
sql
+=
$"and tdb.usable_stock>0 and (
{
string
.
Join
(
" or "
,
fields
.
Select
(
v
=>
$"
ifnull(t11.
{
v
}
,0)
<= 0 "
))}
)"
;
}
if
(
search
.
listing_status
==
2
)
{
// 无在线
var
fields
=
GetShowField
(
search
.
warehouse_code
);
sql
+=
$"and tdb.usable_stock>0 and (
{
string
.
Join
(
" and "
,
fields
.
Select
(
v
=>
$"
t11.
{
v
}
<= 0 "
))}
)"
;
sql
+=
$"and tdb.usable_stock>0 and (
{
string
.
Join
(
" and "
,
fields
.
Select
(
v
=>
$"
ifnull(t11.
{
v
}
,0)
<= 0 "
))}
)"
;
}
}
return
_connection
.
Page
<
listing_status_view_dto
>(
sql
,
search
,
parameters
);
...
...
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