Commit 40f40dcda039fc7ae8a73f8c6d5722370a58eb03

Authored by 王言钊
1 parent e717e271

修复音频模块条件搜索下拉列展开

src/main/java/com/cnlive/shenhe/dto/AudioDTO.java
@@ -16,7 +16,6 @@ public class AudioDTO extends ShyAudio implements Serializable { @@ -16,7 +16,6 @@ public class AudioDTO extends ShyAudio implements Serializable {
16 private String end_date; 16 private String end_date;
17 private Integer page; 17 private Integer page;
18 private Integer pageSize; 18 private Integer pageSize;
19 - private String video_priority;  
20 private String orderByClause; 19 private String orderByClause;
21 private String sp_desc; 20 private String sp_desc;
22 private String sp_Id; 21 private String sp_Id;
@@ -26,13 +25,12 @@ public class AudioDTO extends ShyAudio implements Serializable { @@ -26,13 +25,12 @@ public class AudioDTO extends ShyAudio implements Serializable {
26 public AudioDTO() { 25 public AudioDTO() {
27 } 26 }
28 27
29 - public AudioDTO(String video_title, String start_date, String end_date, Integer page, Integer pageSize, String video_priority, String orderByClause, String sp_desc, String sp_Id, Integer spid, String userId) { 28 + public AudioDTO(String video_title, String start_date, String end_date, Integer page, Integer pageSize, String orderByClause, String sp_desc, String sp_Id, Integer spid, String userId) {
30 this.video_title = video_title; 29 this.video_title = video_title;
31 this.start_date = start_date; 30 this.start_date = start_date;
32 this.end_date = end_date; 31 this.end_date = end_date;
33 this.page = page; 32 this.page = page;
34 this.pageSize = pageSize; 33 this.pageSize = pageSize;
35 - this.video_priority = video_priority;  
36 this.orderByClause = orderByClause; 34 this.orderByClause = orderByClause;
37 this.sp_desc = sp_desc; 35 this.sp_desc = sp_desc;
38 this.sp_Id = sp_Id; 36 this.sp_Id = sp_Id;
@@ -80,15 +78,6 @@ public class AudioDTO extends ShyAudio implements Serializable { @@ -80,15 +78,6 @@ public class AudioDTO extends ShyAudio implements Serializable {
80 this.pageSize = pageSize; 78 this.pageSize = pageSize;
81 } 79 }
82 80
83 -  
84 - public String getVideo_priority() {  
85 - return video_priority;  
86 - }  
87 -  
88 - public void setVideo_priority(String video_priority) {  
89 - this.video_priority = video_priority;  
90 - }  
91 -  
92 public String getOrderByClause() { 81 public String getOrderByClause() {
93 return orderByClause; 82 return orderByClause;
94 } 83 }
@@ -137,7 +126,6 @@ public class AudioDTO extends ShyAudio implements Serializable { @@ -137,7 +126,6 @@ public class AudioDTO extends ShyAudio implements Serializable {
137 ", end_date='" + end_date + '\'' + 126 ", end_date='" + end_date + '\'' +
138 ", page=" + page + 127 ", page=" + page +
139 ", pageSize=" + pageSize + 128 ", pageSize=" + pageSize +
140 - ", video_priority='" + video_priority + '\'' +  
141 ", orderByClause='" + orderByClause + '\'' + 129 ", orderByClause='" + orderByClause + '\'' +
142 ", sp_desc='" + sp_desc + '\'' + 130 ", sp_desc='" + sp_desc + '\'' +
143 ", sp_Id='" + sp_Id + '\'' + 131 ", sp_Id='" + sp_Id + '\'' +
src/main/java/com/cnlive/shenhe/service/serviceImpl/AudioServiceImpl.java
@@ -290,9 +290,6 @@ public class AudioServiceImpl implements AudioService { @@ -290,9 +290,6 @@ public class AudioServiceImpl implements AudioService {
290 if (CommonUtils.isNotEmpty(audioDTO.getVideo_title())) { 290 if (CommonUtils.isNotEmpty(audioDTO.getVideo_title())) {
291 criteria.andLike("audioTitle", "%" + audioDTO.getVideo_title() + "%"); 291 criteria.andLike("audioTitle", "%" + audioDTO.getVideo_title() + "%");
292 } 292 }
293 - if (CommonUtils.isNotEmpty(audioDTO.getVideo_priority())) {  
294 - criteria.andEqualTo("priority", audioDTO.getVideo_priority());  
295 - }  
296 if (CommonUtils.isNotNull(audioDTO.getSpid())) { 293 if (CommonUtils.isNotNull(audioDTO.getSpid())) {
297 criteria.andEqualTo("spId", audioDTO.getSpid()); 294 criteria.andEqualTo("spId", audioDTO.getSpid());
298 } else if (CommonUtils.isNotEmpty(audioDTO.getSp_Id())) { 295 } else if (CommonUtils.isNotEmpty(audioDTO.getSp_Id())) {
@@ -369,9 +366,6 @@ public class AudioServiceImpl implements AudioService { @@ -369,9 +366,6 @@ public class AudioServiceImpl implements AudioService {
369 criteria2.andEqualTo("state", 2); 366 criteria2.andEqualTo("state", 2);
370 example.or(criteria2); 367 example.or(criteria2);
371 } 368 }
372 - if (CommonUtils.isNotEmpty(audioDTO.getVideo_priority())) {  
373 - criteria.andEqualTo("priority", audioDTO.getVideo_priority());  
374 - }  
375 if (CommonUtils.isNotNull(audioDTO.getSpid())) { 369 if (CommonUtils.isNotNull(audioDTO.getSpid())) {
376 criteria.andEqualTo("spId", audioDTO.getSpid()); 370 criteria.andEqualTo("spId", audioDTO.getSpid());
377 } 371 }
src/main/resources/templates/page/audio.html
@@ -98,7 +98,6 @@ @@ -98,7 +98,6 @@
98 <option value="1" th:selected="${AudioStatus==1}">已通过</option> 98 <option value="1" th:selected="${AudioStatus==1}">已通过</option>
99 <option value="2" th:selected="${AudioStatus==2}">已拒绝</option> 99 <option value="2" th:selected="${AudioStatus==2}">已拒绝</option>
100 </select> 100 </select>
101 - <!--<input class="form-control" name="video_priority" type="text" id="video_priority">-->  
102 </div> 101 </div>
103 </div> 102 </div>
104 </div> 103 </div>
@@ -424,7 +423,6 @@ @@ -424,7 +423,6 @@
424 window.location.href = "/audio/excel" + param; 423 window.location.href = "/audio/excel" + param;
425 } 424 }
426 425
427 - var video_priority = "";  
428 var video_title = ""; 426 var video_title = "";
429 var start_date = ""; 427 var start_date = "";
430 var end_date = ""; 428 var end_date = "";
@@ -432,10 +430,10 @@ @@ -432,10 +430,10 @@
432 var count = ""; 430 var count = "";
433 var state = ""; 431 var state = "";
434 var sp_Id = ""; 432 var sp_Id = "";
  433 + var expand_list_state ="";
435 434
436 435
437 function updateValue() { 436 function updateValue() {
438 -// video_priority = $("#video_priority").val();  
439 video_title = $("#video_titleID").val(); 437 video_title = $("#video_titleID").val();
440 start_date = $("#start_date").val(); 438 start_date = $("#start_date").val();
441 end_date = $("#end_date").val(); 439 end_date = $("#end_date").val();
@@ -443,6 +441,7 @@ @@ -443,6 +441,7 @@
443 sp_Id = $("#sp_Id").val(); 441 sp_Id = $("#sp_Id").val();
444 var spId = [[${session.sessionUser.spid}]]; 442 var spId = [[${session.sessionUser.spid}]];
445 count = $("#pageSize").val(); 443 count = $("#pageSize").val();
  444 + expand_list_state = $("#forms").attr("expand_list_state");
446 if (spId == 0) { 445 if (spId == 0) {
447 sp_desc = $("#sp_desc").val(); 446 sp_desc = $("#sp_desc").val();
448 } 447 }
@@ -452,8 +451,7 @@ @@ -452,8 +451,7 @@
452 //全部 451 //全部
453 function quanbu() { 452 function quanbu() {
454 updateValue(); 453 updateValue();
455 - var expand_list_state = $("#forms").attr("expand_list_state");  
456 - window.location.href = "/audio/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&expand_list_state=" + expand_list_state; 454 + window.location.href = "/audio/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&expand_list_state=" + expand_list_state;
457 } 455 }
458 456
459 //全部待领 457 //全部待领
@@ -461,27 +459,27 @@ @@ -461,27 +459,27 @@
461 updateValue(); 459 updateValue();
462 if ($.trim(state) == '') state = 0; 460 if ($.trim(state) == '') state = 0;
463 var receive = 0; 461 var receive = 0;
464 - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id; 462 + window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&expand_list_state=" + expand_list_state;
465 }); 463 });
466 //我的待审核 464 //我的待审核
467 $('#Mydaishen').click(function () { 465 $('#Mydaishen').click(function () {
468 updateValue(); 466 updateValue();
469 var receive = 1; 467 var receive = 1;
470 if ($.trim(state) == '') state = 0; 468 if ($.trim(state) == '') state = 0;
471 - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id; 469 + window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&expand_list_state=" + expand_list_state;
472 }); 470 });
473 //我的已审核 471 //我的已审核
474 $('#yishen').click(function () { 472 $('#yishen').click(function () {
475 updateValue(); 473 updateValue();
476 var receive = 1; 474 var receive = 1;
477 if ($.trim(state) == '') state = 3;//审核状态,3代表通过和拒绝都查询 475 if ($.trim(state) == '') state = 3;//审核状态,3代表通过和拒绝都查询
478 - window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id; 476 + window.location.href = "page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&receive=" + receive + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&expand_list_state=" + expand_list_state;
479 }); 477 });
480 478
481 479
482 //查询 480 //查询
483 $('#videos_query').click(function () { 481 $('#videos_query').click(function () {
484 - window.location.href = "/audio/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&video_priority=" + video_priority + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id; 482 + window.location.href = "/audio/page?video_title=" + video_title + "&start_date=" + start_date + "&end_date=" + end_date + "&state=" + state + "&sp_desc=" + sp_desc + "&page=" + 1 + "&pageSize=" + count + "&sp_Id=" + sp_Id + "&expand_list_state=" + expand_list_state;
485 }); 483 });
486 /*全选的操作*/ 484 /*全选的操作*/
487 $('#select_all').click(function () { 485 $('#select_all').click(function () {