Ver código fonte

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

csx 3 anos atrás
pai
commit
9ae3b59331
3 arquivos alterados com 2 adições e 34 exclusões
  1. 1 1
      conf/app.conf
  2. 0 32
      controllers/sg/his_api_controller.go
  3. 1 1
      service/his_service.go

+ 1 - 1
conf/app.conf Ver arquivo

@@ -45,7 +45,7 @@ appsecret="61ee2e6268497d5aa9de0b0187c39aea"
45 45
 
46 46
 
47 47
 [prod]
48
-org_id = 10106
48
+org_id = 9504
49 49
 mobile_token_expiration_second = 86400
50 50
 httpdomain = https://api.xt.kuyicloud.com
51 51
 sso_domain = https://sso.kuyicloud.com

+ 0 - 32
controllers/sg/his_api_controller.go Ver arquivo

@@ -5212,38 +5212,6 @@ func (c *HisApiController) GetSettleAccounts() {
5212 5212
 	his, _ := service.GetHisPatientByNumber(order.MdtrtId)
5213 5213
 	orderInfos, _ := service.GetHisOrderInfoByNumber(order.Number)
5214 5214
 	orderInfos_two, _ := service.GetHisOrderInfoByNumberTwo(order.Number)
5215
-	orderInfos_three, _ := service.GetHisOrderInfoByNumberThree(order.Number)
5216
-
5217
-	var orderInfos_four []*models.HisOrderInfo
5218
-	for _, item := range orderInfos_three {
5219
-		if item.HisPrescriptionProject.HisProject.CostClassify == 3 {
5220
-			item.HisPrescriptionProject.IsCheckTeam = 1
5221
-			orderInfos_four = append(orderInfos_four, item)
5222
-
5223
-		}
5224
-		if item.HisPrescriptionProject.HisProject.CostClassify != 3 {
5225
-			item.HisPrescriptionProject.IsCheckTeam = 2
5226
-			orderInfos_two = append(orderInfos_two, item)
5227
-		}
5228
-	}
5229
-
5230
-	new_order_info := RemoveRepeatedTeam(orderInfos_four)
5231
-	var cus_slice []CustomOrderInfo
5232
-	for _, item := range new_order_info {
5233
-		var cus CustomOrderInfo
5234
-		cus.Name = item.HisPrescriptionProject.XtHisProjectTeam.ProjectTeam
5235
-		cus.Unit = ""
5236
-		cus.Spec = ""
5237
-		for _, subItem := range orderInfos_four {
5238
-			if item.HisPrescriptionProject.TeamId == subItem.HisPrescriptionProject.TeamId {
5239
-				cus.Count = cus.Count + subItem.Cnt
5240
-				cus.Price = cus.Price + subItem.Pric
5241
-				cus.Total = cus.Total + (cus.Price * cus.Count)
5242
-			}
5243
-		}
5244
-		cus_slice = append(cus_slice, cus)
5245
-	}
5246
-
5247 5215
 	orderInfos = append(orderInfos, orderInfos_two...)
5248 5216
 	//diagnosisConfig, _ := service.FindDiagnoseById(his.Diagnosis)
5249 5217
 

+ 1 - 1
service/his_service.go Ver arquivo

@@ -953,7 +953,7 @@ func GetHisOrderInfoByNumber(order_number string) (order []*models.HisOrderInfo,
953 953
 
954 954
 func GetHisOrderInfoByNumberTwo(order_number string) (order []*models.HisOrderInfo, err error) {
955 955
 	db := readDb.Model(&models.HisOrderInfo{})
956
-	db = db.Joins("Join his_prescription_project as p  On p.id = his_order_info.project_id AND p.team_id = 0")
956
+	db = db.Joins("Join his_prescription_project as p  On p.id = his_order_info.project_id")
957 957
 	db = db.Preload("HisPrescriptionProject", func(db *gorm.DB) *gorm.DB {
958 958
 		return db.Preload("XtHisProjectTeam", "status = 1").Preload("HisProject", "status = 1").Preload("GoodInfo", "status = 1").Where("status = 1")
959 959
 	})