|
|
|
@ -58,7 +58,7 @@ func GetByIds(ids []string) ([]models.TBaseTeacher, error) {
|
|
|
|
|
*/
|
|
|
|
|
func GetMaxSortId(OrgId string) int64 {
|
|
|
|
|
//取最大值
|
|
|
|
|
sql := "select ifnull(max(sort_id),0) as maxSortId from t_base_teacher_org where org_id=? and b_use=1"
|
|
|
|
|
sql := "select ifnull(max(sort_id),0) as maxSortId from t_base_teacher where org_id=? and b_use=1"
|
|
|
|
|
listSort, _ := db.SQL(sql, OrgId).Query().List()
|
|
|
|
|
SortId := listSort[0]["maxSortId"].(int64)
|
|
|
|
|
return SortId
|
|
|
|
|