|
|
@ -34,9 +34,10 @@ using static Dapper.SqlMapper; |
|
|
|
|
|
|
|
namespace TaskManager.Controllers |
|
|
|
{ |
|
|
|
public class CheryRecurringJobInputPageExtendController<T,TDTO,TLOGS> : RecurringJobBaseController |
|
|
|
where T : BaseEntity ,new() |
|
|
|
where TDTO:class,new() |
|
|
|
public class CheryRecurringJobInputPageExtendController<T,TDTO,TLOGS> : RecurringJobBaseController |
|
|
|
where T : CherryWriteBaseEnity, new() |
|
|
|
where TDTO : class, new() |
|
|
|
where TLOGS : CherryWriteLogsBaseEnity, new() |
|
|
|
{ |
|
|
|
protected readonly IRepository<T> _repository; |
|
|
|
public CheryRecurringJobInputPageExtendController(HttpClient httpClient, JobDbContext jobDbContext, LogController log, IRepository<T> repository) : base(httpClient, jobDbContext, log) |
|
|
@ -188,6 +189,7 @@ namespace TaskManager.Controllers |
|
|
|
var query = _jobDbContext.Database.GetDbConnection().Query<int>(str); |
|
|
|
var total = query.FirstOrDefault(); |
|
|
|
var version = DateTime.Now.ToString("yyyyMMdd"); |
|
|
|
var requestDate = DateTime.Now.ToString("yyyy-MM-dd"); |
|
|
|
var pageSize = CPageSize; |
|
|
|
|
|
|
|
int totalPages = (int)Math.Ceiling((double)total / pageSize); |
|
|
@ -218,6 +220,7 @@ namespace TaskManager.Controllers |
|
|
|
{ |
|
|
|
itm.WriteState = true; |
|
|
|
itm.TaskId = taskId; |
|
|
|
itm.RequestDate = requestDate; |
|
|
|
} |
|
|
|
var result = await PostPageAsync(pagedRequest, taskId, version); |
|
|
|
if (result.code == 200) |
|
|
@ -289,7 +292,8 @@ namespace TaskManager.Controllers |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
string inputjson = string.Empty; |
|
|
|
if (TaskName == "日物料需求计划风险确认")//格式特殊处理
|
|
|
|
{ |
|
|
|