Browse Source

修改字段名称

peiyt 6 năm trước cách đây
mục cha
commit
1126fbd949

+ 0 - 8
src/dashoo.cn/backend/api/business/samplesinfo/samplesinfoService.go

@@ -911,14 +911,6 @@ func (s *SamplesInfoService) GetSampleOwnCount(tablename, where string) int {
 	total := num.Id
 	return total
 }
-func (s *SamplesInfoService) GetSampleApplyMaxId(tablename string) int{
-	var num MyInt_Id
-	sql:="select max(Id) Id from "+tablename
-	s.DBE.Sql(sql).Get(&num)
-	maxId:=num.Id
-	return maxId
-}
-
 //获取数量
 func (s *SamplesInfoService) GetSampleOwnCountBySourceId(acccode, where string) int {
 	tblmain := acccode + SamplesMaintbName

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

@@ -580,7 +580,6 @@ func (this *SamplesApplyController) BatchFuSuEditPost() {
 	smkfjsamplesapply.CreateBy=this.User.Realname
 	//保存出库单
 	svc.InsertEntityBytbl(this.User.AccCode+"SamplesApply",&smkfjsamplesapply)
-	count:=svc.GetSampleApplyMaxId(this.User.AccCode+"SamplesApply")
 	for i := 0; i < len(idsarr); i++ {
 		if idsarr[i] != "" {
 			var dataold samplesinfo.SamplesDetail //原始样本
@@ -721,7 +720,7 @@ func (this *SamplesApplyController) BatchFuSuEditPost() {
 			samplesapplyDataInfo.CHUserBy=this.User.Realname
 			int,_:=strconv.Atoi(this.User.Id)
 			samplesapplyDataInfo.CHUserId=int
-			samplesapplyDataInfo.ParentId=count
+			samplesapplyDataInfo.ParentId=smkfjsamplesapply.Id
 
 			samplesapplyDataInfo.SampleType=samplesInfoShow.SampleType
 			samplesapplyDataInfo.SampleTypeName=samplesInfoShow.SampleTypeName

+ 2 - 2
src/dashoo.cn/frontend_web/src/pages/biobank/sampleCK/_opera/operation.vue

@@ -191,7 +191,7 @@
                                  align="center"
                                  show-overflow-tooltip>
                 </el-table-column>
-                <el-table-column label="用容量"
+                <el-table-column label="用容量"
                                  min-width="80"
                                  show-overflow-tooltip
                                  align="center"
@@ -317,7 +317,7 @@
                                  align="center"
                                  show-overflow-tooltip>
                 </el-table-column>
-                <el-table-column label="用容量"
+                <el-table-column label="用容量"
                                  min-width="80"
                                  show-overflow-tooltip
                                  align="center"