Browse Source

学生同步bug修改

master
坤 梁 1 year ago
parent
commit
5df558ffa8
1 changed files with 9 additions and 4 deletions
  1. +9
    -4
      DigitalSchoolApi/Controllers/YKTTrabs.cs

+ 9
- 4
DigitalSchoolApi/Controllers/YKTTrabs.cs View File

@@ -1911,7 +1911,7 @@ namespace DigitalSchoolApi.Controllers
}
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))
@@ -2056,8 +2056,8 @@ namespace DigitalSchoolApi.Controllers
}
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))
@@ -2101,7 +2101,12 @@ namespace DigitalSchoolApi.Controllers
fieleSb.Append("Grade,");
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(","))
{


Loading…
Cancel
Save