| | |
| | | blade_dept bt |
| | | ON |
| | | sc.dept_id = bt.id |
| | | left join |
| | | sys_information si |
| | | on |
| | | si.departmentid = bt.id |
| | | left join |
| | | sys_jurisdiction sj |
| | | on |
| | | sj.id = si.jurisdiction |
| | | WHERE |
| | | 1=1 |
| | | <if test="car.jurisdiction!=null and car.jurisdiction!='' and car.jurisdiction!='1372091709474910209'"> |
| | | and (sj.id = #{car.jurisdiction} or sj.parent_id = #{car.jurisdiction}) |
| | | </if> |
| | | <if test="car.tenantName!=null and car.tenantName!=''"> |
| | | and bt.dept_name like concat('%', #{car.tenantName},'%') |
| | | </if> |
| | |
| | | and sc.id = #{car.id} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectCar" resultType="java.util.HashMap"> |
| | | SELECT equipment_code as code,car_number as carnumber FROM `sys_car` WHERE equipment_code IS NOT NULL |
| | | </select> |
| | | </mapper> |