|
|
|
@ -1282,14 +1282,14 @@ func DeleteTeacherAllPosition(personIds []string) (bool, error) {
|
|
|
|
|
时间:2020-08-20
|
|
|
|
|
*/
|
|
|
|
|
func GetPositionInfoByPersonIdAndBureauId(personId string, bureauId string) ([]string, error) {
|
|
|
|
|
sql := `select id from t_base_teacher_position where person_id=? and bureau_id=? and b_use=1`
|
|
|
|
|
sql := `select position_id from t_base_teacher_position where person_id=? and bureau_id=? and b_use=1`
|
|
|
|
|
list, err := db.SQL(sql, personId, bureauId).Query().List()
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
res := make([]string, len(list))
|
|
|
|
|
for i := range list {
|
|
|
|
|
res[i] = list[i]["id"].(string)
|
|
|
|
|
res[i] = list[i]["position_id"].(string)
|
|
|
|
|
}
|
|
|
|
|
return res, nil
|
|
|
|
|
}
|
|
|
|
|