wuxw
2022-07-19 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54
java110-db/src/main/resources/mapper/community/ParkingSpaceApplyV1ServiceDaoImplMapper.xml
@@ -23,8 +23,14 @@
        carType,t.create_time,t.create_time createTime,t.config_id,t.config_id
        configId,t.apply_person_link,t.apply_person_link applyPersonLink,t.start_time,t.start_time
        startTime,t.apply_person_id,t.apply_person_id applyPersonId,t.end_time,t.end_time
        endTime,t.state,t.community_id,t.community_id communityId
        endTime,t.state,t.community_id,t.community_id communityId,
        t1.num ,t1.pa_id paId,t3.name parkingTypeName,t4.name stateName,
        t2.car_id carId
        from parking_space_apply t
        left join parking_space t1 on t.ps_id = t1.ps_id  and t1.status_cd =0
        left join owner_car t2 on t.apply_person_id = t2.owner_id and t.community_id =t2.community_id  and t.car_num = t2.car_num and t2.status_cd =0
        left join t_dict t3 on t1.parking_type  = t3.status_cd and t3.table_name ='parking_space' and t3.table_columns ='parking_type'
        left join t_dict t4 on t1.state  = t4.status_cd and t4.table_name ='parking_space' and t4.table_columns ='state'
        where 1 =1
        <if test="carBrand !=null and carBrand != ''">
            and t.car_brand= #{carBrand}