作者 yangfu

login access修改

... ... @@ -58,7 +58,7 @@ func (repository *LoginAccessRepository) Save(loginAccess *domain.LoginAccess) (
&loginAccess.CreatedTime,
&loginAccess.UpdatedTime,
),
fmt.Sprintf("INSERT INTO login_accesss (%s) VALUES (%s) RETURNING %s", insertFieldsSnippet, insertPlaceHoldersSnippet, returningFieldsSnippet),
fmt.Sprintf("INSERT INTO login_access (%s) VALUES (%s) RETURNING %s", insertFieldsSnippet, insertPlaceHoldersSnippet, returningFieldsSnippet),
loginAccess.Account,
loginAccess.Platform,
loginAccess.CompanyId,
... ... @@ -86,7 +86,7 @@ func (repository *LoginAccessRepository) Save(loginAccess *domain.LoginAccess) (
&loginAccess.CreatedTime,
&loginAccess.UpdatedTime,
),
fmt.Sprintf("UPDATE login_accesss SET %s WHERE login_access_id=? RETURNING %s", updateFieldsSnippet, returningFieldsSnippet),
fmt.Sprintf("UPDATE login_access SET %s WHERE login_access_id=? RETURNING %s", updateFieldsSnippet, returningFieldsSnippet),
loginAccess.Account,
loginAccess.Platform,
loginAccess.CompanyId,
... ...