| | |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="org.springblade.modules.equipage.mapper.EquipageMapper"> |
| | | |
| | | <!--车辆分页信息--> |
| | | <!--装备分页信息--> |
| | | <select id="selectEquipagePage" resultType="org.springblade.modules.equipage.vo.EquipageVo"> |
| | | SELECT |
| | | se.*,bt.dept_name AS tenantName |
| | |
| | | blade_dept bt |
| | | ON |
| | | se.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="equipage.jurisdiction!=null and equipage.jurisdiction!='' and equipage.jurisdiction!='1372091709474910209'"> |
| | | and (sj.id = #{equipage.jurisdiction} or sj.parent_id = #{equipage.jurisdiction}) |
| | | </if> |
| | | <if test="equipage.tenantName!=null and equipage.tenantName!=''"> |
| | | and bt.dept_name like concat('%', #{equipage.tenantName},'%') |
| | | </if> |
| | |
| | | <if test="equipage.name!=null and equipage.name!=''"> |
| | | and se.name like concat('%', #{equipage.name},'%') |
| | | </if> |
| | | <if test="equipage.brand!=null and equipage.brand!=''"> |
| | | and se.brand like concat('%', #{equipage.brand},'%') |
| | | </if> |
| | | <if test="equipage.personInCharge!=null and equipage.personInCharge!=''"> |
| | | and se.person_in_charge like concat('%', #{equipage.personInCharge},'%') |
| | | </if> |