修改日报时间

This commit is contained in:
gongxh
2022-05-16 10:59:17 +08:00
parent c7762f1c88
commit 9dfb90f683
4 changed files with 13 additions and 5 deletions

View File

@@ -28,9 +28,9 @@ namespace CleanMachine.DAL.CM
public bool Add(CleanMachine.Model.CM.DayWorkTime model)
{
string strSql = $@"INSERT INTO CM_DayWorkTime
(Date,StartValue,EndValue)
(Date,StartValue,EndValue,StartTime)
values
(@Date,@StartValue,@EndValue) ";
(@Date,@StartValue,@EndValue,@StartTime) ";
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
}
@@ -52,7 +52,8 @@ namespace CleanMachine.DAL.CM
public bool UpdateEndValue(CleanMachine.Model.CM.DayWorkTime model)
{
string strSql = $@"UPDATE CM_DayWorkTime SET
EndValue=@EndValue
EndValue=@EndValue,
EndTime=@EndTime
WHERE Date=@Date ";
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
}