change - 模糊搜索修改

main
wenjy 3 years ago
parent a421152bc0
commit 92e4be80be

@ -10,10 +10,10 @@
<form id="formId"> <form id="formId">
<div class="select-list"> <div class="select-list">
<ul> <ul>
<li> <!--<li>
<label style="width: 95px">监控单元编号:</label> <label style="width: 95px">监控单元编号:</label>
<input type="text" name="monitorunitId"/> <input type="text" name="monitorunitId"/>
</li> </li>-->
<li> <li>
<label style="width: 95px">监控单元名称:</label> <label style="width: 95px">监控单元名称:</label>
<input type="text" name="monitorunitName"/> <input type="text" name="monitorunitName"/>

@ -54,7 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join base_alarm_type t2 on t1.AlarmType_Id = t2.alarmType_Id left join base_alarm_type t2 on t1.AlarmType_Id = t2.alarmType_Id
left join base_sensor_info t3 on t1.Sensor_Id = t3.Sensor_Id left join base_sensor_info t3 on t1.Sensor_Id = t3.Sensor_Id
<where> <where>
<if test="sensorId != null and sensorId != ''"> and t1.Sensor_Id = #{sensorId}</if> <if test="sensorId != null and sensorId != ''"> and t3.Sensor_Name like concat('%', #{sensorId}, '%')</if>
<if test="alarmtypeId != null and alarmtypeId != ''"> and t1.AlarmType_Id = #{alarmtypeId}</if> <if test="alarmtypeId != null and alarmtypeId != ''"> and t1.AlarmType_Id = #{alarmtypeId}</if>
</where> </where>
</select> </select>

@ -60,7 +60,7 @@
<include refid="selectBaseAlarmModuleVo"/> <include refid="selectBaseAlarmModuleVo"/>
<where> <where>
<if test="alarmmoduleId != null and alarmmoduleId != ''">and t1.AlarmModule_Id = #{alarmmoduleId}</if> <if test="alarmmoduleId != null and alarmmoduleId != ''">and t1.AlarmModule_Id = #{alarmmoduleId}</if>
<if test="alarmmoduleText != null and alarmmoduleText != ''">and t1.AlarmModule_Text = #{alarmmoduleText}</if> <if test="alarmmoduleText != null and alarmmoduleText != ''">and t1.AlarmModule_Text like concat('%', #{alarmmoduleText}, '%')</if>
<if test="monitorunitId != null and monitorunitId != ''">and t1.MonitorUnit_Id = #{monitorunitId}</if> <if test="monitorunitId != null and monitorunitId != ''">and t1.MonitorUnit_Id = #{monitorunitId}</if>
<if test="alarmTypeId != null and alarmTypeId != ''">and t1.AlarmType_Id = #{alarmTypeId}</if> <if test="alarmTypeId != null and alarmTypeId != ''">and t1.AlarmType_Id = #{alarmTypeId}</if>
<if test="enableFlag != null ">and t1.Enable_Flag = #{enableFlag}</if> <if test="enableFlag != null ">and t1.Enable_Flag = #{enableFlag}</if>

@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectBaseAlarmTypeList" parameterType="BaseAlarmType" resultMap="BaseAlarmTypeResult"> <select id="selectBaseAlarmTypeList" parameterType="BaseAlarmType" resultMap="BaseAlarmTypeResult">
<include refid="selectBaseAlarmTypeVo"/> <include refid="selectBaseAlarmTypeVo"/>
<where> <where>
<if test="alarmtypeId != null and alarmtypeId != ''"> and alarmType_Id = #{alarmtypeId}</if> <if test="alarmtypeId != null and alarmtypeId != ''"> and alarmType_Id like concat('%', #{alarmtypeId}, '%')</if>
<if test="alarmtypeName != null and alarmtypeName != ''"> and alarmType_Name like concat('%', #{alarmtypeName}, '%')</if> <if test="alarmtypeName != null and alarmtypeName != ''"> and alarmType_Name like concat('%', #{alarmtypeName}, '%')</if>
<if test="parentId != null and parentId != ''"> and parent_Id = #{parentId}</if> <if test="parentId != null and parentId != ''"> and parent_Id = #{parentId}</if>
<if test="enableFlag != null "> and Enable_Flag = #{enableFlag}</if> <if test="enableFlag != null "> and Enable_Flag = #{enableFlag}</if>

@ -47,7 +47,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join base_monitorunit_info t2 on t1.Device_Id = t2.MonitorUnit_Id left join base_monitorunit_info t2 on t1.Device_Id = t2.MonitorUnit_Id
<where> <where>
<if test="deviceId != null and deviceId != ''"> and t1.Device_Id = #{deviceId}</if> <if test="deviceId != null and deviceId != ''"> and t1.Device_Id = #{deviceId}</if>
<if test="paramTitle != null and paramTitle != ''"> and t1.Param_Title = #{paramTitle}</if> <if test="paramTitle != null and paramTitle != ''"> and t1.Param_Title like concat('%', #{paramTitle}, '%')</if>
<if test="enableFlag != null "> and t1.Enable_Flag = #{enableFlag}</if> <if test="enableFlag != null "> and t1.Enable_Flag = #{enableFlag}</if>
</where> </where>
</select> </select>

@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectBaseStationInfoList" parameterType="BaseStationInfo" resultMap="BaseStationInfoResult"> <select id="selectBaseStationInfoList" parameterType="BaseStationInfo" resultMap="BaseStationInfoResult">
<include refid="selectBaseStationInfoVo"/> <include refid="selectBaseStationInfoVo"/>
<where> <where>
<if test="stationId != null and stationId != ''"> and Station_Id = #{stationId}</if> <if test="stationId != null and stationId != ''"> and Station_Id like concat('%', #{stationId}, '%')</if>
<if test="stationName != null and stationName != ''"> and Station_Name like concat('%', #{stationName}, '%')</if> <if test="stationName != null and stationName != ''"> and Station_Name like concat('%', #{stationName}, '%')</if>
<if test="stationStatus != null "> and Station_Status = #{stationStatus}</if> <if test="stationStatus != null "> and Station_Status = #{stationStatus}</if>
<if test="stationLocation != null and stationLocation != ''"> and Station_Location like concat('%', #{stationLocation}, '%')</if> <if test="stationLocation != null and stationLocation != ''"> and Station_Location like concat('%', #{stationLocation}, '%')</if>

@ -26,9 +26,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSysParamConfigList" parameterType="SysParamConfig" resultMap="SysParamConfigResult"> <select id="selectSysParamConfigList" parameterType="SysParamConfig" resultMap="SysParamConfigResult">
<include refid="selectSysParamConfigVo"/> <include refid="selectSysParamConfigVo"/>
<where> <where>
<if test="paramType != null and paramType != ''"> and Param_Type = #{paramType}</if> <if test="paramType != null and paramType != ''"> and Param_Type like concat('%', #{paramType}, '%')</if>
<if test="paramTitle != null and paramTitle != ''"> and Param_Title = #{paramTitle}</if> <if test="paramTitle != null and paramTitle != ''"> and Param_Title like concat('%', #{paramTitle}, '%')</if>
<if test="paramText != null and paramText != ''"> and Param_Text = #{paramText}</if> <if test="paramText != null and paramText != ''"> and Param_Text like concat('%', #{paramText}, '%')</if>
<if test="enableFlag != null "> and Enable_Flag = #{enableFlag}</if> <if test="enableFlag != null "> and Enable_Flag = #{enableFlag}</if>
<if test="visibleFlag != null "> and Visible_Flag = #{visibleFlag}</if> <if test="visibleFlag != null "> and Visible_Flag = #{visibleFlag}</if>
</where> </where>

Loading…
Cancel
Save