change - 模糊搜索修改

main
wenjy 3 years ago
parent a421152bc0
commit 92e4be80be

@ -10,10 +10,10 @@
<form id="formId">
<div class="select-list">
<ul>
<li>
<!--<li>
<label style="width: 95px">监控单元编号:</label>
<input type="text" name="monitorunitId"/>
</li>
</li>-->
<li>
<label style="width: 95px">监控单元名称:</label>
<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_sensor_info t3 on t1.Sensor_Id = t3.Sensor_Id
<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>
</where>
</select>

@ -60,7 +60,7 @@
<include refid="selectBaseAlarmModuleVo"/>
<where>
<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="alarmTypeId != null and alarmTypeId != ''">and t1.AlarmType_Id = #{alarmTypeId}</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">
<include refid="selectBaseAlarmTypeVo"/>
<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="parentId != null and parentId != ''"> and parent_Id = #{parentId}</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
<where>
<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>
</where>
</select>

@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectBaseStationInfoList" parameterType="BaseStationInfo" resultMap="BaseStationInfoResult">
<include refid="selectBaseStationInfoVo"/>
<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="stationStatus != null "> and Station_Status = #{stationStatus}</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">
<include refid="selectSysParamConfigVo"/>
<where>
<if test="paramType != null and paramType != ''"> and Param_Type = #{paramType}</if>
<if test="paramTitle != null and paramTitle != ''"> and Param_Title = #{paramTitle}</if>
<if test="paramText != null and paramText != ''"> and Param_Text = #{paramText}</if>
<if test="paramType != null and paramType != ''"> and Param_Type like concat('%', #{paramType}, '%')</if>
<if test="paramTitle != null and paramTitle != ''"> and Param_Title like concat('%', #{paramTitle}, '%')</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="visibleFlag != null "> and Visible_Flag = #{visibleFlag}</if>
</where>

Loading…
Cancel
Save