|
@@ -5257,11 +5257,11 @@ func (c *HisApiController) DeletePrescription() {
|
5257
|
5257
|
new_prescription, p_err := service.GetPrescriptionById(prescription_id, c.GetAdminUserInfo().CurrentOrgId)
|
5258
|
5258
|
new_prescriptions, _ := service.GetHisPrescription(c.GetAdminUserInfo().CurrentOrgId, new_prescription.PatientId, new_prescription.RecordDate, new_prescription.PType)
|
5259
|
5259
|
|
5260
|
|
- for _, item := range new_prescriptions {
|
5261
|
|
- if item.IsMedicine == 1 {
|
5262
|
|
- isMedicine = true
|
5263
|
|
- }
|
|
5260
|
+ //for _, item := range new_prescriptions {
|
|
5261
|
+ if new_prescription.IsMedicine == 1 {
|
|
5262
|
+ isMedicine = true
|
5264
|
5263
|
}
|
|
5264
|
+ //}
|
5265
|
5265
|
|
5266
|
5266
|
for _, item := range new_prescriptions {
|
5267
|
5267
|
if item.OrderStatus == 4 {
|
|
@@ -5811,11 +5811,11 @@ func (c *HisApiController) DeleteDoctorAdvice() {
|
5811
|
5811
|
|
5812
|
5812
|
//获取今天该患者所有处方,判断是否发药或者收费
|
5813
|
5813
|
new_prescriptions, _ := service.GetHisPrescription(c.GetAdminUserInfo().CurrentOrgId, new_prescription.PatientId, new_prescription.RecordDate, new_prescription.PType)
|
5814
|
|
- for _, item := range new_prescriptions {
|
5815
|
|
- if item.IsMedicine == 1 {
|
5816
|
|
- isMedicine = true
|
5817
|
|
- }
|
|
5814
|
+ //for _, item := range new_prescriptions {
|
|
5815
|
+ if new_prescription.IsMedicine == 1 {
|
|
5816
|
+ isMedicine = true
|
5818
|
5817
|
}
|
|
5818
|
+ //}
|
5819
|
5819
|
for _, item := range new_prescriptions {
|
5820
|
5820
|
if item.OrderStatus == 4 {
|
5821
|
5821
|
isCharge = true
|
|
@@ -7638,6 +7638,7 @@ func (c *HisApiController) setAdviceWithJSON(advice *models.HisDoctorAdviceInfo,
|
7638
|
7638
|
}
|
7639
|
7639
|
//advice.Groupno = hisAdvice.Groupno
|
7640
|
7640
|
} else {
|
|
7641
|
+ advice.IsMedicine = 0
|
7641
|
7642
|
ctime := time.Now().Unix()
|
7642
|
7643
|
advice.CreatedTime = ctime
|
7643
|
7644
|
advice.UpdatedTime = ctime
|
|
@@ -7645,6 +7646,7 @@ func (c *HisApiController) setAdviceWithJSON(advice *models.HisDoctorAdviceInfo,
|
7645
|
7646
|
}
|
7646
|
7647
|
}
|
7647
|
7648
|
} else {
|
|
7649
|
+ advice.IsMedicine = 0
|
7648
|
7650
|
ctime := time.Now().Unix()
|
7649
|
7651
|
advice.CreatedTime = ctime
|
7650
|
7652
|
advice.UpdatedTime = ctime
|