| | |
| | | from car_inout t,t_dict td1 |
| | | where 1 =1 |
| | | and t.state = td1.status_cd |
| | | and a.table_name = 'car_inout' |
| | | and a.table_columns = 'state' |
| | | and td1.table_name = 'car_inout' |
| | | and td1.table_columns = 'state' |
| | | <if test="inTime !=null "> |
| | | and t.in_time= #{inTime} |
| | | </if> |
| | |
| | | <!-- 查询进出场数量 add by wuxw 2018-07-03 --> |
| | | <select id="queryCarInoutsCount" parameterType="Map" resultType="Map"> |
| | | select count(1) count |
| | | from car_inout t |
| | | from car_inout t,t_dict td1 |
| | | where 1 =1 |
| | | and t.state = td1.status_cd |
| | | and a.table_name = 'car_inout' |
| | | and a.table_columns = 'state' |
| | | and td1.table_name = 'car_inout' |
| | | and td1.table_columns = 'state' |
| | | <if test="inTime !=null "> |
| | | and t.in_time= #{inTime} |
| | | </if> |