| | |
| | | |
| | | <!-- 查询报修信息数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryStaffFinishRepairsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | select count(DISTINCT(t.repair_id)) count |
| | | from r_repair_pool t |
| | | left join t_dict d on t.state = d.status_cd and d.table_name = 'r_repair_pool' and d.table_columns = 'state' |
| | | left join r_repair_setting rs on rs.repair_type = t.repair_type and rs.status_cd = '0' |
| | | left join r_repair_user ru on t.repair_id = ru.repair_id and t.status_cd = 0 |
| | | left join t_dict td on rs.return_visit_flag = td.status_cd and td.table_name='r_repair_setting' and |
| | | td.table_columns='return_visit_flag' |
| | | where 1 =1 |
| | | and ru.state in ('10002','10003','10004','10005','10009','11000','12000') |
| | | <if test="staffId != null and staffId != ''"> |