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