Commit 4bdf7892 by 泽锋 李

fix

parent e39adab4
...@@ -669,7 +669,7 @@ where 1=1 "; ...@@ -669,7 +669,7 @@ where 1=1 ";
return obj.AsList(); return obj.AsList();
} }
public static List<dc_task_download> TaskDownloadList(string user_name, string task_name, int offset, int limit, ref int total, DateTime? start_date, DateTime? end_date) public static List<dc_task_download_dto> TaskDownloadList(string user_name, string task_name, int offset, int limit, ref int total, DateTime? start_date, DateTime? end_date)
{ {
var sql = @"select t1.* from dc_task_download as t1 var sql = @"select t1.* from dc_task_download as t1
where 1=1 "; where 1=1 ";
...@@ -703,7 +703,7 @@ where 1=1 "; ...@@ -703,7 +703,7 @@ where 1=1 ";
sql += " order by t1.id desc "; sql += " order by t1.id desc ";
total = _connection.QueryFirst<int>(countSql, parameters, commandTimeout: 0); total = _connection.QueryFirst<int>(countSql, parameters, commandTimeout: 0);
sql += " limit " + offset + "," + limit; sql += " limit " + offset + "," + limit;
var obj = _connection.Query<dc_task_download>(sql, parameters, buffered: false, commandTimeout: 0); var obj = _connection.Query<dc_task_download_dto>(sql, parameters, buffered: false, commandTimeout: 0);
return obj.AsList(); return obj.AsList();
} }
......
...@@ -54,7 +54,7 @@ namespace AutoTurnOver.Services ...@@ -54,7 +54,7 @@ namespace AutoTurnOver.Services
return DB.daily.ShortagePushList(platform, bailun_sku, offset, limit,ref total, start_date, end_date, warehousecode, warehousetype, warehousearea); return DB.daily.ShortagePushList(platform, bailun_sku, offset, limit,ref total, start_date, end_date, warehousecode, warehousetype, warehousearea);
} }
public List<dc_task_download> TaskDownloadList(string user_name, string task_name, int offset, int limit, ref int total, DateTime? start_date, DateTime? end_date) public List<dc_task_download_dto> TaskDownloadList(string user_name, string task_name, int offset, int limit, ref int total, DateTime? start_date, DateTime? end_date)
{ {
return DB.daily.TaskDownloadList(user_name, task_name, offset, limit,ref total, start_date, end_date); return DB.daily.TaskDownloadList(user_name, task_name, offset, limit,ref total, start_date, end_date);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment