|
|
|
@ -2,11 +2,19 @@ package BaseRolePersonService
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"dsBaseWeb/Business/BaseRolePerson/BaseRolePersonProto"
|
|
|
|
|
"dsBaseWeb/Business/BaseTeacher/BaseTeacherProto"
|
|
|
|
|
"dsBaseWeb/Business/BaseTeacher/BaseTeacherService"
|
|
|
|
|
"dsBaseWeb/Utils/CommonUtil"
|
|
|
|
|
"encoding/json"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func GetPersonRoleInfo(personId string, actionPersonId string, actionIpAddress string) (*BaseRolePersonProto.Reply, error) {
|
|
|
|
|
Reply, err := PageBaseRolePerson(BaseRolePersonProto.QueryArg{PersonId: personId, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
|
|
|
|
|
if Reply.List != "[]" {
|
|
|
|
|
PersonReply, _ := BaseTeacherService.GetBaseTeacher(BaseTeacherProto.ModelArg{PersonId: personId, ActionPersonId: actionPersonId, ActionIpAddress: actionIpAddress})
|
|
|
|
|
handleListStr := CommonUtil.ListMerge(Reply.List, PersonReply.List, "person_id", "person_id", "person_name", "xm")
|
|
|
|
|
Reply.List = handleListStr
|
|
|
|
|
}
|
|
|
|
|
return Reply, err
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|