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
bd1e01f5
Commit
bd1e01f5
authored
Dec 22, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4bdf7892
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
DailyServices.cs
AutoTurnOver.Services/DailyServices.cs
+1
-1
SkuAutoTurnController.cs
AutoTurnOver/Controllers/SkuAutoTurnController.cs
+8
-5
No files found.
AutoTurnOver.Services/DailyServices.cs
View file @
bd1e01f5
...
@@ -158,7 +158,7 @@ namespace AutoTurnOver.Services
...
@@ -158,7 +158,7 @@ namespace AutoTurnOver.Services
while
(
true
)
while
(
true
)
{
{
int
total
=
0
;
int
total
=
0
;
search_data
.
offset
=
(
page
-
1
);
search_data
.
offset
=
(
page
-
1
)
*
rows
;
search_data
.
limit
=
rows
;
search_data
.
limit
=
rows
;
var
list
=
services
.
RealtimeList
(
search_data
,
ref
total
);
var
list
=
services
.
RealtimeList
(
search_data
,
ref
total
);
...
...
AutoTurnOver/Controllers/SkuAutoTurnController.cs
View file @
bd1e01f5
...
@@ -13,6 +13,7 @@ using System.Data;
...
@@ -13,6 +13,7 @@ using System.Data;
using
AutoTurnOver.Common
;
using
AutoTurnOver.Common
;
using
System.IO
;
using
System.IO
;
using
AutoTurnOver.Services
;
using
AutoTurnOver.Services
;
using
AutoTurnOver.DB
;
namespace
AutoTurnOver.Controllers
namespace
AutoTurnOver.Controllers
{
{
...
@@ -83,14 +84,16 @@ namespace AutoTurnOver.Controllers
...
@@ -83,14 +84,16 @@ namespace AutoTurnOver.Controllers
try
try
{
{
var
user
=
AutoUtility
.
GetUser
();
var
user
=
AutoUtility
.
GetUser
();
if
(
user
==
null
)
throw
new
Exception
(
"登陆失效,请重新登录"
);
dc_task_download_dao
.
PushData
<
dc_base_stock_search_dto
>(
new
dc_task_download
var
memory
=
new
SkuAutoTurnServices
().
Export
(
user
,
m
,
order
,
sort
);
{
return
File
(
memory
,
"text/csv"
,
$"
{
user
.
UserAccount
}
周转表.csv"
);
parameter
=
m
.
ToJson
(),
task_name
=
"周转表"
},
user
);
return
new
JsonResult
(
new
{
success
=
true
});
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
{
{
Console
.
WriteLine
(
ex
.
Message
+
"----"
+
ex
.
StackTrace
);
return
new
JsonResult
(
new
{
success
=
false
,
message
=
ex
.
Message
});
return
new
ContentResult
()
{
Content
=
ex
.
Message
+
"----"
+
ex
.
StackTrace
};
}
}
}
}
...
...
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