浏览代码

修改sql

yumeng 2 年之前
父节点
当前提交
7733b1e9b8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

+ 1 - 1
ruixuan-live/src/main/resources/mapper/isc/SupplyChainMapper.xml

@@ -1263,7 +1263,7 @@
         t1.collectSampleName,
         t2.promoterCount,
         t3.sampleCount,
-        round(t3.sampleCount / t3.promoterCount * 100, 2) as 'sampleRate',
+        round(t3.sampleCount / t2.promoterCount * 100, 2) as 'sampleRate',
         t2.promoterCount - t3.sampleCount as 'notSampleCount',
         t1.orderNum,
         t1.validOrderNum,