Commit fa1c15e8 authored by 季圣华's avatar 季圣华
Browse files

解决收支单据无法按时间查询的问题

parent 7b795718
...@@ -959,6 +959,14 @@ ...@@ -959,6 +959,14 @@
} }
function showAccountHeadDetails(pageNo,pageSize){ function showAccountHeadDetails(pageNo,pageSize){
var beginTime = $.trim($("#searchBeginTime").val());
var endTime = $.trim($("#searchEndTime").val());
if(beginTime) {
beginTime = beginTime + ' 00:00:00';
}
if(endTime) {
endTime = endTime + ' 23:59:59';
}
$.ajax({ $.ajax({
type:"get", type:"get",
url: "/accountHead/list", url: "/accountHead/list",
...@@ -967,8 +975,8 @@ ...@@ -967,8 +975,8 @@
search: JSON.stringify({ search: JSON.stringify({
type: listType, type: listType,
billNo: $.trim($("#searchBillNo").val()), billNo: $.trim($("#searchBillNo").val()),
beginTime: $("#searchBeginTime").val(), beginTime: beginTime,
endTime: $("#searchEndTime").val() endTime: endTime
}), }),
currentPage: pageNo, currentPage: pageNo,
pageSize: pageSize pageSize: pageSize
......
...@@ -22,10 +22,10 @@ ...@@ -22,10 +22,10 @@
and ah.Type='${type}' and ah.Type='${type}'
</if> </if>
<if test="beginTime != null"> <if test="beginTime != null">
and ah.BillTime &gt;= '%${beginTime}%' and ah.BillTime &gt;= '${beginTime}'
</if> </if>
<if test="endTime != null"> <if test="endTime != null">
and ah.BillTime &lt;= '%${endTime}%' and ah.BillTime &lt;= '${endTime}'
</if> </if>
and ifnull(ah.delete_Flag,'0') !='1' and ifnull(ah.delete_Flag,'0') !='1'
order by ah.Id desc order by ah.Id desc
...@@ -47,10 +47,10 @@ ...@@ -47,10 +47,10 @@
and Type='${type}' and Type='${type}'
</if> </if>
<if test="beginTime != null"> <if test="beginTime != null">
and BillTime &gt;= '%${beginTime}%' and BillTime &gt;= '${beginTime}'
</if> </if>
<if test="endTime != null"> <if test="endTime != null">
and BillTime &lt;= '%${endTime}%' and BillTime &lt;= '${endTime}'
</if> </if>
and ifnull(delete_Flag,'0') !='1' and ifnull(delete_Flag,'0') !='1'
</select> </select>
......
Supports Markdown
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