瀏覽代碼

修改身份证号匹配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