|
@@ -3219,6 +3219,12 @@ func (c *HisApiController) RefundNumber() {
|
3219
|
3219
|
his_patient_id, _ := c.GetInt64("id")
|
3220
|
3220
|
info, _ := service.GetNewHisPatientInfo(his_patient_id)
|
3221
|
3221
|
info.Status = 0
|
|
3222
|
+ count, _ := service.GetOrderCountByNumber(c.GetAdminUserInfo().CurrentOrgId, info.PatientId, info.RecordDate, info.Number)
|
|
3223
|
+ if count > 0 {
|
|
3224
|
+ c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeOrderParamWrong)
|
|
3225
|
+ return
|
|
3226
|
+ }
|
|
3227
|
+
|
3222
|
3228
|
err := service.SaveHisPatient(info)
|
3223
|
3229
|
if err == nil {
|
3224
|
3230
|
c.ServeSuccessJSON(map[string]interface{}{
|