Преглед на файлове

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

csx преди 3 години
родител
ревизия
b5e580a2b7
променени са 1 файла, в които са добавени 4 реда и са изтрити 4 реда
  1. 4 4
      controllers/sg/his_api_controller.go

+ 4 - 4
controllers/sg/his_api_controller.go Целия файл

@@ -1736,9 +1736,9 @@ func (c *HisApiController) GetSettleListHospital() {
1736 1736
 }
1737 1737
 
1738 1738
 func (c *HisApiController) GetBatchSettleList() {
1739
-	orders, _ := service.GetAllHisOrder(9504)
1739
+	orders, _ := service.GetAllHisOrderErr(9504, 9504)
1740 1740
 	for _, item := range orders {
1741
-		order_id := item.ID
1741
+		order_id := item.PatientId
1742 1742
 		order, _ := service.GetHisOrderByIDTwo(order_id)
1743 1743
 		roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
1744 1744
 		his, _ := service.GetHisPatientByNumber(order.MdtrtId)
@@ -1827,7 +1827,7 @@ func (c *HisApiController) GetBatchSettleList() {
1827 1827
 		var tempOpspdiseinfo2 service.OpspdiseinfoStruct
1828 1828
 		var tempOpspdiseinfos []service.OpspdiseinfoStruct
1829 1829
 
1830
-		diagnosis_ids := strings.Split(order.Diagnosis, ",")
1830
+		diagnosis_ids := strings.Split(his.Diagnosis, ",")
1831 1831
 		var config []*models.HisXtDiagnoseConfig
1832 1832
 		for _, item := range diagnosis_ids {
1833 1833
 			id, _ := strconv.ParseInt(item, 10, 64)
@@ -2463,7 +2463,7 @@ func (c *HisApiController) GetBatchSettleList() {
2463 2463
 				ErrMsg:    res.ErrMsg,
2464 2464
 				Status:    1,
2465 2465
 				PatientId: order_id,
2466
-				Stage:     9504,
2466
+				Stage:     9505,
2467 2467
 			}
2468 2468
 			service.CreateErrMsgLog(errlog)
2469 2469
 			continue