java110
2021-06-16 755262ba9a1a3c0573a0e910bbd0a353e9e2a2c5
java110-db/src/main/resources/mapper/community/RepairServiceDaoImplMapper.xml
old mode 100644 new mode 100755
@@ -555,11 +555,13 @@
    <!-- 查询报修信息数量 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 != ''">
@@ -607,6 +609,8 @@
        <if test="repairObjId !=null and repairObjId != ''">
            and t.repair_obj_id= #{repairObjId}
        </if>
        group by ru.staff_id
        <if test="staffId != null and staffId != ''">
            group by ru.staff_id
        </if>
    </select>
</mapper>