master
huanghai 5 years ago
parent 8e8b1ba48e
commit 9f4743a457

@ -1089,9 +1089,9 @@ func DeleteTeacherOrgInfoAll(personIds []string) error {
2020-08-05
*/
func UpdateSortId(personId string, orgId string, sortId int32) {
sql := `update t_base_teacher_org set sort_id=? where person_id=? and org_id=?`
db.SQL(sql, sortId, personId, orgId).Execute()
func UpdateSortId(personId string, sortId int32) {
sql := `update t_base_teacher_org set sort_id=? where person_id=?`
db.SQL(sql, sortId, personId).Execute()
}
/**

@ -278,7 +278,7 @@ func (s *Rpc) UpdateBaseTeacher(ctx context.Context, in *BaseTeacherProto.ModelA
model.Zcm = in.Zcm
model.Bzlbm = in.Bzlbm
//排序号
BaseTeacherDao.UpdateSortId(model.PersonId,in.OrgId,in.SortId)
BaseTeacherDao.UpdateSortId(model.PersonId,in.SortId)
//从教年月
if len(in.Cjny) == 0 {
model.Cjny = DateUtil.ConvertDate("1900-01-01")

Loading…
Cancel
Save