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
26d2f374
Commit
26d2f374
authored
Mar 16, 2019
by
lizefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
把商品moq算法的取最大需求,改成去最大日均
parent
f5e55f33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
purchase_advise.cs
AutoTurnOver.DB/purchase_advise.cs
+1
-1
No files found.
AutoTurnOver.DB/purchase_advise.cs
View file @
26d2f374
...
...
@@ -101,7 +101,7 @@ select
if
(
difference
>
0
)
{
// 把最大的那条记录找出来,加给他
var
max_data
=
itemGoods
.
OrderByDescending
(
s
=>
s
.
quantity_final_advise
).
FirstOrDefault
();
var
max_data
=
itemGoods
.
OrderByDescending
(
s
=>
s
.
history_fourteenday_sales
).
FirstOrDefault
();
_connection
.
Execute
(
" update dc_auto_purchase_advise_detailed set quantity_final_advise=@quantity_final_advise where id=@id "
,
new
{
quantity_final_advise
=
max_data
.
quantity_final_advise
+
difference
,
...
...
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