Jelajahi Sumber

修改身份证号匹配bug

hanmj 6 tahun lalu
induk
melakukan
f09eaa9486

+ 1 - 1
src/dashoo.cn/backend/api/controllers/biobank/sampletest_v.go

@@ -103,7 +103,7 @@ func (this *SampleTest_vController) TestDetails() {
 	svc := sampletest.GetSampleTestService(utils.DBE)
 	var entity samplesprotocol.SamplesProtocol
 	svc.GetEntityByWhere("srNA2"+SamplesProtocolName, where, &entity)
-	where_test := "a.SourceIdCard =" + entity.IDCard
+	where_test := "a.SourceIdCard = '" + entity.IDCard + "'"
 	var list []sampletest.Testdetailmodel
 	list = svc.GetSamplestestDetail(where_test)
 	var datainfo DataInfo