|
@@ -1589,6 +1589,8 @@ func (c *ZHHisApiController) GetUploadInfo() {
|
1589
|
1589
|
}
|
1590
|
1590
|
|
1591
|
1591
|
err := service.UpDatePrescriptionOrderStatus(adminUser.CurrentOrgId, ids)
|
|
1592
|
+ service.UpDatePrescriptionNumber(adminUser.CurrentOrgId, ids, record.Number)
|
|
1593
|
+ service.UpDatePrescriptionInfoNumber(adminUser.CurrentOrgId, patientPrescription.PatientId, record.Number, recordDateTime)
|
1592
|
1594
|
if err == nil {
|
1593
|
1595
|
c.ServeSuccessJSON(map[string]interface{}{
|
1594
|
1596
|
"msg": "上传费用明细成功",
|
|
@@ -1876,10 +1878,10 @@ func (c *ZHHisApiController) ZHRefundDetail() {
|
1876
|
1878
|
}
|
1877
|
1879
|
|
1878
|
1880
|
if res2.Infcode == 0 {
|
1879
|
|
- err := service.UpdataOrderStatus(order_id, record.Number, adminUser.CurrentOrgId, "", result)
|
|
1881
|
+ err := service.UpdataHospitalOrderStatus(order_id, record.Number, adminUser.CurrentOrgId)
|
1880
|
1882
|
if err == nil {
|
1881
|
1883
|
c.ServeSuccessJSON(map[string]interface{}{
|
1882
|
|
- "msg": "退费成功",
|
|
1884
|
+ "msg": "撤销明细成功",
|
1883
|
1885
|
})
|
1884
|
1886
|
} else {
|
1885
|
1887
|
c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
|
@@ -1891,18 +1893,7 @@ func (c *ZHHisApiController) ZHRefundDetail() {
|
1891
|
1893
|
"msg": res2.ErrMsg,
|
1892
|
1894
|
})
|
1893
|
1895
|
}
|
1894
|
|
- } else {
|
1895
|
|
- err := service.UpdataOrderStatus(order_id, record.Number, adminUser.CurrentOrgId, "", "")
|
1896
|
|
- if err == nil {
|
1897
|
|
- c.ServeSuccessJSON(map[string]interface{}{
|
1898
|
|
- "msg": "退费成功",
|
1899
|
|
- })
|
1900
|
|
- } else {
|
1901
|
|
- c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeDataException)
|
1902
|
|
- return
|
1903
|
|
- }
|
1904
|
1896
|
}
|
1905
|
|
-
|
1906
|
1897
|
}
|
1907
|
1898
|
|
1908
|
1899
|
}
|