| | |
| | | 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> |