|
@@ -50,7 +50,7 @@ namespace GxPress.Repository.Implement.Group
|
|
|
{
|
|
|
await _repository.DeleteAsync(Q.Where(nameof(Entity.tede2.Group.UserGroupCategory.UserId), userId));
|
|
|
string sql = $@"INSERT INTO `tede_user_group_category`
|
|
|
- (`Id`,
|
|
|
+ (
|
|
|
`Guid`,
|
|
|
`CreatedDate`,
|
|
|
`GroupCategroyId`,
|
|
@@ -61,7 +61,7 @@ namespace GxPress.Repository.Implement.Group
|
|
|
{
|
|
|
var guid = System.Guid.NewGuid().ToString();
|
|
|
var createdDateValue = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
|
|
|
- sql += $@"('{guid}','{createdDateValue}',{item.GroupCategroyId},{item.UserId},'{createdDateValue}'),";
|
|
|
+ sql += $@"('{guid}','{createdDateValue}',{item.GroupCategroyId},{userId},'{createdDateValue}'),";
|
|
|
}
|
|
|
sql = sql.Remove(sql.Length - 1, 1);
|
|
|
var databaseType = _databaseTypestr.ToEnum<DatabaseType>(DatabaseType.MySql);
|