Browse Source

修改sql

lfy 3 weeks ago
parent
commit
5d41eeb8f9

+ 1 - 1
delivery-module-core/delivery-module-core-biz/src/main/resources/mapper/dwxx/DwxxMapper.xml

@@ -238,7 +238,7 @@
238
         (
238
         (
239
         select
239
         select
240
                 bk.KQ_ID,
240
                 bk.KQ_ID,
241
-                count(bk.CA_ID) yxcfnum
241
+                count( distinct bk.CA_ID) yxcfnum
242
         from  DELIVERY_BANK  bk
242
         from  DELIVERY_BANK  bk
243
         where bk.DELETED=0
243
         where bk.DELETED=0
244
         group by bk.KQ_ID
244
         group by bk.KQ_ID