|
@@ -996,11 +996,11 @@ func (c *HisApiController) GetSettleList() {
|
996
|
996
|
|
997
|
997
|
func (c *HisApiController) GetBatchSettleList() {
|
998
|
998
|
org_id, _ := beego.AppConfig.Int64("org_id")
|
999
|
|
- stage, _ := c.GetInt64("stage")
|
1000
|
|
- orders, _ := service.GetAllHisOrderErr(org_id, stage)
|
|
999
|
+ //stage, _ := c.GetInt64("stage")
|
|
1000
|
+ orders, _ := service.GetAllHisOrder(org_id)
|
1001
|
1001
|
|
1002
|
1002
|
for _, item := range orders {
|
1003
|
|
- order_id := item.PatientId
|
|
1003
|
+ order_id := item.ID
|
1004
|
1004
|
order, _ := service.GetHisOrderByIDTwo(order_id)
|
1005
|
1005
|
roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
|
1006
|
1006
|
his, _ := service.GetHisPatientByNumber(order.MdtrtId)
|
|
@@ -1700,7 +1700,7 @@ func (c *HisApiController) GetBatchSettleList() {
|
1700
|
1700
|
ErrMsg: res.ErrMsg + "解析失败",
|
1701
|
1701
|
Status: 1,
|
1702
|
1702
|
PatientId: order_id,
|
1703
|
|
- Stage: 21,
|
|
1703
|
+ Stage: 30,
|
1704
|
1704
|
}
|
1705
|
1705
|
service.CreateErrMsgLog(errlog)
|
1706
|
1706
|
continue
|
|
@@ -1714,8 +1714,8 @@ func (c *HisApiController) GetBatchSettleList() {
|
1714
|
1714
|
Mtime: time.Now().Unix(),
|
1715
|
1715
|
ErrMsg: res.ErrMsg,
|
1716
|
1716
|
Status: 1,
|
1717
|
|
- PatientId: item.ID,
|
1718
|
|
- Stage: 20,
|
|
1717
|
+ PatientId: order_id,
|
|
1718
|
+ Stage: 30,
|
1719
|
1719
|
}
|
1720
|
1720
|
service.CreateErrMsgLog(errlog)
|
1721
|
1721
|
continue
|