任务执行修改
This commit is contained in:
parent
7143d34d1d
commit
e364c12d53
@ -312,6 +312,8 @@ namespace DOAN.Admin.WebApi.Controllers
|
||||
int res=_DeviceTaskExecuteService.UpdateFormResult(result);
|
||||
return SUCCESS(res);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 增加任务开始时间
|
||||
/// </summary>
|
||||
|
||||
@ -25,6 +25,12 @@ namespace DOAN.Model.MES.dev
|
||||
[SugarColumn(ColumnName = "task_id")]
|
||||
public string TaskId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 执行人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "person")]
|
||||
public string Person { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 任务类型(1是巡检,2是点检)
|
||||
/// </summary>
|
||||
|
||||
@ -33,6 +33,8 @@ namespace DOAN.Model.MES.dev.Dto
|
||||
/// </summary>
|
||||
public class DeviceTaskExecuteResultDto
|
||||
{
|
||||
|
||||
public string taskExecute_id { get; set; }
|
||||
[Required(ErrorMessage = "id 雪花不能为空")]
|
||||
public string Id { get; set; }
|
||||
|
||||
|
||||
@ -705,6 +705,9 @@ namespace DOAN.Service.MES.dev
|
||||
/// <returns></returns>
|
||||
public int UpdateFormResult(DeviceTaskExecuteResultDto result)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(result.taskExecute_id))
|
||||
Context.Updateable<DeviceTaskExecute>().Where(it => it.Id == result.taskExecute_id).SetColumns(it => it.Person == result.UpdatedBy).ExecuteCommand();
|
||||
|
||||
result.Person = result.UpdatedBy;
|
||||
DeviceTaskExecuteResult item = result.Adapt<DeviceTaskExecuteResult>();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user