修改日报时间
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user