Browse Source

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

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

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

@@ -80,7 +80,7 @@ func HisManagerApiRegistRouters() {
80 80
 
81 81
 	beego.Router("/api/insutype/check", &HisApiController{}, "get:CheckInsutype")
82 82
 
83
-	beego.Router("/api/batchsettlelist/get", &HisApiController{}, "get:GetBatchSettleList")
83
+	//beego.Router("/api/batchsettlelist/get", &HisApiController{}, "get:GetBatchSettleList")
84 84
 
85 85
 	beego.Router("/api/batchsettlelist/get", &HisApiController{}, "get:GetBatchSettleList")
86 86
 
@@ -1757,7 +1757,7 @@ func (c *HisApiController) GetBatchSettleList() {
1757 1757
 				ErrMsg:    res.ErrMsg + "解析失败",
1758 1758
 				Status:    1,
1759 1759
 				PatientId: order_id,
1760
-				Stage:     40,
1760
+				Stage:     120,
1761 1761
 			}
1762 1762
 			service.CreateErrMsgLog(errlog)
1763 1763
 			continue
@@ -1772,7 +1772,7 @@ func (c *HisApiController) GetBatchSettleList() {
1772 1772
 				ErrMsg:    res.ErrMsg,
1773 1773
 				Status:    1,
1774 1774
 				PatientId: order_id,
1775
-				Stage:     40,
1775
+				Stage:     120,
1776 1776
 			}
1777 1777
 			service.CreateErrMsgLog(errlog)
1778 1778
 			continue
@@ -1788,9 +1788,7 @@ func (c *HisApiController) GetBatchSettleList() {
1788 1788
 			}
1789 1789
 			service.CreateUploadRecord(hisFundSettleListResult)
1790 1790
 			continue
1791
-
1792 1791
 		}
1793
-
1794 1792
 	}
1795 1793
 }
1796 1794
 

+ 1 - 1
service/his_service.go View File

@@ -1356,7 +1356,7 @@ func GetPsnByPatientId(patient_id int64) (psn models.HisPsn, err error) {
1356 1356
 }
1357 1357
 
1358 1358
 func GetAllHisOrder(org_id int64) (his []*models.HisOrder, err error) {
1359
-	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1 AND order_status = 2 AND setl_id <> '' AND  fa_piao_code <> '' AND fa_piao_batchnumber_id = 1", org_id).Order("setl_time asc").Find(&his).Error
1359
+	err = readDb.Model(&models.HisOrder{}).Where("user_org_id = ? AND status = 1 AND settle_accounts_date >= 1638806400 AND  settle_accounts_date <= 1640793600  AND  order_status = 2 AND setl_id <> '' AND  fa_piao_code <> '' ", org_id).Order("setl_time asc").Find(&his).Error
1360 1360
 	return
1361 1361
 }
1362 1362
 func GetAllHisOrderErr(org_id int64, stage int64) (his []*models.HisOrderError, err error) {