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,7 +236,13 @@ | ||
236 | var startDate = $("#lastStart").val(); | 236 | var startDate = $("#lastStart").val(); |
237 | var endDate = $("#lastEnd").val(); | 237 | var endDate = $("#lastEnd").val(); |
238 | var subject_id = $("#SUBJECT_ID").val(); | 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 | if(role == "admin"){ | 246 | if(role == "admin"){ |
241 | url = url + "&ROLE=admin" ; | 247 | url = url + "&ROLE=admin" ; |
242 | } | 248 | } |
WebRoot/static/js/control-604.js
@@ -424,7 +424,7 @@ $(function() { | @@ -424,7 +424,7 @@ $(function() { | ||
424 | contentType : "application/x-www-form-urlencoded; charset=utf-8", | 424 | contentType : "application/x-www-form-urlencoded; charset=utf-8", |
425 | success : function(data) { | 425 | success : function(data) { |
426 | $(".loading").css("display", "none"); | 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,7 +159,7 @@ | ||
159 | and (CREATE_DATE > #{START_DATE}) | 159 | and (CREATE_DATE > #{START_DATE}) |
160 | </if> | 160 | </if> |
161 | <if test="END_DATE != null and END_DATE != ''"><!-- 关键词检索 --> | 161 | <if test="END_DATE != null and END_DATE != ''"><!-- 关键词检索 --> |
162 | - and (CREATE_DATE < #{END_DATE}) | 162 | + and (CREATE_DATE < CONCAT(#{END_DATE},"A")) |
163 | </if> | 163 | </if> |
164 | 164 | ||
165 | order by CREATE_DATE DESC | 165 | order by CREATE_DATE DESC |
src/com/fh/Main.java
@@ -5,6 +5,8 @@ import java.io.InputStreamReader; | @@ -5,6 +5,8 @@ import java.io.InputStreamReader; | ||
5 | import java.net.HttpURLConnection; | 5 | import java.net.HttpURLConnection; |
6 | import java.net.URL; | 6 | import java.net.URL; |
7 | 7 | ||
8 | +import org.java_websocket.WebSocket; | ||
9 | + | ||
8 | public class Main { | 10 | public class Main { |
9 | 11 | ||
10 | public static void main(String[] args) { | 12 | public static void main(String[] args) { |