This commit is contained in:
gongxh
2022-05-14 10:46:36 +08:00
parent dfd71fe48c
commit 4a6894457d
12 changed files with 6579 additions and 67 deletions

View File

@@ -28,9 +28,9 @@ namespace CleanMachine.DAL.CM
public bool Add(CleanMachine.Model.CM.ShiftCount model)
{
string strSql = $@"INSERT INTO CM_SHIFT_COUNT
(DateTime,count)
(DateTime,count,UserCode)
values
(@DateTime,@Count) ";
(@DateTime,@Count,@UserCode) ";
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
}
@@ -40,7 +40,7 @@ namespace CleanMachine.DAL.CM
public bool Update(CleanMachine.Model.CM.ShiftCount model)
{
string strSql = $@"UPDATE CM_SHIFT_COUNT SET
count=@Count
count=@Count,UserCode=@UserCode
WHERE DateTime=@DateTime ";
return LeadDbHelperSQLite.Execute(strSql, model) > 0;
}