소스 검색

修改身份证号匹配bug

hanmj 6 년 전
부모
커밋
f09eaa9486
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/dashoo.cn/backend/api/controllers/biobank/sampletest_v.go

+ 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