소스 검색

Merge branch 'master' of http://git.shengws.com/csx/XT_New into 20200710_xt_api_new_branch

csx 4 년 전
부모
커밋
34f10959e6

+ 6 - 6
conf/app.conf 파일 보기

@@ -1,5 +1,5 @@
1 1
 appname = 血透
2
-httpport = 9529
2
+httpport = 9531
3 3
 runmode = dev
4 4
 
5 5
 # 1
@@ -142,33 +142,33 @@ aliquid = 83
142 142
 [dev]
143 143
 mobile_token_expiration_second = 3600
144 144
 httpdomain = http://new_mobile.xt.api.sgjyun.com
145
-sso_domain = https://testsso.sgjyun.com
145
+sso_domain = http://localhost:8091
146 146
 front_end_domain = "http://xt.test.sgjyun.com/#"
147 147
 
148 148
 readmysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
149 149
 readmysqlport = 3306
150 150
 readmysqluser = root
151 151
 readmysqlpass = 1Q2W3e4r!@#$
152
-readmysqlname = sgj_xt
152
+readmysqlname = test_xt
153 153
 
154 154
 writemysqlhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
155 155
 writemysqlport = 3306
156 156
 writemysqluser = root
157 157
 writemysqlpass = 1Q2W3e4r!@#$
158
-writemysqlname = sgj_xt
158
+writemysqlname = test_xt
159 159
 
160 160
 readuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
161 161
 readuserport = 3306
162 162
 readuseruser = root
163 163
 readuserpass = 1Q2W3e4r!@#$
164
-readusername = sgj_users
164
+readusername = test_users
165 165
 
166 166
 
167 167
 writeuserhost = rm-wz9rg531npf61q03tro.mysql.rds.aliyuncs.com
168 168
 writeuserport = 3306
169 169
 writeuseruser = root
170 170
 writeuserpass = 1Q2W3e4r!@#$
171
-writeusername = sgj_users
171
+writeusername = test_users
172 172
 
173 173
 
174 174
 

+ 4 - 1
controllers/new_mobile_api_controllers/index_evaluation_api_controller.go 파일 보기

@@ -177,8 +177,11 @@ func (this *IndexEvaluationApiController) GetPatientInspectionChartData() {
177 177
 	}
178 178
 
179 179
 	data, _ := statistics_service.GetPatientInspectionChartData(adminUserInfo.Org.Id, theStartTIme, theEndtTIme, project_id, item_id, patient_id)
180
+	references, _ := statistics_service.FindOrgQualityControlStandardInspectionReferenceById(adminUserInfo.Org.Id, project_id, item_id)
181
+
180 182
 	this.ServeSuccessJSON(map[string]interface{}{
181
-		"data": data,
183
+		"data":       data,
184
+		"references": references,
182 185
 	})
183 186
 
184 187
 }

+ 6 - 0
service/statistics_service/index_evaluation_service.go 파일 보기

@@ -1764,3 +1764,9 @@ func GetOrgPatients(user_org_id int64) (patient *[]VMPatient, err error) {
1764 1764
 	}
1765 1765
 	return &tempPatient, nil
1766 1766
 }
1767
+
1768
+func FindOrgQualityControlStandardInspectionReferenceById(user_org_id int64, project_id int64, item_id int64) (references InspectionReference, err error) {
1769
+	db := service.XTReadDB()
1770
+	err = db.Raw("Select reference.project_name as project_name,qcs.inspection_major as project_id, qcs.inspection_minor as id,reference.item_name as item_name,qcs.range_type as range_type,reference.range_min as range_min, reference.range_max as range_max,reference.unit as  unit  from xt_quality_control_standard qcs Left JOIN xt_inspection_reference reference ON  qcs.inspection_major = reference.project_id and qcs.inspection_minor = reference.id and  (reference.org_id = ? OR org_id = 0)  Where qcs.user_org_id = ?  AND qcs.status = 1 AND qcs.inspection_major = ? AND qcs.inspection_minor = ?", user_org_id, user_org_id, project_id, item_id).Scan(&references).Error
1771
+	return
1772
+}