Selaa lähdekoodia

优化批量列表查询

qitz 2 vuotta sitten
vanhempi
commit
fb8366fa78

+ 5
- 1
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Näytä tiedosto

856
 
856
 
857
     <select id="selectAdminCaseApplicationListBatch" parameterType="CaseApplication" resultMap="CaseApplicationResult">
857
     <select id="selectAdminCaseApplicationListBatch" parameterType="CaseApplication" resultMap="CaseApplicationResult">
858
         SELECT DISTINCT c.batch_number ,c.arbitrat_method ,c.arbitrator_name ,
858
         SELECT DISTINCT c.batch_number ,c.arbitrat_method ,c.arbitrator_name ,
859
-        c.arbitrator_id  ,a.identity_type ,a.name ,
859
+        c.arbitrator_id  ,a.identity_type ,a.name ,a.application_organ_id as applicationOrganId,
860
+        a.application_organ_name  as applicantName,
860
         CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
861
         CASE c.arbitrat_method when 1 then '开庭审理' when 2 then '书面审理'
861
         ELSE '无审理方式'
862
         ELSE '无审理方式'
862
         END arbitratMethodName
863
         END arbitratMethodName
866
         <if test="batchNumber != null and batchNumber != ''">
867
         <if test="batchNumber != null and batchNumber != ''">
867
             AND c.batch_number = #{batchNumber}
868
             AND c.batch_number = #{batchNumber}
868
         </if>
869
         </if>
870
+        <if test="nameId != null and nameId != ''">
871
+            AND a.application_organ_id=#{nameId}
872
+        </if>
869
         order by  c.batch_number desc
873
         order by  c.batch_number desc
870
     </select>
874
     </select>
871
 
875