Browse Source

耗材参数

XMLWAN 3 years ago
parent
commit
7c04326cd8

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

@@ -4654,9 +4654,8 @@ func (c *DialysisAPIController) GetPatientDialysisRecordList() {
4654 4654
 	endTime := nowTime.AddDate(-1, 0, 0)
4655 4655
 	endTimes := endTime.Format("2006-01-02")
4656 4656
 	endtime, _ := time.ParseInLocation(timeLayout+" 15:04:05", endTimes+" 00:00:00", loc)
4657
-	adminUserInfo := c.GetAdminUserInfo()
4658
-	orgId := adminUserInfo.CurrentOrgId
4659
-	list, _ := service.GetPatientDialysisRecordList(id, startime.Unix(), endtime.Unix(), orgId)
4657
+
4658
+	list, _ := service.GetPatientDialysisRecordList(id, endtime.Unix(), startime.Unix())
4660 4659
 	c.ServeSuccessJSON(map[string]interface{}{
4661 4660
 		"list": list,
4662 4661
 	})

+ 2 - 2
service/mobile_dialysis_service.go View File

@@ -1950,9 +1950,9 @@ func BatchDeleteMonitor(ids []string) (err error) {
1950 1950
 	return
1951 1951
 }
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) (order []*models.XtDialysisOrder, err error) {
1954 1954
 
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
1955
+	err = XTReadDB().Where("patient_id = ? and dialysis_date>=? and dialysis_date<=?  and status = 1", patientid, startime, endtime).Find(&order).Error
1956 1956
 	return order, err
1957 1957
 }
1958 1958