Browse Source

Merge branch 'master' of http://git.shengws.com/csx/gdyb

csx 3 years ago
parent
commit
8a4d5b6755
1 changed files with 3 additions and 1 deletions
  1. 3 1
      controllers/sg/his_api_controller.go

+ 3 - 1
controllers/sg/his_api_controller.go View File

6397
 	adminUser := c.GetAdminUserInfo()
6397
 	adminUser := c.GetAdminUserInfo()
6398
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
6398
 	miConfig, _ := service.FindMedicalInsuranceInfo(adminUser.CurrentOrgId)
6399
 	config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
6399
 	config, _ := service.GetMedicalInsuranceConfig(adminUser.CurrentOrgId)
6400
-
6400
+	if len(clr_org) == 0 {
6401
+		clr_org = miConfig.MdtrtareaAdmvs
6402
+	}
6401
 	timeLayout := "2006-01-02"
6403
 	timeLayout := "2006-01-02"
6402
 	loc, _ := time.LoadLocation("Local")
6404
 	loc, _ := time.LoadLocation("Local")
6403
 	startime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)
6405
 	startime, _ := time.ParseInLocation(timeLayout+" 15:04:05", start_time+" 00:00:00", loc)