|
@@ -78,8 +78,15 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
Grp_ScheduleDetailInfo _detail = _mapper.Map<Grp_ScheduleDetailInfo>(dto);
|
|
|
var result = await _grpScheduleRep._sqlSugar.Updateable<Grp_ScheduleDetailInfo>()
|
|
|
+ .SetColumns(it => it.Duty == _detail.Duty)
|
|
|
+ .SetColumns(it => it.ExpectBeginDt == _detail.ExpectBeginDt)
|
|
|
+ .SetColumns(it => it.ExpectEndDt == _detail.ExpectEndDt)
|
|
|
+ .SetColumns(it => it.JobContent == _detail.JobContent)
|
|
|
+ .SetColumns(it => it.Remark == _detail.Remark)
|
|
|
+ .SetColumns(it => it.StepStatus == _detail.StepStatus)
|
|
|
.Where(s => s.Id == dto.Id)
|
|
|
- .UpdateColumns(s => new { s.Duty, s.ExpectBeginDt, s.ExpectEndDt, s.JobContent, s.Remark, s.StepStatus })
|
|
|
+
|
|
|
+ //.UpdateColumns(s => new { s.Duty, s.ExpectBeginDt, s.ExpectEndDt, s.JobContent, s.Remark, s.StepStatus })
|
|
|
.ExecuteCommandAsync();
|
|
|
if (result > 0)
|
|
|
{
|
|
@@ -103,8 +110,13 @@ namespace OASystem.API.Controllers
|
|
|
_detail.DeleteUserId = dto.Duty;
|
|
|
_detail.DeleteTime = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
|
var result = await _grpScheduleRep._sqlSugar.Updateable<Grp_ScheduleDetailInfo>()
|
|
|
- .Where(s => s.Id == dto.Id)
|
|
|
- .UpdateColumns(s => new { s.IsDel, s.DeleteUserId, s.DeleteTime })
|
|
|
+ .SetColumns(it => it.IsDel == _detail.IsDel)
|
|
|
+ .SetColumns(it => it.DeleteUserId == _detail.DeleteUserId)
|
|
|
+ .SetColumns(it => it.DeleteTime == _detail.DeleteTime)
|
|
|
+ .Where(it => it.Id == dto.Id)
|
|
|
+
|
|
|
+ //.UpdateColumns(s => new { s.IsDel, s.DeleteUserId, s.DeleteTime })
|
|
|
+ //.WhereColumns(s => s.Id == dto.Id)
|
|
|
.ExecuteCommandAsync();
|
|
|
if (result > 0)
|
|
|
{
|
|
@@ -313,7 +325,7 @@ namespace OASystem.API.Controllers
|
|
|
{
|
|
|
return Ok(JsonView(false, groupData.Msg));
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return Ok(JsonView(groupData.Data, groupData.Data.Count));
|
|
|
}
|
|
|
|
|
@@ -358,7 +370,7 @@ namespace OASystem.API.Controllers
|
|
|
return Ok(JsonView(groupData.Data));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
|
|
|
#endregion
|
|
|
}
|