change - 监控单元信息搜索条件异常问题

main
wenjy 3 years ago
parent eea36f18fc
commit a421152bc0

@ -57,14 +57,14 @@
</select> </select>
</div> </div>
</div>--> </div>-->
<div class="form-group"> <!--<div class="form-group">
<label class="col-sm-3 control-label">是否启用:</label> <label class="col-sm-3 control-label">是否启用:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="enableFlag" class="form-control m-b" th:with="type=${@dict.getType('enable_flag')}"> <select name="enableFlag" class="form-control m-b" th:with="type=${@dict.getType('enable_flag')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}"></option>
</select> </select>
</div> </div>
</div> </div>-->
<h4 class="form-header h4">上传模型</h4> <h4 class="form-header h4">上传模型</h4>
<div class="form-group"> <div class="form-group">

@ -8,6 +8,7 @@
<div class="wrapper wrapper-content animated fadeInRight ibox-content"> <div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-monitorUnitInfo-edit" th:object="${baseMonitorunitInfo}"> <form class="form-horizontal m" id="form-monitorUnitInfo-edit" th:object="${baseMonitorunitInfo}">
<input name="ObjId" th:field="*{objId}" type="hidden"> <input name="ObjId" th:field="*{objId}" type="hidden">
<input name="enableFlag" th:field="*{enableFlag}" type="hidden">
<input id="monitorunitImage" name="monitorunitImage" th:field="*{monitorunitImage}" type="hidden"> <input id="monitorunitImage" name="monitorunitImage" th:field="*{monitorunitImage}" type="hidden">
<input id="monitorunitId" name="monitorunitId" th:field="*{monitorunitId}" type="hidden"> <input id="monitorunitId" name="monitorunitId" th:field="*{monitorunitId}" type="hidden">
<!--<div class="form-group"> <!--<div class="form-group">
@ -59,14 +60,14 @@
</select> </select>
</div> </div>
</div>--> </div>-->
<div class="form-group"> <!--<div class="form-group">
<label class="col-sm-3 control-label">是否启用:</label> <label class="col-sm-3 control-label">是否启用:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select name="enableFlag" class="form-control m-b" th:with="type=${@dict.getType('enable_flag')}"> <select name="enableFlag" class="form-control m-b" th:with="type=${@dict.getType('enable_flag')}">
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{enableFlag}"></option> <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{enableFlag}"></option>
</select> </select>
</div> </div>
</div> </div>-->
<h4 class="form-header h4">上传模型</h4> <h4 class="form-header h4">上传模型</h4>
<div class="form-group"> <div class="form-group">
<div class="file-loading"> <div class="file-loading">

@ -44,14 +44,14 @@
th:value="${dict.dictValue}"></option> th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>
<li> <!--<li>
<label>是否启用:</label> <label>是否启用:</label>
<select name="enableFlag" th:with="type=${@dict.getType('enable_flag')}"> <select name="enableFlag" th:with="type=${@dict.getType('enable_flag')}">
<option value="">所有</option> <option value="">所有</option>
<option th:each="dict : ${type}" th:text="${dict.dictLabel}" <option th:each="dict : ${type}" th:text="${dict.dictLabel}"
th:value="${dict.dictValue}"></option> th:value="${dict.dictValue}"></option>
</select> </select>
</li> </li>-->
<li> <li>
<a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i <a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i
class="fa fa-search"></i>&nbsp;搜索</a> class="fa fa-search"></i>&nbsp;搜索</a>
@ -119,12 +119,13 @@
field: 'monitorunitName', field: 'monitorunitName',
title: '监控单元', title: '监控单元',
align: 'left', align: 'left',
width:'160' width:'160',
}, },
{ {
field: 'parentName', field: 'parentName',
title: '父级监控单元', title: '父级监控单元',
align: 'left' align: 'left',
width: '140',
}, },
{ {
field: 'monitorunitTypeName', field: 'monitorunitTypeName',
@ -163,12 +164,14 @@
align: 'left', align: 'left',
formatter: function (value, row, index) { formatter: function (value, row, index) {
return $.table.selectDictLabel(enableFlagDatas, value); return $.table.selectDictLabel(enableFlagDatas, value);
} },
visible: false
}, },
{ {
field: 'monitorunitId', field: 'monitorunitId',
title: '监控单元编号', title: '监控单元编号',
align: 'left', align: 'left',
width: '280',
visible: true visible: true
}, },
{ {

@ -69,10 +69,10 @@
<if test="monitorunitId != null and monitorunitId != ''"> and t1.MonitorUnit_Id like concat('%', #{monitorunitId}, '%')</if> <if test="monitorunitId != null and monitorunitId != ''"> and t1.MonitorUnit_Id like concat('%', #{monitorunitId}, '%')</if>
<if test="monitorunitName != null and monitorunitName != ''"> and t1.MonitorUnit_Name like concat('%', #{monitorunitName}, '%')</if> <if test="monitorunitName != null and monitorunitName != ''"> and t1.MonitorUnit_Name like concat('%', #{monitorunitName}, '%')</if>
<if test="parentId != null and parentId != ''"> and t1.Parent_Id = #{parentId}</if> <if test="parentId != null and parentId != ''"> and t1.Parent_Id = #{parentId}</if>
<if test="monitorunitType != null "> and t1.MonitorUnit_Type = #{monitorunitType}</if> <if test="monitorunitType != null and monitorunitType != ''"> and t1.MonitorUnit_Type = #{monitorunitType}</if>
<if test="substationId != null and substationId != ''"> and t1.Substation_Id = #{substationId}</if> <if test="substationId != null and substationId != ''"> and t1.Substation_Id = #{substationId}</if>
<if test="enableFlag != null "> and t1.Enable_Flag = #{enableFlag}</if> <if test="enableFlag != null and enableFlag != ''"> and t1.Enable_Flag = #{enableFlag}</if>
<if test="monitorunitStatus != null "> and Monitorunit_Status = #{monitorunitStatus}</if> <if test="monitorunitStatus != null and monitorunitStatus != '' "> and t1.Monitorunit_Status = #{monitorunitStatus}</if>
</where> </where>
order by t1.objId order by t1.objId
</select> </select>

Loading…
Cancel
Save