Browse Source

耗材参数

XMLWAN 3 years ago
parent
commit
bd2c11c576

+ 4 - 9
controllers/mobile_api_controllers/dialysis_api_controller.go View File

@@ -4630,16 +4630,11 @@ func (c *DialysisAPIController) GetMobilePrintStockGood() {
4630 4630
 }
4631 4631
 
4632 4632
 func (c *DialysisAPIController) BatchDeleteMonitor() {
4633
-	dataBody := make(map[string]interface{}, 0)
4634
-	err := json.Unmarshal(c.Ctx.Input.RequestBody, &dataBody)
4633
+	fmt.Println("jin2222245555555555")
4635 4634
 	ids := c.GetString("ids")
4636
-	if len(ids) == 0 {
4637
-		c.ServeFailJSONWithSGJErrorCode(enums.ErrorCodeParamWrong)
4638
-		return
4639
-	}
4640
-
4635
+	fmt.Println("dis22222222", ids)
4641 4636
 	idArray := strings.Split(ids, ",")
4642
-	err = service.BatchDeleteMonitor(idArray)
4637
+	err := service.BatchDeleteMonitor(idArray)
4643 4638
 	fmt.Print("err", err)
4644 4639
 	c.ServeSuccessJSON(map[string]interface{}{
4645 4640
 		"msg": "批量删除成功",
@@ -4666,7 +4661,7 @@ func (c *DialysisAPIController) GetPatientDialysisRecord() {
4666 4661
 	})
4667 4662
 }
4668 4663
 
4669
-func (c *DialysisAPIController) BathDeleteAdvice() {
4664
+func (c *DialysisAPIController) BathDeleteAdviceList() {
4670 4665
 
4671 4666
 	dataBody := make(map[string]interface{}, 0)
4672 4667
 	err := json.Unmarshal(c.Ctx.Input.RequestBody, &dataBody)

+ 3 - 3
controllers/mobile_api_controllers/mobile_api_router_register.go View File

@@ -140,9 +140,9 @@ func MobileAPIControllersRegisterRouters() {
140 140
 	beego.Router("/m/api/getmobileprintstockgood", &DialysisAPIController{}, "Get:GetMobilePrintStockGood")
141 141
 
142 142
 	//批量删除监测
143
-	beego.Router("/m/api/batchDeleteMonitor", &DialysisAPIController{}, "Get:BatchDeleteMonitor")
143
+	//beego.Router("/m/api/batchDeleteMonitor", &DialysisAPIController{}, "Get:BatchDeleteMonitor")
144 144
 	//获取单个患者1年的透析日期
145
-	beego.Router("/m/api/getPatientDialysisRecord", &DialysisAPIController{}, "Get:GetPatientDialysisRecord")
145
+	//beego.Router("/m/api/getPatientDialysisRecord", &DialysisAPIController{}, "Get:GetPatientDialysisRecord")
146 146
 	//批量删除医嘱
147
-	beego.Router("/m/api/batchDeleteAdvice", &DialysisAPIController{}, "Post:BathDeleteAdvice:")
147
+	//beego.Router("/m/api/batchDeleteAdvice", &DialysisAPIController{}, "Get:BathDeleteAdviceList:")
148 148
 }