| | |
| | | #{deptId} |
| | | </foreach> |
| | | </select> |
| | | <select id="selectArdSyCarAndTankLockByUserId" resultMap="ArdSyCarLockResult"> |
| | | <select id="selectArdSyCarAndTankLockByUserId" resultMap="ArdSyCarLockResult" parameterType="java.lang.String"> |
| | | select "asc".id,"asc".car_id,"asc".car_model,"asc".car_type, |
| | | "asc".car_brand,"asc".dept_id,"asc".car_picture,atl.id as lid, |
| | | atl.lock_num,atl.lock_name,atl.img_position_top,atl.img_position_left, |
| | |
| | | ) |
| | | select dept_id from rsd) order by "asc".car_id desc,atl.lock_num |
| | | </select> |
| | | <select id="selectByBrandAndType" resultMap="ArdSyCarResult" parameterType="java.lang.String"> |
| | | select * from ard_sy_car |
| | | <where> |
| | | <if test="carType != null and carType != ''"> and car_type = #{carType}</if> |
| | | <if test="carBrand != null and carBrand != ''"> and car_brand = #{carBrand}</if> |
| | | </where> |
| | | </select> |
| | | </mapper> |