|
@@ -1496,6 +1496,26 @@ func (this *NewDialysisApiController) GetAllDoctor() {
|
1496
|
1496
|
})
|
1497
|
1497
|
}
|
1498
|
1498
|
|
|
1499
|
+func (this *NewDialysisApiController) GetAllProjectName() {
|
|
1500
|
+ id := this.GetString("date")
|
|
1501
|
+ fmt.Println("id是", id)
|
|
1502
|
+ ids, _ := strconv.ParseInt(id, 10, 64)
|
|
1503
|
+ patientid := this.GetString("patientid")
|
|
1504
|
+ fmt.Println("patient", patientid)
|
|
1505
|
+ paientids, _ := strconv.ParseInt(patientid, 10, 64)
|
|
1506
|
+ patient, _ := service.GetNewPatient(paientids)
|
|
1507
|
+ orgid := this.GetMobileAdminUserInfo().Org.Id
|
|
1508
|
+ projectName, err := service.GetAllProjectName(ids, orgid, patient.BloodId)
|
|
1509
|
+ fmt.Println("projectname----------------------------------", err)
|
|
1510
|
+ if err != nil {
|
|
1511
|
+ this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
|
1512
|
+ return
|
|
1513
|
+ }
|
|
1514
|
+ this.ServeSuccessJSON(map[string]interface{}{
|
|
1515
|
+ "projectName": projectName,
|
|
1516
|
+ })
|
|
1517
|
+}
|
|
1518
|
+
|
1499
|
1519
|
func (this *NewDialysisApiController) GetAllInspection() {
|
1500
|
1520
|
|
1501
|
1521
|
|
|
@@ -1704,9 +1724,8 @@ func (this *NewDialysisApiController) SaveMessage() {
|
1704
|
1724
|
orgid, _ := this.GetInt64("orgid")
|
1705
|
1725
|
role := models.SgjUserAdminRole{
|
1706
|
1726
|
Message: message,
|
1707
|
|
- OrgId: orgid,
|
1708
|
1727
|
}
|
1709
|
|
- err := service.SaveMessage(id, &role)
|
|
1728
|
+ err := service.SaveMessage(id, orgid, &role)
|
1710
|
1729
|
if err != nil {
|
1711
|
1730
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
1712
|
1731
|
return
|
|
@@ -2232,11 +2251,12 @@ func (this *NewDialysisApiController) GetMyInformationFour() {
|
2232
|
2251
|
orgid := adminUserInfo.Org.Id
|
2233
|
2252
|
|
2234
|
2253
|
fmt.Println("orgid", orgid)
|
2235
|
|
- OrgId, _ := service.GetCreatByOrgId(orgid)
|
2236
|
|
- fmt.Println("创建者ID", OrgId.Creator)
|
2237
|
|
-
|
|
2254
|
+
|
|
2255
|
+
|
|
2256
|
+ creatId := adminUserInfo.AdminUser.Id
|
|
2257
|
+ fmt.Println("creatid-----------------------------", creatId)
|
2238
|
2258
|
fmt.Println("当前机构ID信息---------------------", orgid)
|
2239
|
|
- Username, err := service.GetMyOrgInformationFour(OrgId.Creator, orgid)
|
|
2259
|
+ Username, err := service.GetMyOrgInformationFour(creatId, orgid)
|
2240
|
2260
|
if err != nil {
|
2241
|
2261
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
2242
|
2262
|
return
|
|
@@ -2365,11 +2385,13 @@ func (this *NewDialysisApiController) GetMyOrgInformation() {
|
2365
|
2385
|
func (this *NewDialysisApiController) SaveNameTwo() {
|
2366
|
2386
|
id, _ := this.GetInt64("id")
|
2367
|
2387
|
name := this.GetString("name")
|
|
2388
|
+ orgid, _ := this.GetInt64("orgid")
|
2368
|
2389
|
fmt.Println("name------------------", name)
|
2369
|
2390
|
role := models.SgjUserAdminRole{
|
2370
|
2391
|
UserName: name,
|
2371
|
2392
|
}
|
2372
|
|
- err := service.SaveNameTwo(id, &role)
|
|
2393
|
+ err := service.SaveNameTwo(id, orgid, &role)
|
|
2394
|
+ fmt.Println("err----------------------------------", err)
|
2373
|
2395
|
if err != nil {
|
2374
|
2396
|
this.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeSystemError)
|
2375
|
2397
|
return
|