diff --git a/dsBaseRpc/RpcService/BaseClass/BaseClassDao/BaseClassDao.go b/dsBaseRpc/RpcService/BaseClass/BaseClassDao/BaseClassDao.go index 7c4ed60b..746ff2a4 100644 --- a/dsBaseRpc/RpcService/BaseClass/BaseClassDao/BaseClassDao.go +++ b/dsBaseRpc/RpcService/BaseClass/BaseClassDao/BaseClassDao.go @@ -119,8 +119,8 @@ func PageBaseClass(in *BaseClassProto.QueryArg) ([]map[string]interface{}, int32 return nil, 0, err } //调用多查询字段通用方法 - list, err := db.SQL(sql).Query().List() - return list, int32(len(list)), err + list, count, err := SqlKit.Query(sql) + return list, count, err } //根据学校ID获取学部(学段)信息 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 +} + /** 功能:保存接入系统与可视范围的关系 */