Commit 8c7c223d by java-lixy

修改列表页 查询条件

parent 250701a5
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
r.create_date AS "createDate", r.create_date AS "createDate",
r.update_by AS "updateBy", r.update_by AS "updateBy",
r.update_date AS "updateDate", r.update_date AS "updateDate",
r.OA_NAME AS "oaname" r.oa_name AS "oaname"
</sql> </sql>
...@@ -64,10 +64,15 @@ ...@@ -64,10 +64,15 @@
<if test="dbName == 'mysql'">CONCAT('%', #{supplementTitle}, '%')</if> <if test="dbName == 'mysql'">CONCAT('%', #{supplementTitle}, '%')</if>
</if> </if>
<if test="reportProject != null and reportProject != ''"> <if test="reportProject != null and reportProject != ''">
AND r.report_project LIKE AND (r.report_project LIKE
<if test="dbName == 'oracle'">'%'||#{reportProject}||'%'</if> <if test="dbName == 'oracle'">'%'||#{reportProject}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{reportProject}+'%'</if> <if test="dbName == 'mssql'">'%'+#{reportProject}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{reportProject}, '%')</if> <if test="dbName == 'mysql'">CONCAT('%', #{reportProject}, '%')</if>
OR r.supplement_department LIKE
<if test="dbName == 'oracle'">'%'||#{reportProject}||'%'</if>
<if test="dbName == 'mssql'">'%'+#{reportProject}+'%'</if>
<if test="dbName == 'mysql'">CONCAT('%', #{reportProject}, '%')</if>
)
</if> </if>
<if test="reportTimeFrom != null and reportTimeFrom != ''"> <if test="reportTimeFrom != null and reportTimeFrom != ''">
AND r.report_time &gt;= #{reportTimeFrom} AND r.report_time &gt;= #{reportTimeFrom}
...@@ -153,6 +158,7 @@ ...@@ -153,6 +158,7 @@
report_person_email, report_person_email,
report_source, report_source,
report_status, report_status,
supplement_informant,
exchange_before_user, exchange_before_user,
exchange_after_user, exchange_after_user,
exchange_type, exchange_type,
...@@ -160,7 +166,7 @@ ...@@ -160,7 +166,7 @@
create_date, create_date,
update_by, update_by,
update_date, update_date,
OA_NAME oa_name
) VALUES ( ) VALUES (
#{id}, #{id},
#{reportProject}, #{reportProject},
...@@ -172,6 +178,7 @@ ...@@ -172,6 +178,7 @@
#{reportPersonEmail}, #{reportPersonEmail},
#{reportSource}, #{reportSource},
#{reportStatus}, #{reportStatus},
#{supplementInformant},
#{exchangeBeforeUser}, #{exchangeBeforeUser},
#{exchangeAfterUser}, #{exchangeAfterUser},
#{exchangeType}, #{exchangeType},
...@@ -216,8 +223,7 @@ ...@@ -216,8 +223,7 @@
exchange_type = #{exchangeType}, exchange_type = #{exchangeType},
deal_result = #{dealResult}, deal_result = #{dealResult},
update_by = #{updateBy.id}, update_by = #{updateBy.id},
update_date = #{updateDate}, update_date = #{updateDate}
OA_NAME = #{oaname}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
...@@ -507,8 +513,7 @@ ...@@ -507,8 +513,7 @@
r.create_by AS "createBy", r.create_by AS "createBy",
r.create_date AS "createDate", r.create_date AS "createDate",
r.update_by AS "updateBy", r.update_by AS "updateBy",
r.update_date AS "updateDate", r.update_date AS "updateDate"
r.OA_NAME AS "oaname"
FROM ct_bbtc_report r FROM ct_bbtc_report r
WHERE r.report_status = #{processStatus} WHERE r.report_status = #{processStatus}
<if test="isAdmin != null"> <if test="isAdmin != null">
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<th>ID</th> <th>ID</th>
<th>标题</th> <th>标题</th>
<th>业务类型</th> <th>业务类型</th>
<th>被举报项目</th> <th>被举报项目/被举报部门</th>
<th>举报人</th> <th>举报人</th>
<th>举报人电话</th> <th>举报人电话</th>
<th>区域</th> <th>区域</th>
...@@ -124,7 +124,7 @@ ...@@ -124,7 +124,7 @@
<c:if test="${page.list.size()>0}"> <c:if test="${page.list.size()>0}">
<c:forEach items="${page.list}" var="report" varStatus="vs"> <c:forEach items="${page.list}" var="report" varStatus="vs">
<tr> <tr>
<td><input type="checkbox" value="v ${report.id}"></td> <td><input type="checkbox" value="${report.id}"></td>
<td>${vs.count}</td> <td>${vs.count}</td>
<td>${report.supplementTitle}</td> <td>${report.supplementTitle}</td>
<td> <td>
...@@ -150,7 +150,7 @@ ...@@ -150,7 +150,7 @@
<%--<c:if test="${report.supplementType eq '6'}">物业</c:if>--%> <%--<c:if test="${report.supplementType eq '6'}">物业</c:if>--%>
<%--<c:if test="${report.supplementType eq '7'}">投诉</c:if>--%> <%--<c:if test="${report.supplementType eq '7'}">投诉</c:if>--%>
</td> </td>
<td>${report.reportProject}</td> <td>${report.reportProject}/${report.supplementDepartment}</td>
<td>${report.reportPersonName}</td> <td>${report.reportPersonName}</td>
<td>${report.reportPersonTel}</td> <td>${report.reportPersonTel}</td>
<td> <td>
...@@ -177,9 +177,9 @@ ...@@ -177,9 +177,9 @@
</td> </td>
<td> <td>
<c:if test="${report.dealResult eq null}">--</c:if> <c:if test="${report.dealResult eq null}">--</c:if>
<c:if test="${report.dealResult eq '1'}"></c:if> <c:if test="${report.dealResult eq '1'}">移交客</c:if>
<c:if test="${report.dealResult eq '2'}">举报无效</c:if> <c:if test="${report.dealResult eq '2'}">举报无效</c:if>
<c:if test="${report.dealResult eq '3'}">举报属实</c:if> <c:if test="${report.dealResult eq '3'}">举报受理</c:if>
</td> </td>
<td><c:if test="${report.dealResult eq null}">--</c:if> <td><c:if test="${report.dealResult eq null}">--</c:if>
<c:if test="${report.dealResult ne null}">${report.dealPersonName}</c:if> <c:if test="${report.dealResult ne null}">${report.dealPersonName}</c:if>
......
...@@ -77,14 +77,15 @@ ...@@ -77,14 +77,15 @@
<input id="flag" name="flag" type="hidden" value="${flag}"/> <input id="flag" name="flag" type="hidden" value="${flag}"/>
<ul class="ul-form"> <ul class="ul-form">
<li><label>标题:</label><form:input onchange="resetPageNo();" path="supplementTitle" htmlEscape="false" maxlength="50" class="input-small"/></li> <li><label>标题:</label><form:input onchange="resetPageNo();" path="supplementTitle" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>被举报项目:</label><form:input onchange="resetPageNo();" path="reportProject" htmlEscape="false" maxlength="50" class="input-small"/></li> <li><label>被举报项目/部门:</label><form:input onchange="resetPageNo();" path="reportProject" htmlEscape="false" maxlength="50" class="input-small"
style="position:relative;top:-12.5px"/></li>
<li><label>举报时间:</label><input id="reportTimeFrom" name="reportTimeFrom" onchange="resetPageNo();" readonly="readonly" type="text" <li><label>举报时间:</label><input id="reportTimeFrom" name="reportTimeFrom" onchange="resetPageNo();" readonly="readonly" type="text"
maxlength="200" class="input-mini Wdate required" value="${report.reportTimeFrom}" maxlength="200" class="input-mini Wdate required" value="${report.reportTimeFrom}"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,maxDate:'#F{$dp.$D(\'reportTimeTo\')}'});" /></li> onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,maxDate:'#F{$dp.$D(\'reportTimeTo\')}'});" /></li>
<li><label>至:</label><input id="reportTimeTo" name="reportTimeTo" onchange="resetPageNo();" readonly="readonly" type="text" <li><label>至:</label><input id="reportTimeTo" name="reportTimeTo" onchange="resetPageNo();" readonly="readonly" type="text"
maxlength="200" class="input-mini Wdate required" value="${report.reportTimeTo}" maxlength="200" class="input-mini Wdate required" value="${report.reportTimeTo}"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,minDate:'#F{$dp.$D(\'reportTimeFrom\')}'});" /></li> onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,minDate:'#F{$dp.$D(\'reportTimeFrom\')}'});" /></li>
<li class="clearfix"></li>
<li><label>举报人:</label><form:input onchange="resetPageNo();" path="reportPersonName" htmlEscape="false" maxlength="50" class="input-small"/></li> <li><label>举报人:</label><form:input onchange="resetPageNo();" path="reportPersonName" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false" maxlength="50" class="input-small"/></li> <li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false" maxlength="50" class="input-small"/></li>
<li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small"> <li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small">
...@@ -120,7 +121,7 @@ ...@@ -120,7 +121,7 @@
<th>ID</th> <th>ID</th>
<th>标题</th> <th>标题</th>
<th>业务类型</th> <th>业务类型</th>
<th>被举报项目</th> <th>被举报项目/被举报部门</th>
<th>OA账号</th> <th>OA账号</th>
<th>举报人</th> <th>举报人</th>
<th>举报人电话</th> <th>举报人电话</th>
...@@ -140,7 +141,7 @@ ...@@ -140,7 +141,7 @@
<td>${vs.count}</td> <td>${vs.count}</td>
<td>${report.supplementTitle}</td> <td>${report.supplementTitle}</td>
<td>${report.supplementType}</td> <td>${report.supplementType}</td>
<td>${report.reportProject}</td> <td>${report.reportProject}/${report.supplementDepartment}</td>
<td>${report.oaname}</td> <td>${report.oaname}</td>
<td>${report.reportPersonName}</td> <td>${report.reportPersonName}</td>
<td>${report.reportPersonTel}</td> <td>${report.reportPersonTel}</td>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment