|
|
|
@ -51,7 +51,7 @@ func (s *Rpc) AddBaseStudent(ctx context.Context, in *BaseStudentProto.ModelArg)
|
|
|
|
|
//是不是重复
|
|
|
|
|
if !SysLoginpersonDao.IsValidIdCardNo(in.Sfzjh, "") {
|
|
|
|
|
reply.Success = false
|
|
|
|
|
reply.Message = "唯一身份标识在系统中已存在,无法创建!"
|
|
|
|
|
reply.Message = "证件号在系统中已存在,无法创建!"
|
|
|
|
|
return &reply, nil
|
|
|
|
|
}
|
|
|
|
|
//==========================================
|
|
|
|
@ -84,7 +84,7 @@ func (s *Rpc) AddBaseStudent(ctx context.Context, in *BaseStudentProto.ModelArg)
|
|
|
|
|
model.Xbm = xbm
|
|
|
|
|
} else {
|
|
|
|
|
model.Csrq = DateUtil.ConvertDate(in.Csrq)
|
|
|
|
|
model.Xbm = "1"
|
|
|
|
|
model.Xbm = in.Xbm
|
|
|
|
|
}
|
|
|
|
|
//民族 (有字典)
|
|
|
|
|
model.Mzm = in.Mzm
|
|
|
|
@ -245,7 +245,7 @@ func (s *Rpc) UpdateBaseStudent(ctx context.Context, in *BaseStudentProto.ModelA
|
|
|
|
|
//是不是重复
|
|
|
|
|
if !SysLoginpersonDao.IsValidIdCardNo(in.Sfzjh, in.PersonId) {
|
|
|
|
|
reply.Success = false
|
|
|
|
|
reply.Message = "唯一身份标识在系统中已存在,无法创建!"
|
|
|
|
|
reply.Message = "证件号在系统中已存在,无法创建!"
|
|
|
|
|
return &reply, nil
|
|
|
|
|
}
|
|
|
|
|
//==========================================
|
|
|
|
|