Compare commits
2 Commits
03f00c9bc3
...
b249456cf1
| Author | SHA1 | Date |
|---|---|---|
|
|
b249456cf1 | |
|
|
a198fd5588 |
|
|
@ -392,7 +392,7 @@ namespace OpenAuth.App.ServiceApp
|
||||||
/// <param name="key"></param>
|
/// <param name="key"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public async Task<Response<PageInfo<List<LasaTask>>>> GetTaskPageList(int page, int limit, string key,
|
public async Task<Response<PageInfo<List<LasaTask>>>> GetTaskPageList(int page, int limit, string key,
|
||||||
int? status,string airLineId)
|
int? status, string airLineId)
|
||||||
{
|
{
|
||||||
RefAsync<int> totalCount = 0;
|
RefAsync<int> totalCount = 0;
|
||||||
using (var db = UnitWork.CreateContext())
|
using (var db = UnitWork.CreateContext())
|
||||||
|
|
@ -2720,6 +2720,17 @@ namespace OpenAuth.App.ServiceApp
|
||||||
|
|
||||||
public async Task<Response<bool>> EndAiInspection(string taskid)
|
public async Task<Response<bool>> EndAiInspection(string taskid)
|
||||||
{
|
{
|
||||||
|
var taskTemp = await Repository.ChangeRepository<SugarRepositiry<LasaTask>>()
|
||||||
|
.GetByIdAsync(taskid);
|
||||||
|
if (taskTemp == null)
|
||||||
|
{
|
||||||
|
return new Response<bool>()
|
||||||
|
{
|
||||||
|
Result = true,
|
||||||
|
Message = "任务不存在"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
var task = new LasaTask()
|
var task = new LasaTask()
|
||||||
{
|
{
|
||||||
Id = taskid,
|
Id = taskid,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue