|
|
|
@ -705,7 +705,7 @@ func insertStudent(batchId string, bureauModel models.TBaseOrganization,actionPe
|
|
|
|
|
if model.Sfzjlxm == "1" {
|
|
|
|
|
//根据身份证号,提取男女,出生日期
|
|
|
|
|
_, birthday, xbm := IdCardUtil.GetIdCardNoInfo(r1.Sfzjh)
|
|
|
|
|
model.Csrq = DateUtil.ConvertDateTime(birthday)
|
|
|
|
|
model.Csrq = DateUtil.ConvertDateTime(birthday+" 00:00:00")
|
|
|
|
|
model.Xbm = xbm
|
|
|
|
|
} else {
|
|
|
|
|
//如果不是身份证号,那就用个默认值吧
|
|
|
|
@ -820,7 +820,7 @@ func updateStudentImport(batchId string, bureauModel models.TBaseOrganization,ac
|
|
|
|
|
if model.Sfzjlxm == "1" {
|
|
|
|
|
//根据身份证号,提取男女,出生日期
|
|
|
|
|
_, birthday, xbm := IdCardUtil.GetIdCardNoInfo(r1.Sfzjh)
|
|
|
|
|
model.Csrq = DateUtil.ConvertDateTime(birthday)
|
|
|
|
|
model.Csrq = DateUtil.ConvertDateTime(birthday+" 00:00:00")
|
|
|
|
|
model.Xbm = xbm
|
|
|
|
|
} else {
|
|
|
|
|
//如果不是身份证号,那就用个默认值吧
|
|
|
|
|