Commit f0ac1ff4b782d1710b49a03992147b1b12d452e6
1 parent
0865f9c7
修改搜素功能的问题
Showing
4 changed files
with
11 additions
and
3 deletions
WebRoot/WEB-INF/jsp/sunvote/teacher/teacher_report_1.jsp
... | ... | @@ -236,7 +236,13 @@ |
236 | 236 | var startDate = $("#lastStart").val(); |
237 | 237 | var endDate = $("#lastEnd").val(); |
238 | 238 | var subject_id = $("#SUBJECT_ID").val(); |
239 | - url = url + "&start_date=" + startDate + "&end_date=" + endDate + "&SUBJECT_ID=" + subject_id; | |
239 | + url = url + "&start_date=" + startDate ; | |
240 | + if(endDate != null){ | |
241 | + url = url + + "&end_date=" + endDate; | |
242 | + } | |
243 | + if(subject_id != null){ | |
244 | + url = url + "&SUBJECT_ID=" + subject_id; | |
245 | + } | |
240 | 246 | if(role == "admin"){ |
241 | 247 | url = url + "&ROLE=admin" ; |
242 | 248 | } | ... | ... |
WebRoot/static/js/control-604.js
... | ... | @@ -424,7 +424,7 @@ $(function() { |
424 | 424 | contentType : "application/x-www-form-urlencoded; charset=utf-8", |
425 | 425 | success : function(data) { |
426 | 426 | $(".loading").css("display", "none"); |
427 | - window.location.href = JUMP_URL; | |
427 | + window.location.href = JUMP_URL + "&src="; | |
428 | 428 | } |
429 | 429 | }) |
430 | 430 | } | ... | ... |
resources/mybatis1/sunvote/TestPaperMapper.xml
... | ... | @@ -159,7 +159,7 @@ |
159 | 159 | and (CREATE_DATE > #{START_DATE}) |
160 | 160 | </if> |
161 | 161 | <if test="END_DATE != null and END_DATE != ''"><!-- 关键词检索 --> |
162 | - and (CREATE_DATE < #{END_DATE}) | |
162 | + and (CREATE_DATE < CONCAT(#{END_DATE},"A")) | |
163 | 163 | </if> |
164 | 164 | |
165 | 165 | order by CREATE_DATE DESC | ... | ... |