Ver código fonte

耗材参数

XMLWAN 4 anos atrás
pai
commit
a410fdb58c

+ 3 - 0
controllers/mobile_api_controllers/dialysis_api_controller.go Ver arquivo

4639
 	c.ServeSuccessJSON(map[string]interface{}{
4639
 	c.ServeSuccessJSON(map[string]interface{}{
4640
 		"msg": "批量删除成功",
4640
 		"msg": "批量删除成功",
4641
 	})
4641
 	})
4642
+	return
4642
 }
4643
 }
4643
 
4644
 
4644
 func (c *DialysisAPIController) GetPatientDialysisRecord() {
4645
 func (c *DialysisAPIController) GetPatientDialysisRecord() {
4659
 	c.ServeSuccessJSON(map[string]interface{}{
4660
 	c.ServeSuccessJSON(map[string]interface{}{
4660
 		"list": list,
4661
 		"list": list,
4661
 	})
4662
 	})
4663
+	return
4662
 }
4664
 }
4663
 
4665
 
4664
 func (c *DialysisAPIController) BathDeleteAdviceList() {
4666
 func (c *DialysisAPIController) BathDeleteAdviceList() {
4676
 	c.ServeSuccessJSON(map[string]interface{}{
4678
 	c.ServeSuccessJSON(map[string]interface{}{
4677
 		"msg": "批量删除成功",
4679
 		"msg": "批量删除成功",
4678
 	})
4680
 	})
4681
+	return
4679
 }
4682
 }

+ 2 - 2
controllers/mobile_api_controllers/mobile_api_router_register.go Ver arquivo

140
 	beego.Router("/m/api/getmobileprintstockgood", &DialysisAPIController{}, "Get:GetMobilePrintStockGood")
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
 	//获取单个患者1年的透析日期
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{}, "Get:BathDeleteAdviceList:")
147
 	//beego.Router("/m/api/batchDeleteAdvice", &DialysisAPIController{}, "Get:BathDeleteAdviceList:")
148
 }
148
 }

+ 1 - 1
service/mobile_dialysis_service.go Ver arquivo

1952
 
1952
 
1953
 func GetPatientDialysisRecordList(patientid int64, startime int64, endtime int64, orgid int64) (order []*models.XtDialysisOrder, err error) {
1953
 func GetPatientDialysisRecordList(patientid int64, startime int64, endtime int64, orgid int64) (order []*models.XtDialysisOrder, err error) {
1954
 
1954
 
1955
-	err = XTReadDB().Model(&order).Where("patient_id = ? and dialysis_date>=? and dialysis_date<=? and user_org_id = ? and status = 1", patientid, startime, endtime, orgid).Find(&order).Error
1955
+	err = XTReadDB().Where("patient_id = ? and dialysis_date>=? and dialysis_date<=? and user_org_id = ? and status = 1", patientid, startime, endtime, orgid).Find(&order).Error
1956
 	return order, err
1956
 	return order, err
1957
 }
1957
 }
1958
 
1958