李昊 4 年 前
コミット
84b31aee26
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1 1
      GxPress/Api/GxPress.Api/AdminControllers/AdminUserController.cs

+ 1 - 1
GxPress/Api/GxPress.Api/AdminControllers/AdminUserController.cs

@@ -205,7 +205,7 @@ namespace GxPress.Api.AdminControllers
                 user.Email = email;
                 user.DepartmentId = request.DepartmentId;
                 var sex = sheet.Rows[i][4].ToString().Trim().Replace(" ", ""); //性别
-                user.Gender = sex == "男" ? "Male" : "Female";
+                user.Gender = sex == "女" ? "Female" : "Male";
                 var city = sheet.Rows[i][5].ToString().Trim().Replace(" ", ""); //城市
                 user.City = city;
                 var isLeader = sheet.Rows[i][6].ToString().Trim().Replace(" ", ""); //是否部门负责人