2 years ago
parent
commit
8ec6e8ecfb

+ 11 - 1
platform-dao/src/main/resources/mapper/repair/RepairApplicationFormMapper.xml

@@ -502,9 +502,19 @@
         </where>
         </where>
     </select>
     </select>
 
 
-    <select id="getFiftyFailSbReport" resultType="com.platform.dao.vo.report.FiftyFailSbReportVO">
+    <select id="getFiftyFailSbReport" resultType="com.platform.dao.vo.report.FiftyFailSbReportVO"
+    parameterType="com.platform.dao.dto.repair.RepairApplicationFormDTO"
+    >
         select sb.id as sbId, sb.name,sb.position_no as no,count(1) as totalNum from t_sb_info sb inner join t_repair_application_form form
         select sb.id as sbId, sb.name,sb.position_no as no,count(1) as totalNum from t_sb_info sb inner join t_repair_application_form form
         on sb.id=form.sb_id
         on sb.id=form.sb_id
+        <where>
+            <if test="searchStartTime != null">
+                and apply_time <![CDATA[ > ]]> #{searchStartTime}
+            </if>
+            <if test="searchEndTime != null">
+                and apply_time <![CDATA[ < ]]> #{searchEndTime}
+            </if>
+        </where>
         group by sb.id
         group by sb.id
         order by count(1) desc
         order by count(1) desc
         limit 50
         limit 50