diff --git a/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go b/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go index 60d765d9..f9cdd903 100644 --- a/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go +++ b/dsSupport/MyModel/AccessSystem/AccessSystemDao/AccessSystemDao.go @@ -202,6 +202,15 @@ func SaveAppIdentity(identityId int, appId string) error { return nil } +/** +功能:获取指定APP的身份对应信息 +*/ +func GetAppIdentity(appId string) ([]map[string]interface{}, error) { + sql := `select * from t_app_identity where app_id=?` + list, err := db.SQL(sql, appId).Query().List() + return list, err +} + /** 功能:保存接入系统与职务的关系 */ @@ -220,6 +229,15 @@ func SaveAppPosition(appId string, positionId string) error { return nil } +/** +功能:获取指定APP的职务对应信息 +*/ +func GetAppPosition(appId string) ([]map[string]interface{}, error) { + sql := `select * from t_app_position where app_id=?` + list, err := db.SQL(sql, appId).Query().List() + return list, err +} + /** 功能:保存接入系统与学段的关系 */ @@ -247,6 +265,15 @@ func SaveAppStage(appId string, positionIds []string) error { return nil } +/** +功能:获取指定APP的学段对应信息 +*/ +func GetAppStage(appId string) ([]map[string]interface{}, error) { + sql := `select * from t_app_stage where app_id=?` + list, err := db.SQL(sql, appId).Query().List() + return list, err +} + /** 功能:保存接入系统与可视范围的关系 */