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
4d154e1d
Commit
4d154e1d
authored
May 15, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
14993622
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dc_auto_first_order_sku_dao.cs
AutoTurnOver.DB/dc_auto_first_order_sku_dao.cs
+2
-1
No files found.
AutoTurnOver.DB/dc_auto_first_order_sku_dao.cs
View file @
4d154e1d
...
@@ -73,7 +73,7 @@ namespace AutoTurnOver.DB
...
@@ -73,7 +73,7 @@ namespace AutoTurnOver.DB
using
(
var
t
=
conn
.
BeginTransaction
())
using
(
var
t
=
conn
.
BeginTransaction
())
{
{
// 查询当前待出建议的sku
// 查询当前待出建议的sku
var
sku_list
=
conn
.
Query
<
dc_auto_first_order_sku
>(
" select * from dc_auto_first_order_sku where order_time < '2020-01-01' "
).
AsList
();
var
sku_list
=
conn
.
Query
<
dc_auto_first_order_sku
>(
" select * from dc_auto_first_order_sku where order_time < '2020-01-01'
and is_error=0
"
).
AsList
();
var
rule_list
=
conn
.
Query
<
dc_auto_first_order_rule
>(
" select * from dc_auto_first_order_rule "
).
AsList
();
var
rule_list
=
conn
.
Query
<
dc_auto_first_order_rule
>(
" select * from dc_auto_first_order_rule "
).
AsList
();
...
@@ -233,6 +233,7 @@ namespace AutoTurnOver.DB
...
@@ -233,6 +233,7 @@ namespace AutoTurnOver.DB
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
conn
.
Execute
(
" update dc_auto_first_order_sku set is_error=1 where id in @ids "
,
new
{
ids
=
itemGroup
.
Select
(
s
=>
s
.
id
)});
err_count
=
true
;
err_count
=
true
;
conn
.
Insert
(
new
dc_task_error_log
conn
.
Insert
(
new
dc_task_error_log
{
{
...
...
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