|
@@ -1315,6 +1315,7 @@ func (this *NewDialysisApiController) UpdatedPatient() {
|
1315
|
1315
|
|
1316
|
1316
|
thisPatientother, _ := service.FindPatientByDialysisNoOne(orgid, dialysis, id)
|
1317
|
1317
|
if thisPatientother.ID > 0 && thisPatientother.ID != patient.BloodId {
|
|
1318
|
+ fmt.Println("进来没有---------------------------------")
|
1318
|
1319
|
returnData := make(map[string]interface{}, 0)
|
1319
|
1320
|
returnData["msg"] = "透析号码已存在"
|
1320
|
1321
|
this.ServeSuccessJSON(returnData)
|
|
@@ -1777,6 +1778,8 @@ func (this *NewDialysisApiController) GetRoleName() {
|
1777
|
1778
|
appid := this.GetMobileAdminUserInfo().App.Id
|
1778
|
1779
|
fmt.Println("appid", appid)
|
1779
|
1780
|
name, err := service.GetRoleName(id, orgid, appid)
|
|
1781
|
+
|
|
1782
|
+ admin, err := service.GetAdmin(id)
|
1780
|
1783
|
positionName, err := service.GetPositionName(id, orgid, appid)
|
1781
|
1784
|
if err != nil {
|
1782
|
1785
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
@@ -1785,6 +1788,7 @@ func (this *NewDialysisApiController) GetRoleName() {
|
1785
|
1788
|
this.ServeSuccessJSON(map[string]interface{}{
|
1786
|
1789
|
"name": name,
|
1787
|
1790
|
"positionName": positionName,
|
|
1791
|
+ "admin": admin,
|
1788
|
1792
|
})
|
1789
|
1793
|
}
|
1790
|
1794
|
|
|
@@ -2308,7 +2312,9 @@ func (this *NewDialysisApiController) UpdatedBed() {
|
2308
|
2312
|
func (this *NewDialysisApiController) GetMyOrgInformation() {
|
2309
|
2313
|
creator, _ := this.GetInt64("creator")
|
2310
|
2314
|
fmt.Println("cretor", creator)
|
2311
|
|
- information, err := service.GetMyOrgInformation(creator)
|
|
2315
|
+ adminInfo := this.GetMobileAdminUserInfo()
|
|
2316
|
+ appId := adminInfo.App.Id
|
|
2317
|
+ information, err := service.GetMyOrgInformation(creator, appId)
|
2312
|
2318
|
if err != nil {
|
2313
|
2319
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
2314
|
2320
|
return
|