|
|
@ -1,4 +1,4 @@ |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Data; |
|
|
|
using System.Linq; |
|
|
|
using System.Text.Json; |
|
|
@ -28,7 +28,7 @@ namespace Win.Sfs.SettleAccount.Repository |
|
|
|
public virtual async Task<List<Job>> GetTaskJobsAsync(Job p_task) |
|
|
|
{ |
|
|
|
string str = string.Empty; |
|
|
|
str = "SELECT\n" + |
|
|
|
str = "select * from (SELECT\n" + |
|
|
|
" b.Id,\n" + |
|
|
|
" isnull( a.StateId, 0 ) StateId,\n" + |
|
|
|
" b.Type,\n" + |
|
|
@ -79,7 +79,7 @@ namespace Win.Sfs.SettleAccount.Repository |
|
|
|
{ |
|
|
|
str += string.Format(" and b.type='{0}'", p_task.Type); |
|
|
|
} |
|
|
|
str += " order by a.CreatedAt desc "; |
|
|
|
str += ") c order by c.CreatedAt desc "; |
|
|
|
var _db = await GetDbConnectionAsync().ConfigureAwait(false); |
|
|
|
var _query = await _db.QueryAsync<Job>(str).ConfigureAwait(false); |
|
|
|
var _lst = _query.ToList(); |
|
|
|