Browse Source

备选交收库查询重复问题修改

guobing 2 weeks ago
parent
commit
56b1525675

+ 8 - 8
delivery-module-core/delivery-module-core-biz/src/main/resources/mapper/caxx/CaxxMapper.xml

@@ -31,7 +31,7 @@
31
         left join
31
         left join
32
         (
32
         (
33
                 select
33
                 select
34
-                        cx.DEPT_ID,
34
+                        cx.KQID,
35
                         cx.id cwId,
35
                         cx.id cwId,
36
                         cx.SYNDZZC,
36
                         cx.SYNDZZC,
37
                         cy.JLR
37
                         cy.JLR
@@ -46,7 +46,7 @@
46
                    GROUP BY  CWXX_ID) m
46
                    GROUP BY  CWXX_ID) m
47
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
47
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
48
                    )  cy  on cx.id=cy.CWXX_ID
48
                    )  cy  on cx.id=cy.CWXX_ID
49
-        ) t2 on t2.DEPT_ID=cd.id
49
+        ) t2 on t2.KQID=ck.id
50
         <where>
50
         <where>
51
             cd.qyxz!='10'
51
             cd.qyxz!='10'
52
             and cd.DELETED=0
52
             and cd.DELETED=0
@@ -106,7 +106,7 @@
106
         left join
106
         left join
107
         (
107
         (
108
                 select
108
                 select
109
-                        cx.DEPT_ID,
109
+                        cx.KQID,
110
                         cx.id cwId,
110
                         cx.id cwId,
111
                         cx.SYNDZZC,
111
                         cx.SYNDZZC,
112
                         cy.JLR
112
                         cy.JLR
@@ -121,7 +121,7 @@
121
                    GROUP BY  CWXX_ID) m
121
                    GROUP BY  CWXX_ID) m
122
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
122
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
123
                    )  cy  on cx.id=cy.CWXX_ID
123
                    )  cy  on cx.id=cy.CWXX_ID
124
-        ) t2 on t2.DEPT_ID=cd.id
124
+        ) t2 on t2.KQID=ck.id
125
         left join DELIVERY_DK dk on dk.KQ_ID = ck.id
125
         left join DELIVERY_DK dk on dk.KQ_ID = ck.id
126
         <where>
126
         <where>
127
             cd.qyxz!='10' and cd.DELETED=0
127
             cd.qyxz!='10' and cd.DELETED=0
@@ -304,7 +304,7 @@
304
         left join
304
         left join
305
         (
305
         (
306
                 select
306
                 select
307
-                        cx.DEPT_ID,
307
+                        cx.KQID,
308
                         cx.id cwId,
308
                         cx.id cwId,
309
                         cx.SYNDZZC,
309
                         cx.SYNDZZC,
310
                         cy.JLR
310
                         cy.JLR
@@ -319,7 +319,7 @@
319
                    GROUP BY  CWXX_ID) m
319
                    GROUP BY  CWXX_ID) m
320
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
320
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
321
                    )  cy  on cx.id=cy.CWXX_ID
321
                    )  cy  on cx.id=cy.CWXX_ID
322
-        ) t2 on t2.DEPT_ID=cd.id
322
+        ) t2 on t2.KQID=ck.id
323
         <where>
323
         <where>
324
             cd.qyxz!='10'and cd.DELETED=0
324
             cd.qyxz!='10'and cd.DELETED=0
325
             <if test="pageReqVO.dwmc!=null and pageReqVO.dwmc!=''">
325
             <if test="pageReqVO.dwmc!=null and pageReqVO.dwmc!=''">
@@ -584,7 +584,7 @@
584
         left join
584
         left join
585
         (
585
         (
586
                 select
586
                 select
587
-                        cx.DEPT_ID,
587
+                        cx.KQID,
588
                         cx.id cwId,
588
                         cx.id cwId,
589
                         cx.SYNDZZC,
589
                         cx.SYNDZZC,
590
                         cy.JLR
590
                         cy.JLR
@@ -599,7 +599,7 @@
599
                    GROUP BY  CWXX_ID) m
599
                    GROUP BY  CWXX_ID) m
600
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
600
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
601
                    )  cy  on cx.id=cy.CWXX_ID
601
                    )  cy  on cx.id=cy.CWXX_ID
602
-        ) t3 on t3.DEPT_ID=cd.id
602
+        ) t3 on t3.KQID=ck.id
603
         <where>
603
         <where>
604
             cd.qyxz!='10' and cd.DELETED=0
604
             cd.qyxz!='10' and cd.DELETED=0
605
             <if test="pageReqVO.dwmc!=null and pageReqVO.dwmc!=''">
605
             <if test="pageReqVO.dwmc!=null and pageReqVO.dwmc!=''">

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

@@ -238,7 +238,7 @@
238
         left join
238
         left join
239
         (
239
         (
240
                 select
240
                 select
241
-                        cx.DEPT_ID,
241
+                        cx.KQID,
242
                         cx.id cwId,
242
                         cx.id cwId,
243
                         cx.SYNDZZC,
243
                         cx.SYNDZZC,
244
                         cy.JLR
244
                         cy.JLR
@@ -253,7 +253,7 @@
253
                    GROUP BY  CWXX_ID) m
253
                    GROUP BY  CWXX_ID) m
254
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
254
                    ON d.CWXX_ID = m.CWXX_ID AND d.CN = m.maxCN
255
                    )  cy  on cx.id=cy.CWXX_ID
255
                    )  cy  on cx.id=cy.CWXX_ID
256
-        ) t2 on t2.DEPT_ID=cd.id
256
+        ) t2 on t2.KQID=ck.id
257
         left join
257
         left join
258
         (
258
         (
259
         select
259
         select