|
@@ -4092,8 +4092,10 @@ func (c *PatientApiController) GetRemindPatientList() {
|
4092
|
4092
|
limit, _ := c.GetInt64("limit", 10)
|
4093
|
4093
|
adminUserInfo := c.GetAdminUserInfo()
|
4094
|
4094
|
total, patients, _ := service.GetAllWaitRemindPatient(adminUserInfo.CurrentOrgId, page, limit)
|
|
4095
|
+ fmt.Println("机构ID2222222222222", c.GetAdminUserInfo().CurrentOrgId)
|
4095
|
4096
|
|
4096
|
4097
|
_, errcode := service.GetOrgFollowIsExist(c.GetAdminUserInfo().CurrentOrgId)
|
|
4098
|
+ fmt.Println("机构ID2222222222222", errcode)
|
4097
|
4099
|
if errcode == gorm.ErrRecordNotFound {
|
4098
|
4100
|
information, err := service.GetAdminUserRoleInformation(0)
|
4099
|
4101
|
if err != nil {
|
|
@@ -4107,7 +4109,7 @@ func (c *PatientApiController) GetRemindPatientList() {
|
4107
|
4109
|
"information": information,
|
4108
|
4110
|
})
|
4109
|
4111
|
} else if errcode == nil {
|
4110
|
|
- information, err := service.GetAdminUserRoleInformation(0)
|
|
4112
|
+ information, err := service.GetAdminUserRoleInformation(c.GetAdminUserInfo().CurrentOrgId)
|
4111
|
4113
|
if err != nil {
|
4112
|
4114
|
utils.ErrorLog(err.Error())
|
4113
|
4115
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
@@ -4768,7 +4770,7 @@ func (c *PatientApiController) GetBanner() {
|
4768
|
4770
|
"information": information,
|
4769
|
4771
|
})
|
4770
|
4772
|
} else if errcodes == nil {
|
4771
|
|
- information, err := service.GetAdminUserRoleInformation(0)
|
|
4773
|
+ information, err := service.GetAdminUserRoleInformation(orgId)
|
4772
|
4774
|
if err != nil {
|
4773
|
4775
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
4774
|
4776
|
return
|