This commit is contained in:
gongxh
2022-05-16 09:03:42 +08:00
parent 4a6894457d
commit f3e77f63c0
37 changed files with 298 additions and 255 deletions

View File

@@ -197,12 +197,12 @@ namespace CleanMachineHMI.frmChild
if (allMenuData.Rows.Count > 0)
{
string sqlDeleteOldData = $@"delete from SYS_ROLE_MENU_PERMISSION where ROLE_ID = '{RoleId}'";
LeadDbHelperSQLite.ExecuteSql(sqlDeleteOldData);
LeadDbHelperSQLite.Execute(sqlDeleteOldData);
int rowSum = 0;
foreach (DataRow item in allMenuData.Rows)
{
string sqlAddNewData = $@"INSERT INTO main.SYS_ROLE_MENU_PERMISSION (ROLE_ID, MENU_ID, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME, DATA_VERSION, REMARKS1, REMARKS2, REMARKS3, REMARKS4, REMARKS5 ) VALUES ( '{RoleId}', '{item["MENU_ID"]}', '{Global.UserInfo.UserId}', '2020-11-13 15:22:34', '{Global.UserInfo.UserId}', '2020-11-13 15:22:34', 0, NULL, NULL, NULL, NULL, NULL );";
rowSum += LeadDbHelperSQLite.ExecuteSql(sqlAddNewData);
rowSum += LeadDbHelperSQLite.Execute(sqlAddNewData);
}
if (rowSum > 0)
{