Explorar el Código

锅炉出具报告排序调整

xy hace 6 días
padre
commit
177a02559c

+ 3 - 0
tz-module-pressure2/tz-module-pressure2-biz/src/main/resources/mapper/boilertaskorderitemreport/BoilerTaskOrderItemReportMapper.xml

@@ -12,9 +12,12 @@
     <select id="selectGenerateReportList">
         select a.* from PRESSURE2_BOILER_TASK_ORDER_ITEM_REPORT a
                             left join PRESSURE2_BOILER_TASK_ORDER_ITEM b on a.ORDER_ITEM_ID = b.ID
+                            left join PRESSURE2_BOILER_TASK_ORDER_ITEM_PART c on a.ITEM_PART_ID = c.ID
         where a.ORDER_ITEM_ID = #{orderItemId}
           and a.TASK_STATUS in (520,600,700,710,800)
         order by
+            case when a.ITEM_PART_ID = 0 then 0 else 1 end,
+            c.PART_TYPE,
             case when a.REPORT_TYPE = 100 then 0 else 1 end,
             a.SORT
     </select>