Pārlūkot izejas kodu

学生同步bug修改

master
坤 梁 pirms 1 gada
vecāks
revīzija
5df558ffa8
1 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. +9
    -4
      DigitalSchoolApi/Controllers/YKTTrabs.cs

+ 9
- 4
DigitalSchoolApi/Controllers/YKTTrabs.cs Parādīt failu

@@ -1911,7 +1911,7 @@ namespace DigitalSchoolApi.Controllers
} }
if (!string.IsNullOrEmpty(item.SEX_CODE)) if (!string.IsNullOrEmpty(item.SEX_CODE))
{ {
sb.Append($" GenderNo='{item.SEX_CODE}',");
sb.Append(" GenderNo='"+(item.SEX_CODE=="1"?"1":"0")+"',");
} }
//民族 //民族
if (!string.IsNullOrEmpty(item.NATION_CODE)) if (!string.IsNullOrEmpty(item.NATION_CODE))
@@ -2056,8 +2056,8 @@ namespace DigitalSchoolApi.Controllers
} }
if (!string.IsNullOrEmpty(xsxx.SEX_CODE)) if (!string.IsNullOrEmpty(xsxx.SEX_CODE))
{ {
fieleSb.Append("IdentityCardNo,");
sb.Append($" '{xsxx.SEX_CODE}',");
fieleSb.Append("GenderNo,");
sb.Append(" '" + (xsxx.SEX_CODE == "1" ? "1" : "0") + "',");
} }
//民族 //民族
if (!string.IsNullOrEmpty(xsxx.NATION_CODE)) if (!string.IsNullOrEmpty(xsxx.NATION_CODE))
@@ -2101,7 +2101,12 @@ namespace DigitalSchoolApi.Controllers
fieleSb.Append("Grade,"); fieleSb.Append("Grade,");
sb.Append($" '{xsxx.ENROLL_GRADE.ToString().Substring(2)}',"); sb.Append($" '{xsxx.ENROLL_GRADE.ToString().Substring(2)}',");
} }
sb.Append(@" InSchoolStatus='" + (xsxx.IS_NORMAL) + "',");

if (xsxx.IS_NORMAL!=null)
{
fieleSb.Append("InSchoolStatus,");
sb.Append(" '" + (xsxx.IS_NORMAL) + "',");
}
//去掉最后一个逗号 //去掉最后一个逗号
if (fieleSb.ToString().Contains(",") && sb.ToString().Contains(",")) if (fieleSb.ToString().Contains(",") && sb.ToString().Contains(","))
{ {


Notiek ielāde…
Atcelt
Saglabāt