|
@@ -1734,16 +1734,14 @@ func (c *HisApiController) GetSettleListHospital() {
|
1734
|
1734
|
}
|
1735
|
1735
|
|
1736
|
1736
|
func (c *HisApiController) GetBatchSettleList() {
|
1737
|
|
- org_id, _ := beego.AppConfig.Int64("org_id")
|
1738
|
|
- //stage, _ := c.GetInt64("stage")
|
1739
|
|
- orders, _ := service.GetAllHisOrder(org_id)
|
|
1737
|
+ orders, _ := service.GetAllHisOrder(10106)
|
1740
|
1738
|
for _, item := range orders {
|
1741
|
1739
|
order_id := item.ID
|
1742
|
1740
|
order, _ := service.GetHisOrderByIDTwo(order_id)
|
1743
|
1741
|
roles, _ := service.GetDoctorListTwo(c.GetAdminUserInfo().CurrentOrgId)
|
1744
|
1742
|
his, _ := service.GetHisPatientByNumber(order.MdtrtId)
|
1745
|
1743
|
admin, _ := service.GetAdminUserByUserID(roles[0].AdminUserId)
|
1746
|
|
- curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2185)
|
|
1744
|
+ curRoles, _ := service.GetAdminUserInfoByID(c.GetAdminUserInfo().CurrentOrgId, 2495)
|
1747
|
1745
|
depart, _ := service.GetDepartMentDetail(curRoles.DepartmentId)
|
1748
|
1746
|
miConfig, _ := service.FindMedicalInsuranceInfo(c.GetAdminUserInfo().CurrentOrgId)
|
1749
|
1747
|
|
|
@@ -2447,7 +2445,7 @@ func (c *HisApiController) GetBatchSettleList() {
|
2447
|
2445
|
ErrMsg: res.ErrMsg + "解析失败",
|
2448
|
2446
|
Status: 1,
|
2449
|
2447
|
PatientId: order_id,
|
2450
|
|
- Stage: 1000,
|
|
2448
|
+ Stage: 2000,
|
2451
|
2449
|
}
|
2452
|
2450
|
service.CreateErrMsgLog(errlog)
|
2453
|
2451
|
continue
|
|
@@ -2462,7 +2460,7 @@ func (c *HisApiController) GetBatchSettleList() {
|
2462
|
2460
|
ErrMsg: res.ErrMsg,
|
2463
|
2461
|
Status: 1,
|
2464
|
2462
|
PatientId: order_id,
|
2465
|
|
- Stage: 1000,
|
|
2463
|
+ Stage: 2000,
|
2466
|
2464
|
}
|
2467
|
2465
|
service.CreateErrMsgLog(errlog)
|
2468
|
2466
|
continue
|