|
@@ -4698,7 +4698,8 @@ func (c *DialysisAPIController) UpdateAutoReduceDetail() {
|
4698
|
4698
|
good_id, _ := c.GetInt64("good_id")
|
4699
|
4699
|
count, _ := c.GetInt64("count")
|
4700
|
4700
|
record_time, _ := c.GetInt64("record_time")
|
4701
|
|
- detail, _ := service.UpdateAutoReduceDetail(good_id, count, record_time)
|
|
4701
|
+ patient_id, _ := c.GetInt64("patient_id")
|
|
4702
|
+ detail, _ := service.UpdateAutoReduceDetail(good_id, count, record_time, patient_id)
|
4702
|
4703
|
c.ServeSuccessJSON(map[string]interface{}{
|
4703
|
4704
|
"detail": detail,
|
4704
|
4705
|
})
|
|
@@ -4709,7 +4710,8 @@ func (c *DialysisAPIController) DeleteAutoReduceDetail() {
|
4709
|
4710
|
|
4710
|
4711
|
good_id, _ := c.GetInt64("good_id")
|
4711
|
4712
|
record_time, _ := c.GetInt64("record_time")
|
4712
|
|
- err := service.DeleteAutoReduceDetail(good_id, record_time)
|
|
4713
|
+ patient_id, _ := c.GetInt64("patient_id")
|
|
4714
|
+ err := service.DeleteAutoReduceDetail(good_id, record_time, patient_id)
|
4713
|
4715
|
fmt.Print("err", err)
|
4714
|
4716
|
c.ServeSuccessJSON(map[string]interface{}{
|
4715
|
4717
|
"msg": "批量删除成功",
|