|
@@ -5248,11 +5248,11 @@ func (c *HisApiController) DeletePrescription() {
|
5248
|
5248
|
new_prescription, p_err := service.GetPrescriptionById(prescription_id, c.GetAdminUserInfo().CurrentOrgId)
|
5249
|
5249
|
new_prescriptions, _ := service.GetHisPrescription(c.GetAdminUserInfo().CurrentOrgId, new_prescription.PatientId, new_prescription.RecordDate, new_prescription.PType)
|
5250
|
5250
|
|
5251
|
|
- for _, item := range new_prescriptions {
|
5252
|
|
- if item.IsMedicine == 1 {
|
5253
|
|
- isMedicine = true
|
5254
|
|
- }
|
|
5251
|
+ //for _, item := range new_prescriptions {
|
|
5252
|
+ if new_prescription.IsMedicine == 1 {
|
|
5253
|
+ isMedicine = true
|
5255
|
5254
|
}
|
|
5255
|
+ //}
|
5256
|
5256
|
|
5257
|
5257
|
for _, item := range new_prescriptions {
|
5258
|
5258
|
if item.OrderStatus == 4 {
|
|
@@ -5802,11 +5802,11 @@ func (c *HisApiController) DeleteDoctorAdvice() {
|
5802
|
5802
|
|
5803
|
5803
|
//获取今天该患者所有处方,判断是否发药或者收费
|
5804
|
5804
|
new_prescriptions, _ := service.GetHisPrescription(c.GetAdminUserInfo().CurrentOrgId, new_prescription.PatientId, new_prescription.RecordDate, new_prescription.PType)
|
5805
|
|
- for _, item := range new_prescriptions {
|
5806
|
|
- if item.IsMedicine == 1 {
|
5807
|
|
- isMedicine = true
|
5808
|
|
- }
|
|
5805
|
+ //for _, item := range new_prescriptions {
|
|
5806
|
+ if new_prescription.IsMedicine == 1 {
|
|
5807
|
+ isMedicine = true
|
5809
|
5808
|
}
|
|
5809
|
+ //}
|
5810
|
5810
|
for _, item := range new_prescriptions {
|
5811
|
5811
|
if item.OrderStatus == 4 {
|
5812
|
5812
|
isCharge = true
|
|
@@ -7629,6 +7629,7 @@ func (c *HisApiController) setAdviceWithJSON(advice *models.HisDoctorAdviceInfo,
|
7629
|
7629
|
}
|
7630
|
7630
|
//advice.Groupno = hisAdvice.Groupno
|
7631
|
7631
|
} else {
|
|
7632
|
+ advice.IsMedicine = 0
|
7632
|
7633
|
ctime := time.Now().Unix()
|
7633
|
7634
|
advice.CreatedTime = ctime
|
7634
|
7635
|
advice.UpdatedTime = ctime
|
|
@@ -7636,6 +7637,7 @@ func (c *HisApiController) setAdviceWithJSON(advice *models.HisDoctorAdviceInfo,
|
7636
|
7637
|
}
|
7637
|
7638
|
}
|
7638
|
7639
|
} else {
|
|
7640
|
+ advice.IsMedicine = 0
|
7639
|
7641
|
ctime := time.Now().Unix()
|
7640
|
7642
|
advice.CreatedTime = ctime
|
7641
|
7643
|
advice.UpdatedTime = ctime
|