Commit b208fda85c86c0479ad0f2dee33d12507e17af93

Authored by 王言钊
1 parent 130483ab

修复条件查询功能、优化频道直播申请、话题模块条件输入框的数据回填显示及样式

src/main/java/com/cnlive/shenhe/controller/ChannelController.java
@@ -129,6 +129,10 @@ public class ChannelController extends BaseController { @@ -129,6 +129,10 @@ public class ChannelController extends BaseController {
129 model.addAttribute("state1", state1); 129 model.addAttribute("state1", state1);
130 model.addAttribute("pageSize", channelDTO.getPageSize()); 130 model.addAttribute("pageSize", channelDTO.getPageSize());
131 model.addAttribute("channelPage", channelPage); 131 model.addAttribute("channelPage", channelPage);
  132 + model.addAttribute("Channel_id", channelDTO.getChannel_id());
  133 + model.addAttribute("Channel_name", channelDTO.getChannel_name());
  134 + model.addAttribute("Start_date", channelDTO.getStart_date());
  135 + model.addAttribute("End_date", channelDTO.getEnd_date());
132 return "page/channel.html"; 136 return "page/channel.html";
133 } 137 }
134 138
src/main/java/com/cnlive/shenhe/controller/LiveApplyController.java
@@ -147,9 +147,6 @@ public class LiveApplyController extends BaseController { @@ -147,9 +147,6 @@ public class LiveApplyController extends BaseController {
147 for (ShyLiveapply liveApply : list) { 147 for (ShyLiveapply liveApply : list) {
148 if (!liveApply.getShenhe_state().equals(CommonConst.AUDIT_INTT)) { 148 if (!liveApply.getShenhe_state().equals(CommonConst.AUDIT_INTT)) {
149 String updater = CommonUtils.isEmpty(liveApply.getUpdater()) || "null".equals(liveApply.getUpdater()) ? "白名单" : liveApply.getUpdater(); 149 String updater = CommonUtils.isEmpty(liveApply.getUpdater()) || "null".equals(liveApply.getUpdater()) ? "白名单" : liveApply.getUpdater();
150 -  
151 -  
152 -  
153 String auditorId = liveApply.getAuditor(); 150 String auditorId = liveApply.getAuditor();
154 if (CommonUtils.isNotEmpty(auditorId)) { 151 if (CommonUtils.isNotEmpty(auditorId)) {
155 ShyUsers user = new ShyUsers(); 152 ShyUsers user = new ShyUsers();
@@ -172,6 +169,11 @@ public class LiveApplyController extends BaseController { @@ -172,6 +169,11 @@ public class LiveApplyController extends BaseController {
172 } 169 }
173 model.addAttribute("liveApplyPage", liveApplyPage); 170 model.addAttribute("liveApplyPage", liveApplyPage);
174 model.addAttribute("pageSize", liveApplyDTO.getPageSize()); 171 model.addAttribute("pageSize", liveApplyDTO.getPageSize());
  172 + model.addAttribute("Theme", liveApplyDTO.getTheme());
  173 + model.addAttribute("Organization", liveApplyDTO.getOrganization());
  174 + model.addAttribute("Sp_desc", liveApplyDTO.getSp_desc());
  175 + model.addAttribute("Start_date", liveApplyDTO.getStart_date());
  176 + model.addAttribute("End_date", liveApplyDTO.getEnd_date());
175 return "page/liveApply.html"; 177 return "page/liveApply.html";
176 } 178 }
177 179
src/main/java/com/cnlive/shenhe/controller/TopicController.java
@@ -111,6 +111,11 @@ public class TopicController extends BaseController { @@ -111,6 +111,11 @@ public class TopicController extends BaseController {
111 } 111 }
112 model.addAttribute("topicPage", topicPage); 112 model.addAttribute("topicPage", topicPage);
113 model.addAttribute("pageSize", topicDTO.getPageSize()); 113 model.addAttribute("pageSize", topicDTO.getPageSize());
  114 + model.addAttribute("Topic_id", topicDTO.getTopic_id());
  115 + model.addAttribute("Topic_name", topicDTO.getTopic_name());
  116 + model.addAttribute("Sp_desc", topicDTO.getSp_desc());
  117 + model.addAttribute("Start_date", topicDTO.getStart_date());
  118 + model.addAttribute("End_date", topicDTO.getEnd_date());
114 return "page/topic.html"; 119 return "page/topic.html";
115 } 120 }
116 121
src/main/java/com/cnlive/shenhe/serviceImpl/LiveApplyServiceImpl.java
@@ -121,8 +121,8 @@ public class LiveApplyServiceImpl { @@ -121,8 +121,8 @@ public class LiveApplyServiceImpl {
121 criteria.andLike("theme", "%" + liveApplyDTO.getTheme() + "%"); 121 criteria.andLike("theme", "%" + liveApplyDTO.getTheme() + "%");
122 } 122 }
123 123
124 - if (CommonUtils.isNotNull(liveApplyDTO.getBusiness_model())) {  
125 - criteria.andLike("organization", "%" + liveApplyDTO.getBusiness_model() + "%"); 124 + if (CommonUtils.isNotEmpty(liveApplyDTO.getOrganization())) {
  125 + criteria.andLike("organization", "%" + liveApplyDTO.getOrganization() + "%");
126 } 126 }
127 if (CommonUtils.isNotNull(liveApplyDTO.getSpid())) { 127 if (CommonUtils.isNotNull(liveApplyDTO.getSpid())) {
128 criteria.andEqualTo("sp_id", liveApplyDTO.getSpid()); 128 criteria.andEqualTo("sp_id", liveApplyDTO.getSpid());
src/main/resources/templates/page/channel.html
@@ -92,15 +92,14 @@ @@ -92,15 +92,14 @@
92 <label for="channel_id" class="control-label cb-toolbar">频道id:</label> 92 <label for="channel_id" class="control-label cb-toolbar">频道id:</label>
93 <div class="col-sm-8" style="padding: 0;"> 93 <div class="col-sm-8" style="padding: 0;">
94 <input class="form-control" name="channel_id" type="text" 94 <input class="form-control" name="channel_id" type="text"
95 - id="channel_id"> 95 + id="channel_id" th:value="${Channel_id}">
96 </div> 96 </div>
97 </div> 97 </div>
98 <div class="col-md-4" style="padding: 0"> 98 <div class="col-md-4" style="padding: 0">
99 <label for="channel_name" class="control-label cb-toolbar">频道名称:</label> 99 <label for="channel_name" class="control-label cb-toolbar">频道名称:</label>
100 <div class="col-sm-8" style="padding: 0;"> 100 <div class="col-sm-8" style="padding: 0;">
101 <input class="form-control" name="channel_name" type="text" 101 <input class="form-control" name="channel_name" type="text"
102 - id="channel_name"  
103 - > 102 + id="channel_name" th:value="${Channel_name}">
104 </div> 103 </div>
105 </div> 104 </div>
106 <div class="col-md-3" style="padding: 0"> 105 <div class="col-md-3" style="padding: 0">
@@ -123,7 +122,7 @@ @@ -123,7 +122,7 @@
123 <label for="start_date" class="control-label cb-toolbar">时间:</label> 122 <label for="start_date" class="control-label cb-toolbar">时间:</label>
124 <div class="input-group col-md-9 date"> 123 <div class="input-group col-md-9 date">
125 <input class="form-control date" name="start_date" type="text" 124 <input class="form-control date" name="start_date" type="text"
126 - id="start_date"> 125 + id="start_date" th:value="${Start_date}">
127 <span class="input-group-addon"> 126 <span class="input-group-addon">
128 <span class="glyphicon glyphicon-calendar"></span> 127 <span class="glyphicon glyphicon-calendar"></span>
129 </span> 128 </span>
@@ -133,7 +132,7 @@ @@ -133,7 +132,7 @@
133 <label for="start_date" class="control-label cb-toolbar">至</label> 132 <label for="start_date" class="control-label cb-toolbar">至</label>
134 <div class="input-group col-md-9 date"> 133 <div class="input-group col-md-9 date">
135 <input class="form-control date" name="end_date" type="text" 134 <input class="form-control date" name="end_date" type="text"
136 - id="end_date"> 135 + id="end_date" th:value="${End_date}">
137 <span class="input-group-addon"> 136 <span class="input-group-addon">
138 <span class="glyphicon glyphicon-calendar"></span> 137 <span class="glyphicon glyphicon-calendar"></span>
139 </span> 138 </span>
src/main/resources/templates/page/liveApply.html
@@ -80,7 +80,7 @@ @@ -80,7 +80,7 @@
80 <div class="col-md-6" style="padding: 0;width: 100%;"> 80 <div class="col-md-6" style="padding: 0;width: 100%;">
81 <label for="liveApply_theme" class="control-label cb-toolbar">直播主题:</label> 81 <label for="liveApply_theme" class="control-label cb-toolbar">直播主题:</label>
82 <div class="col-sm-7" style="padding: 0;"> 82 <div class="col-sm-7" style="padding: 0;">
83 - <input class="form-control" type="text" value="" id="liveApply_theme"> 83 + <input class="form-control" type="text" th:value="${Theme}" value="" id="liveApply_theme">
84 </div> 84 </div>
85 </div> 85 </div>
86 </div> 86 </div>
@@ -114,10 +114,10 @@ @@ -114,10 +114,10 @@
114 <div class="btn-group margin-bottom col-md-6" 114 <div class="btn-group margin-bottom col-md-6"
115 style="padding-left: 0px;width: 15%;float: left;"> 115 style="padding-left: 0px;width: 15%;float: left;">
116 <div class="col-md-5" style="padding: 0;width: 100%;"> 116 <div class="col-md-5" style="padding: 0;width: 100%;">
117 - <label for="business_model" class="control-label cb-toolbar">发起单位:</label> 117 + <label for="organization" class="control-label cb-toolbar">发起单位:</label>
118 <div class="col-sm-7" style="padding: 0;"> 118 <div class="col-sm-7" style="padding: 0;">
119 - <input class="form-control" type="text" value="" id="business_model"  
120 - name="business_model"> 119 + <input class="form-control" type="text" th:value="${Organization}" value="" id="organization"
  120 + name="organization">
121 </div> 121 </div>
122 </div> 122 </div>
123 </div> 123 </div>
@@ -127,7 +127,7 @@ @@ -127,7 +127,7 @@
127 th:if="${session.sessionUser.spid==0}"> 127 th:if="${session.sessionUser.spid==0}">
128 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> 128 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label>
129 <div class="col-sm-7" style="padding: 0;"> 129 <div class="col-sm-7" style="padding: 0;">
130 - <input class="form-control" type="text" value="" id="sp_desc"> 130 + <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc">
131 </div> 131 </div>
132 </div> 132 </div>
133 </div> 133 </div>
@@ -137,7 +137,7 @@ @@ -137,7 +137,7 @@
137 <label for="start_date" class="control-label cb-toolbar">预计时间:</label> 137 <label for="start_date" class="control-label cb-toolbar">预计时间:</label>
138 <div class="input-group col-md-8 date"> 138 <div class="input-group col-md-8 date">
139 <input class="form-control date" name="start_date" type="text" 139 <input class="form-control date" name="start_date" type="text"
140 - id="start_date"> 140 + id="start_date" th:value="${Start_date}">
141 <span class="input-group-addon"> 141 <span class="input-group-addon">
142 <span class="glyphicon glyphicon-calendar"></span> 142 <span class="glyphicon glyphicon-calendar"></span>
143 </span> 143 </span>
@@ -150,7 +150,7 @@ @@ -150,7 +150,7 @@
150 <label for="start_date" class="control-label cb-toolbar">至</label> 150 <label for="start_date" class="control-label cb-toolbar">至</label>
151 <div class="input-group col-md-8 date"> 151 <div class="input-group col-md-8 date">
152 <input class="form-control date" name="end_date" type="text" 152 <input class="form-control date" name="end_date" type="text"
153 - id="end_date"> 153 + id="end_date" th:value="${End_date}">
154 <span class="input-group-addon"> 154 <span class="input-group-addon">
155 <span class="glyphicon glyphicon-calendar"></span> 155 <span class="glyphicon glyphicon-calendar"></span>
156 </span> 156 </span>
@@ -485,7 +485,7 @@ @@ -485,7 +485,7 @@
485 var start_date = ""; 485 var start_date = "";
486 var end_date = ""; 486 var end_date = "";
487 var sp_desc = ""; 487 var sp_desc = "";
488 - var business_model = ""; 488 + var organization = "";
489 var shenhe_state = ""; 489 var shenhe_state = "";
490 var count = ""; 490 var count = "";
491 491
@@ -494,7 +494,7 @@ @@ -494,7 +494,7 @@
494 start_date = $("#start_date").val(); 494 start_date = $("#start_date").val();
495 end_date = $("#end_date").val(); 495 end_date = $("#end_date").val();
496 shenhe_state = $("#shenhe_state").val(); 496 shenhe_state = $("#shenhe_state").val();
497 - business_model = $("#business_model").val(); 497 + organization = $("#organization").val();
498 count = $("#pageSize").val(); 498 count = $("#pageSize").val();
499 var spId = [[${session.sessionUser.spid}]]; 499 var spId = [[${session.sessionUser.spid}]];
500 if (spId == 0) { 500 if (spId == 0) {
@@ -508,7 +508,7 @@ @@ -508,7 +508,7 @@
508 updateValue(); 508 updateValue();
509 var receive = ""; 509 var receive = "";
510 var expand_list_state = $("#forms").attr("expand_list_state"); 510 var expand_list_state = $("#forms").attr("expand_list_state");
511 - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&expand_list_state=" + expand_list_state; 511 + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&expand_list_state=" + expand_list_state;
512 } 512 }
513 513
514 //全部待领 514 //全部待领
@@ -516,27 +516,27 @@ @@ -516,27 +516,27 @@
516 updateValue(); 516 updateValue();
517 if ($.trim(shenhe_state) == '') shenhe_state = 0; 517 if ($.trim(shenhe_state) == '') shenhe_state = 0;
518 var receive = 0; 518 var receive = 0;
519 - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; 519 + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count;
520 }); 520 });
521 //我的待审核 521 //我的待审核
522 $('#Mydaishen').click(function () { 522 $('#Mydaishen').click(function () {
523 updateValue(); 523 updateValue();
524 var receive = 1; 524 var receive = 1;
525 if ($.trim(shenhe_state) == '') shenhe_state = 0; 525 if ($.trim(shenhe_state) == '') shenhe_state = 0;
526 - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; 526 + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count;
527 }); 527 });
528 //我的已审核 528 //我的已审核
529 $('#yishen').click(function () { 529 $('#yishen').click(function () {
530 updateValue(); 530 updateValue();
531 var receive = 1; 531 var receive = 1;
532 if ($.trim(shenhe_state) == '') shenhe_state = 3;//审核状态,3代表通过和拒绝都查询 532 if ($.trim(shenhe_state) == '') shenhe_state = 3;//审核状态,3代表通过和拒绝都查询
533 - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; 533 + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&receive=" + receive + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count;
534 }); 534 });
535 535
536 536
537 //查询 537 //查询
538 $('#videos_query').click(function () { 538 $('#videos_query').click(function () {
539 - window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&business_model=" + business_model + "&sp_desc=" + sp_desc + "&pageSize=" + count; 539 + window.location.href = "/liveApply/page?theme=" + liveApply_theme + "&start_date=" + start_date + "&end_date=" + end_date + "&shenhe_state=" + shenhe_state + "&organization=" + organization + "&sp_desc=" + sp_desc + "&pageSize=" + count;
540 }); 540 });
541 /*全选的操作*/ 541 /*全选的操作*/
542 $('#select_all').click(function () { 542 $('#select_all').click(function () {
src/main/resources/templates/page/topic.html
@@ -89,7 +89,7 @@ @@ -89,7 +89,7 @@
89 <div class="col-md-6" style="padding: 0;width: 100%;"> 89 <div class="col-md-6" style="padding: 0;width: 100%;">
90 <label for="topicId" class="control-label cb-toolbar">话题id:</label> 90 <label for="topicId" class="control-label cb-toolbar">话题id:</label>
91 <div class="col-sm-7" style="padding: 0;"> 91 <div class="col-sm-7" style="padding: 0;">
92 - <input class="form-control" type="text" value="" id="topicId" 92 + <input class="form-control" type="text" th:value="${Topic_id}" value="" id="topicId"
93 name="topicId"> 93 name="topicId">
94 </div> 94 </div>
95 </div> 95 </div>
@@ -114,7 +114,7 @@ @@ -114,7 +114,7 @@
114 <div class="col-md-5" style="padding: 0;width: 100%;"> 114 <div class="col-md-5" style="padding: 0;width: 100%;">
115 <label for="topic_name" class="control-label cb-toolbar">话题标题:</label> 115 <label for="topic_name" class="control-label cb-toolbar">话题标题:</label>
116 <div class="col-sm-7" style="padding: 0;"> 116 <div class="col-sm-7" style="padding: 0;">
117 - <input class="form-control" type="text" value="" id="topic_name" 117 + <input class="form-control" type="text" th:value="${Topic_name}" value="" id="topic_name"
118 name="topic_name"> 118 name="topic_name">
119 </div> 119 </div>
120 </div> 120 </div>
@@ -125,7 +125,7 @@ @@ -125,7 +125,7 @@
125 th:if="${session.sessionUser.spid==0}"> 125 th:if="${session.sessionUser.spid==0}">
126 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> 126 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label>
127 <div class="col-sm-7" style="padding: 0;"> 127 <div class="col-sm-7" style="padding: 0;">
128 - <input class="form-control" type="text" value="" id="sp_desc"> 128 + <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc">
129 </div> 129 </div>
130 </div> 130 </div>
131 </div> 131 </div>
@@ -135,7 +135,7 @@ @@ -135,7 +135,7 @@
135 <label for="start_date" class="control-label cb-toolbar">预计时间:</label> 135 <label for="start_date" class="control-label cb-toolbar">预计时间:</label>
136 <div class="input-group col-md-8 date"> 136 <div class="input-group col-md-8 date">
137 <input class="form-control date" name="start_date" type="text" 137 <input class="form-control date" name="start_date" type="text"
138 - id="start_date"> 138 + id="start_date" th:value="${Start_date}">
139 <span class="input-group-addon"> 139 <span class="input-group-addon">
140 <span class="glyphicon glyphicon-calendar"></span> 140 <span class="glyphicon glyphicon-calendar"></span>
141 </span> 141 </span>
@@ -148,7 +148,7 @@ @@ -148,7 +148,7 @@
148 <label for="start_date" class="control-label cb-toolbar">至</label> 148 <label for="start_date" class="control-label cb-toolbar">至</label>
149 <div class="input-group col-md-8 date"> 149 <div class="input-group col-md-8 date">
150 <input class="form-control date" name="end_date" type="text" 150 <input class="form-control date" name="end_date" type="text"
151 - id="end_date"> 151 + id="end_date" th:value="${End_date}">
152 <span class="input-group-addon"> 152 <span class="input-group-addon">
153 <span class="glyphicon glyphicon-calendar"></span> 153 <span class="glyphicon glyphicon-calendar"></span>
154 </span> 154 </span>