Browse Source

耗材参数

XMLWAN 3 years ago
parent
commit
a410fdb58c

+ 3 - 0
controllers/mobile_api_controllers/dialysis_api_controller.go View File

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

+ 2 - 2
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 147
 	//beego.Router("/m/api/batchDeleteAdvice", &DialysisAPIController{}, "Get:BathDeleteAdviceList:")
148 148
 }

+ 1 - 1
service/mobile_dialysis_service.go View File

@@ -1952,7 +1952,7 @@ func BatchDeleteMonitor(ids []string) (err error) {
1952 1952
 
1953 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 1956
 	return order, err
1957 1957
 }
1958 1958