提交代码
parent
77ce71f127
commit
58bad800a9
|
@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<select id="selectDevTowerDataCollideList" parameterType="DevTowerDataCollide" resultMap="DevTowerDataCollideResult">
|
||||
<include refid="selectDevTowerDataCollideVo"/>
|
||||
<where>
|
||||
<if test="cfgId != null">and dtdl.cfg_id = #{cfgId}</if>
|
||||
<if test="cfgId != null">and dtdc.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdc.project_id = #{projectId}</if>
|
||||
<if test="deptId != null "> and dtdc.dept_id = #{deptId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
|
|
|
@ -68,8 +68,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="cfgId != null">and dtdl.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdl.project_id = #{projectId}</if>
|
||||
<if test="deptId != null "> and dtdl.dept_id = #{deptId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdc.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdl.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdl.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdl.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdl.tower_id = #{towerId}</if>
|
||||
|
|
|
@ -52,8 +52,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="cfgId != null">and dtdl.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdl.project_id = #{projectId}</if>
|
||||
<if test="deptId != null "> and dtdl.dept_id = #{deptId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdc.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdl.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdl.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdl.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdl.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdl.tower_id = #{towerId}</if>
|
||||
|
|
|
@ -61,8 +61,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="cfgId != null">and dtdr.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdr.project_id = #{projectId}</if>
|
||||
<if test="deptId != null "> and dtdr.dept_id = #{deptId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdc.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdr.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdr.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdr.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdr.tower_id = #{towerId}</if>
|
||||
|
|
|
@ -55,8 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="cfgId != null">and dtdr.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdr.project_id = #{projectId}</if>
|
||||
<if test="deptId != null "> and dtdr.dept_id = #{deptId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdc.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdr.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdr.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdr.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdr.device_source = #{deviceSource}</if>
|
||||
<if test="warnings != null and warnings != ''"> and dtdr.warnings is not null </if>
|
||||
|
|
|
@ -39,8 +39,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="cfgId != null">and dtdw.cfg_id = #{cfgId}</if>
|
||||
<if test="projectId != null "> and dtdw.project_id = #{projectId}</if>
|
||||
<if test="deptId != null "> and dtdw.dept_id = #{deptId}</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdc.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdc.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="projectName != null and projectName != ''"> and dtdw.project_id in (select spv.id from sur_project spv where spv.projectName like concat('%', #{projectName}, '%'))</if>
|
||||
<if test="deptName != null and deptName != ''"> and dtdw.dept_id in (select sdv.dept_id from sys_dept sdv where sdv.dept_name like concat('%', #{deptName}, '%'))</if>
|
||||
<if test="deviceKey != null and deviceKey != ''"> and dtdw.device_key = #{deviceKey}</if>
|
||||
<if test="deviceSource != null and deviceSource != ''"> and dtdw.device_source = #{deviceSource}</if>
|
||||
<if test="towerId != null and towerId != ''"> and dtdw.tower_id = #{towerId}</if>
|
||||
|
|
Loading…
Reference in New Issue