|
@@ -502,9 +502,19 @@
|
|
|
</where>
|
|
|
</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
|
|
|
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
|
|
|
order by count(1) desc
|
|
|
limit 50
|