| | |
| | | and soil =#{soil} |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectDis" resultType="java.util.HashMap"> |
| | | SELECT d.dept_name AS gsname, |
| | | di.dispatcherTime, |
| | | di.end_time, |
| | | de.dept_name as fwname, |
| | | di.num, |
| | | j.dept_name as jurname |
| | | FROM sys_dispatcher di |
| | | LEFT JOIN blade_dept d ON d.id = di.dept_id |
| | | LEFT JOIN blade_dept de ON de.id = di.dispatcher_unit_id |
| | | LEFT JOIN sys_jurisdiction j ON j.id = di.jurisdiction where 1=1 |
| | | <if test="name!=null and name!=''"> |
| | | and di.dept_name like concat('%', #{name},'%') |
| | | </if> |
| | | <if test="jurisdiction!=null and jurisdiction!=''and jurisdiction!='1123598813738675201'"> |
| | | and di.jurisdiction =#{jurisdiction} |
| | | </if> |
| | | <if test="fwname!=null and name!=''"> |
| | | and de.dept_name like concat('%', #{fwname},'%') |
| | | </if> |
| | | </select> |
| | | </mapper> |