Browse Source

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

csx 3 years ago
parent
commit
d0fd873933
2 changed files with 3 additions and 3 deletions
  1. 2 2
      controllers/sg/his_api_controller.go
  2. 1 1
      service/his_service.go

+ 2 - 2
controllers/sg/his_api_controller.go View File

@@ -997,7 +997,7 @@ func (c *HisApiController) GetSettleList() {
997 997
 func (c *HisApiController) GetBatchSettleList() {
998 998
 	org_id, _ := beego.AppConfig.Int64("org_id")
999 999
 	orders, _ := service.GetAllHisOrder(org_id)
1000
-	admin_user_id, _ := c.GetInt64("admin_user_id")
1000
+	//admin_user_id, _ := c.GetInt64("admin_user_id")
1001 1001
 
1002 1002
 	for _, item := range orders {
1003 1003
 		order_id := item.ID
@@ -1005,7 +1005,7 @@ func (c *HisApiController) GetBatchSettleList() {
1005 1005
 		roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
1006 1006
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
1007 1007
 		admin, _ := service.GetAdminUserByUserID(roles[0].AdminUserId)
1008
-		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, admin_user_id)
1008
+		curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2495)
1009 1009
 		depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
1010 1010
 		miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
1011 1011
 

+ 1 - 1
service/his_service.go View File

@@ -1364,6 +1364,6 @@ func GetPsnByPatientId(patient_id int64) (psn models.HisPsn, err error) {
1364 1364
 }
1365 1365
 
1366 1366
 func GetAllHisOrder(org_id int64) (his []*models.HisOrder, err error) {
1367
-	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1 AND order_status = 2", org_id).Order("setl_time asc").Find(&his).Error
1367
+	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1 AND order_status = 2 AND setl_id <> ''", org_id).Order("setl_time asc").Find(&his).Error
1368 1368
 	return
1369 1369
 }