|
@@ -4664,3 +4664,20 @@ func (c *DialysisAPIController) GetPatientDialysisRecord() {
|
4664
|
4664
|
"list": list,
|
4665
|
4665
|
})
|
4666
|
4666
|
}
|
|
4667
|
+
|
|
4668
|
+func (c *DialysisAPIController) BathDeleteAdvice() {
|
|
4669
|
+
|
|
4670
|
+ dataBody := make(map[string]interface{}, 0)
|
|
4671
|
+ err := json.Unmarshal(c.Ctx.Input.RequestBody, &dataBody)
|
|
4672
|
+ idsInt := dataBody["ids"].([]interface{})
|
|
4673
|
+ ids := make([]int64, 0)
|
|
4674
|
+ for _, item := range idsInt {
|
|
4675
|
+ id, _ := strconv.ParseInt(item.(string), 10, 64)
|
|
4676
|
+ ids = append(ids, id)
|
|
4677
|
+ }
|
|
4678
|
+ err = service.BatchDeleteAdvice(ids)
|
|
4679
|
+ fmt.Print("err", err)
|
|
4680
|
+ c.ServeSuccessJSON(map[string]interface{}{
|
|
4681
|
+ "msg": "批量删除成功",
|
|
4682
|
+ })
|
|
4683
|
+}
|