Commit 6fd683b56dd9b28817febed1a8ae932c37aba3ef

Authored by 王言钊
1 parent 632c3c8a

调试bug6

src/main/java/com/cnlive/shenhe/job/YiDunUrlResultJob.java
@@ -106,7 +106,7 @@ public class YiDunUrlResultJob { @@ -106,7 +106,7 @@ public class YiDunUrlResultJob {
106 newYiDunMsg.setDesc_msg(desc); 106 newYiDunMsg.setDesc_msg(desc);
107 newYiDunMsg.setCheck_status(0); 107 newYiDunMsg.setCheck_status(0);
108 //修改图文状态 108 //修改图文状态
109 - contentServiceImpl.callback(yiDunMsg.getContent_id(), desc, CommonConst.AUDIT_SUCCESS, "", "机审通过"); 109 + contentServiceImpl.callback(yiDunMsg.getContent_id(), desc, CommonConst.AUDIT_SUCCESS, "", "机审");
110 logger.info("审核云结果回调业务对接方:dataId={}", dataId); 110 logger.info("审核云结果回调业务对接方:dataId={}", dataId);
111 } else { 111 } else {
112 JSONObject evidences = jsonObject.getJSONObject("evidences"); 112 JSONObject evidences = jsonObject.getJSONObject("evidences");
@@ -177,9 +177,12 @@ public class YiDunUrlResultJob { @@ -177,9 +177,12 @@ public class YiDunUrlResultJob {
177 shyContent.setShenhe_type(CommonConst.AUDIT_TYPE_USER); 177 shyContent.setShenhe_type(CommonConst.AUDIT_TYPE_USER);
178 //拒绝原因 3=拒审 178 //拒绝原因 3=拒审
179 shyContent.setReceive_status(3); 179 shyContent.setReceive_status(3);
180 - shyContent.setShenhe_msg(desc);  
181 - newYiDunMsg.setDesc_msg(desc); 180 + shyContent.setShenhe_msg("易盾网站识别其它问题需排查");
  181 + shyContent.setContent_status(CommonConst.AUDIT_REFUSE);
  182 + newYiDunMsg.setDesc_msg("易盾网站识别其它问题需排查");
182 newYiDunMsg.setCheck_status(2); 183 newYiDunMsg.setCheck_status(2);
  184 + //修改图文状态
  185 + contentServiceImpl.callback(yiDunMsg.getContent_id(), "机审审核拒绝", CommonConst.AUDIT_REFUSE, "", "机审");
183 } 186 }
184 } catch (NumberFormatException e) { 187 } catch (NumberFormatException e) {
185 e.printStackTrace(); 188 e.printStackTrace();
src/main/java/com/cnlive/shenhe/serviceImpl/ContentServiceImpl.java
@@ -299,6 +299,10 @@ public class ContentServiceImpl { @@ -299,6 +299,10 @@ public class ContentServiceImpl {
299 content.setReceive_status(CommonConst.RECEIVE_AUDIT); 299 content.setReceive_status(CommonConst.RECEIVE_AUDIT);
300 // 设置审核消息 300 // 设置审核消息
301 content.setShenhe_msg(msg); 301 content.setShenhe_msg(msg);
  302 + if (state.equals(CommonConst.AUDIT_REFUSE)) {
  303 + // 设置审核类型为人工
  304 + content.setShenhe_type(CommonConst.AUDIT_TYPE_USER);
  305 + }
302 if (CommonUtils.isNotEmpty(userId)) { 306 if (CommonUtils.isNotEmpty(userId)) {
303 content.setAuditor_id(userId); 307 content.setAuditor_id(userId);
304 // 设置审核类型为人工 308 // 设置审核类型为人工
@@ -449,9 +453,9 @@ public class ContentServiceImpl { @@ -449,9 +453,9 @@ public class ContentServiceImpl {
449 if (jsonObject != null) { 453 if (jsonObject != null) {
450 Integer code = jsonObject.getInteger("code"); 454 Integer code = jsonObject.getInteger("code");
451 String msg = jsonObject.getString("msg"); 455 String msg = jsonObject.getString("msg");
452 - if (code == 200) { 456 + if (code != 200) {
453 // |0待发布 |1已发布 |2已下线 457 // |0待发布 |1已发布 |2已下线
454 - boolean b = callback(String.valueOf(shyContent.getId()), msg, CommonConst.AUDIT_SUCCESS, "", "机审通过"); 458 + callback(String.valueOf(shyContent.getId()), "机审审核拒绝", CommonConst.AUDIT_REFUSE, "", "机审");
455 } 459 }
456 JSONObject result = jsonObject.getJSONObject("result"); 460 JSONObject result = jsonObject.getJSONObject("result");
457 String dataId = result.getString("dataId"); 461 String dataId = result.getString("dataId");
src/main/resources/templates/page/content.html
@@ -81,7 +81,8 @@ @@ -81,7 +81,8 @@
81 <div class="col-md-5" style="padding: 0;width: 100%;"> 81 <div class="col-md-5" style="padding: 0;width: 100%;">
82 <label for="video_titleID" class="control-label cb-toolbar">标题:</label> 82 <label for="video_titleID" class="control-label cb-toolbar">标题:</label>
83 <div class="col-sm-9" style="padding: 0;"> 83 <div class="col-sm-9" style="padding: 0;">
84 - <input class="form-control" type="text" th:value="${Title}" value="" id="video_titleID"> 84 + <input class="form-control" type="text" th:value="${Title}" value=""
  85 + id="video_titleID">
85 </div> 86 </div>
86 </div> 87 </div>
87 </div> 88 </div>
@@ -91,7 +92,8 @@ @@ -91,7 +92,8 @@
91 <div class="col-md-5" style="padding: 0;width: 100%;"> 92 <div class="col-md-5" style="padding: 0;width: 100%;">
92 <label for="source" class="control-label cb-toolbar">来源昵称:</label> 93 <label for="source" class="control-label cb-toolbar">来源昵称:</label>
93 <div class="col-sm-9" style="padding: 0;"> 94 <div class="col-sm-9" style="padding: 0;">
94 - <input class="form-control" type="text" th:value="${Source}" value="" id="source"> 95 + <input class="form-control" type="text" th:value="${Source}" value=""
  96 + id="source">
95 </div> 97 </div>
96 </div> 98 </div>
97 </div> 99 </div>
@@ -101,7 +103,8 @@ @@ -101,7 +103,8 @@
101 <div class="col-md-5" style="padding: 0;width: 100%;"> 103 <div class="col-md-5" style="padding: 0;width: 100%;">
102 <label for="author" class="control-label cb-toolbar">作者sid:</label> 104 <label for="author" class="control-label cb-toolbar">作者sid:</label>
103 <div class="col-sm-9" style="padding: 0;"> 105 <div class="col-sm-9" style="padding: 0;">
104 - <input class="form-control" type="text" th:value="${Author}" value="" id="author"> 106 + <input class="form-control" type="text" th:value="${Author}" value=""
  107 + id="author">
105 </div> 108 </div>
106 </div> 109 </div>
107 </div> 110 </div>
@@ -113,10 +116,16 @@ @@ -113,10 +116,16 @@
113 <div class="col-sm-8" style="padding: 0;"> 116 <div class="col-sm-8" style="padding: 0;">
114 <select class="form-control" id="content_tag" name="content_tag"> 117 <select class="form-control" id="content_tag" name="content_tag">
115 <option value="">全部</option> 118 <option value="">全部</option>
116 - <option value="content" th:selected="${ContentTag eq 'content'}">图文发布</option>  
117 - <option value="moment" th:selected="${ContentTag eq 'moment'}">朋友圈</option>  
118 - <option value="cms_photoalbum" th:selected="${ContentTag eq 'cms_photoalbum'}">家庭相册</option>  
119 - <option value="edu_works" th:selected="${ContentTag eq 'edu_works'}">作业作品</option> 119 + <option value="content" th:selected="${ContentTag eq 'content'}">图文发布
  120 + </option>
  121 + <option value="moment" th:selected="${ContentTag eq 'moment'}">朋友圈
  122 + </option>
  123 + <option value="cms_photoalbum"
  124 + th:selected="${ContentTag eq 'cms_photoalbum'}">家庭相册
  125 + </option>
  126 + <option value="edu_works" th:selected="${ContentTag eq 'edu_works'}">
  127 + 作业作品
  128 + </option>
120 </select> 129 </select>
121 <!-- <input class="form-control" name="content_tag" type="text" id="content_tag"> --> 130 <!-- <input class="form-control" name="content_tag" type="text" id="content_tag"> -->
122 </div> 131 </div>
@@ -151,23 +160,25 @@ @@ -151,23 +160,25 @@
151 th:if="${session.sessionUser.spid==0}"> 160 th:if="${session.sessionUser.spid==0}">
152 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label> 161 <label for="sp_desc" class="control-label cb-toolbar">sp简称:</label>
153 <div class="col-sm-7" style="padding: 0;"> 162 <div class="col-sm-7" style="padding: 0;">
154 - <input class="form-control" type="text" th:value="${Sp_desc}" value="" id="sp_desc"> 163 + <input class="form-control" type="text" th:value="${Sp_desc}" value=""
  164 + id="sp_desc">
155 </div> 165 </div>
156 </div> 166 </div>
157 167
158 -<!-- <div class="col-md-6" style="padding: 0;width: 15%;"-->  
159 -<!-- th:if="${session.sessionUser.spid==0}">-->  
160 -<!-- <label for="count" class="control-label cb-toolbar">每页条数:</label>-->  
161 -<!-- <div class="col-sm-5" style="padding: 0;">-->  
162 -<!-- <input class="form-control" type="text" value="" id="count">-->  
163 -<!-- </div>-->  
164 -<!-- </div>--> 168 + <!-- <div class="col-md-6" style="padding: 0;width: 15%;"-->
  169 + <!-- th:if="${session.sessionUser.spid==0}">-->
  170 + <!-- <label for="count" class="control-label cb-toolbar">每页条数:</label>-->
  171 + <!-- <div class="col-sm-5" style="padding: 0;">-->
  172 + <!-- <input class="form-control" type="text" value="" id="count">-->
  173 + <!-- </div>-->
  174 + <!-- </div>-->
165 175
166 <div class="col-md-6" style="padding: 0;width: 20%;" 176 <div class="col-md-6" style="padding: 0;width: 20%;"
167 th:if="${session.sessionUser.spid==0}"> 177 th:if="${session.sessionUser.spid==0}">
168 <label for="contentId" class="control-label cb-toolbar">图文发布id:</label> 178 <label for="contentId" class="control-label cb-toolbar">图文发布id:</label>
169 <div class="col-sm-6" style="padding: 0;"> 179 <div class="col-sm-6" style="padding: 0;">
170 - <input class="form-control" type="text" th:value="${ContentId}" value="" id="contentId"> 180 + <input class="form-control" type="text" th:value="${ContentId}" value=""
  181 + id="contentId">
171 </div> 182 </div>
172 </div> 183 </div>
173 </div> 184 </div>
@@ -282,6 +293,7 @@ @@ -282,6 +293,7 @@
282 <span th:if="${content.receive_status==0}">未领取</span> 293 <span th:if="${content.receive_status==0}">未领取</span>
283 <span th:if="${content.receive_status==1}">已领取</span> 294 <span th:if="${content.receive_status==1}">已领取</span>
284 <span th:if="${content.receive_status==2}">已审核</span> 295 <span th:if="${content.receive_status==2}">已审核</span>
  296 + <span th:if="${content.receive_status==3}">已拒绝</span>
285 </td> 297 </td>
286 <td style="text-align: center; width: 6%;" th:text="${content.updater}">审核员 298 <td style="text-align: center; width: 6%;" th:text="${content.updater}">审核员
287 </td> 299 </td>
@@ -386,264 +398,264 @@ @@ -386,264 +398,264 @@
386 } 398 }
387 399
388 // 状态==2是展开状态 触发展开 400 // 状态==2是展开状态 触发展开
389 - $(function () {  
390 - if (GetQueryString("expand_list_state") == "2") {  
391 - $("#query").click();  
392 - }  
393 - //按钮颜色设置  
394 - var receive_status = [[${param.receive_status}]] ? [[${param.receive_status}]][0] : null; 401 + $(function () {
  402 + if (GetQueryString("expand_list_state") == "2") {
  403 + $("#query").click();
  404 + }
  405 + //按钮颜色设置
  406 + var receive_status = [[${param.receive_status}]] ? [[${param.receive_status}]][0] : null;
395 // var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null; 407 // var receive = [[${param.receive}]] ? [[${param.receive}]][0] : null;
396 - var stateIsNull = $.trim(receive_status) == ""; 408 + var stateIsNull = $.trim(receive_status) == "";
397 // var receiveIsNull = $.trim(receive) == ""; 409 // var receiveIsNull = $.trim(receive) == "";
398 - if (stateIsNull) {  
399 - $("#quanbu").addClass("btn-info");  
400 - } else if (receive_status == '0') {  
401 - $("#daishen").addClass("btn-warning");  
402 - } else if (receive_status == '1') {  
403 - $("#Mydaishen").addClass("btn-success");  
404 - } else if (receive_status == '2') {  
405 - $("#yishen").addClass("btn-danger");  
406 - }  
407 -  
408 - }) 410 + if (stateIsNull) {
  411 + $("#quanbu").addClass("btn-info");
  412 + } else if (receive_status == '0') {
  413 + $("#daishen").addClass("btn-warning");
  414 + } else if (receive_status == '1') {
  415 + $("#Mydaishen").addClass("btn-success");
  416 + } else if (receive_status == '2') {
  417 + $("#yishen").addClass("btn-danger");
  418 + }
409 419
410 - //翻页函数  
411 - function fanye(page) {  
412 - var param = location.search;  
413 - if (param.indexOf("page=") != -1) {  
414 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
415 - var split = se.split("&");  
416 - var h = "";  
417 - for (var i = 0; i < split.length; i++) {  
418 - var s = split[i];  
419 - if (s.indexOf("page=") < 0) h = h + "&" + split[i];  
420 - }  
421 - h = h.substring(1, h.length);  
422 - window.location.href = "/content/page?" + h + "&page=" + page;  
423 - } else {  
424 - param = param.substring(1, param.length);  
425 - window.location.href = "/content/page?" + param + "&page=" + page; 420 + })
  421 +
  422 + //翻页函数
  423 + function fanye(page) {
  424 + var param = location.search;
  425 + if (param.indexOf("page=") != -1) {
  426 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  427 + var split = se.split("&");
  428 + var h = "";
  429 + for (var i = 0; i < split.length; i++) {
  430 + var s = split[i];
  431 + if (s.indexOf("page=") < 0) h = h + "&" + split[i];
426 } 432 }
  433 + h = h.substring(1, h.length);
  434 + window.location.href = "/content/page?" + h + "&page=" + page;
  435 + } else {
  436 + param = param.substring(1, param.length);
  437 + window.location.href = "/content/page?" + param + "&page=" + page;
427 } 438 }
  439 + }
428 440
429 - //选择每页数量触发函数  
430 - function selectPageSize() {  
431 - var pageSize = $("#pageSize").val();  
432 - var param = location.search;  
433 - if (param.indexOf("pageSize=") != -1) {  
434 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
435 - var split = se.split("&");  
436 - var h = "";  
437 - for (var i = 0; i < split.length; i++) {  
438 - var s = split[i];  
439 - if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i];  
440 - }  
441 - h = h.substring(1, h.length);  
442 - window.location.href = "/content/page?" + h + "&pageSize=" + pageSize;  
443 - } else {  
444 - var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连  
445 - var split = se.split("&");  
446 - var h = "";  
447 - for (var i = 0; i < split.length; i++) {  
448 - var s = split[i];  
449 - if (s.indexOf("page=") < 0) h = h + "&" + split[i];  
450 - }  
451 - h = h.substring(1, h.length);  
452 - window.location.href = "/content/page?" + h + "&pageSize=" + pageSize; 441 + //选择每页数量触发函数
  442 + function selectPageSize() {
  443 + var pageSize = $("#pageSize").val();
  444 + var param = location.search;
  445 + if (param.indexOf("pageSize=") != -1) {
  446 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  447 + var split = se.split("&");
  448 + var h = "";
  449 + for (var i = 0; i < split.length; i++) {
  450 + var s = split[i];
  451 + if (s.indexOf("pageSize=") < 0 && s.indexOf("page=") < 0) h = h + "&" + split[i];
  452 + }
  453 + h = h.substring(1, h.length);
  454 + window.location.href = "/content/page?" + h + "&pageSize=" + pageSize;
  455 + } else {
  456 + var se = param.replace("?", "");//去掉问号,防止问号和要去掉的参数相连
  457 + var split = se.split("&");
  458 + var h = "";
  459 + for (var i = 0; i < split.length; i++) {
  460 + var s = split[i];
  461 + if (s.indexOf("page=") < 0) h = h + "&" + split[i];
453 } 462 }
  463 + h = h.substring(1, h.length);
  464 + window.location.href = "/content/page?" + h + "&pageSize=" + pageSize;
454 } 465 }
  466 + }
455 467
456 - //导出excel  
457 - function daochu() {  
458 - var param = location.search;  
459 - window.location.href = "/content/excel" + param;  
460 - } 468 + //导出excel
  469 + function daochu() {
  470 + var param = location.search;
  471 + window.location.href = "/content/excel" + param;
  472 + }
461 473
462 - var title = "";  
463 - var source = "";  
464 - var author = "";  
465 - var start_date = "";  
466 - var end_date = "";  
467 - var sp_desc = "";  
468 - var count = "";  
469 - var contentId = "";  
470 - var content_tag = "";  
471 -  
472 - function updateValue() {  
473 - title = $("#video_titleID").val();  
474 - source = $("#source").val();  
475 - author = $("#author").val();  
476 - start_date = $("#start_date").val();  
477 - end_date = $("#end_date").val();  
478 - var spId = [[${session.sessionUser.spid}]];  
479 - if (spId == 0) {  
480 - sp_desc = $("#sp_desc").val();  
481 - count = $("#pageSize").val();  
482 - contentId = $("#contentId").val();  
483 - content_tag = $("#content_tag").val();  
484 - } 474 + var title = "";
  475 + var source = "";
  476 + var author = "";
  477 + var start_date = "";
  478 + var end_date = "";
  479 + var sp_desc = "";
  480 + var count = "";
  481 + var contentId = "";
  482 + var content_tag = "";
  483 +
  484 + function updateValue() {
  485 + title = $("#video_titleID").val();
  486 + source = $("#source").val();
  487 + author = $("#author").val();
  488 + start_date = $("#start_date").val();
  489 + end_date = $("#end_date").val();
  490 + var spId = [[${session.sessionUser.spid}]];
  491 + if (spId == 0) {
  492 + sp_desc = $("#sp_desc").val();
  493 + count = $("#pageSize").val();
  494 + contentId = $("#contentId").val();
  495 + content_tag = $("#content_tag").val();
485 } 496 }
  497 + }
486 498
487 499
488 - //全部  
489 - function quanbu() {  
490 - updateValue();  
491 - var expand_list_state = $("#forms").attr("expand_list_state");  
492 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;  
493 - } 500 + //全部
  501 + function quanbu() {
  502 + updateValue();
  503 + var expand_list_state = $("#forms").attr("expand_list_state");
  504 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag + "&expand_list_state=" + expand_list_state;
  505 + }
494 506
495 - //全部待领  
496 - $('#daishen').click(function () {  
497 - updateValue();  
498 - var receive_status = 0;  
499 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;  
500 - });  
501 - //我的待审核  
502 - $('#Mydaishen').click(function () {  
503 - updateValue();  
504 - var receive_status = 1;  
505 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;  
506 - });  
507 - //我的已审核  
508 - $('#yishen').click(function () {  
509 - updateValue();  
510 - var receive_status = 2;  
511 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;  
512 - });  
513 -  
514 -  
515 - //查询  
516 - $('#videos_query').click(function () {  
517 - window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;  
518 - });  
519 - /*全选的操作*/  
520 - $('#select_all').click(function () {  
521 - if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) {  
522 - $("#select_all").prop('checked', true);  
523 - $("[name=btSelectItem]:checkbox").each(function () {  
524 - $(this).prop('checked', true);  
525 - });  
526 - } else {  
527 - $("#select_all").prop('checked', false);  
528 - $("[name=btSelectItem]:checkbox").each(function () {  
529 - $(this).prop('checked', false);  
530 - });  
531 - }  
532 - });  
533 -  
534 - /**  
535 - * 认领  
536 - */  
537 - function receive(n) {  
538 - if (n > 0) {  
539 - applyReceiveNum(n);  
540 - } else {  
541 - var rows = $("[name=btSelectItem]:checkbox:checked");  
542 - if (rows.length > 0) {  
543 - var ids = "";  
544 - rows.each(function (i, e) {  
545 - ids = ids + "," + e.value;  
546 - })  
547 - ids = ids.substring(1);  
548 - applyReceive(ids);  
549 - } else {  
550 - alert("请选择要认领的内容!");  
551 - }  
552 - }  
553 - } 507 + //全部待领
  508 + $('#daishen').click(function () {
  509 + updateValue();
  510 + var receive_status = 0;
  511 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  512 + });
  513 + //我的待审核
  514 + $('#Mydaishen').click(function () {
  515 + updateValue();
  516 + var receive_status = 1;
  517 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  518 + });
  519 + //我的已审核
  520 + $('#yishen').click(function () {
  521 + updateValue();
  522 + var receive_status = 2;
  523 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + receive_status + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  524 + });
554 525
555 - //认领选中请求  
556 - function applyReceive(ids) {  
557 - $.post("/content/receive?ids=" + ids, function (data) {  
558 - if (data.errorCode == 0) {  
559 - alert(data.errorMessage);  
560 - location.href = location.href;  
561 - } else {  
562 - alert(data.errorMessage);  
563 - }  
564 - })  
565 - }  
566 526
567 - //认领多条请求  
568 - function applyReceiveNum(num) {  
569 - $.post("/content/receive?num=" + num, function (data) {  
570 - if (data.errorCode == 0) {  
571 - alert(data.errorMessage);  
572 - location.href = location.href;  
573 - } else {  
574 - alert(data.errorMessage);  
575 - }  
576 - }) 527 + //查询
  528 + $('#videos_query').click(function () {
  529 + window.location.href = "/content/page?title=" + title + "&source=" + source + "&author=" + author + "&start_date=" + start_date + "&end_date=" + end_date + "&receive_status=" + "&sp_desc=" + sp_desc + "&pageSize=" + count + "&contentId=" + contentId + "&content_tag=" + content_tag;
  530 + });
  531 + /*全选的操作*/
  532 + $('#select_all').click(function () {
  533 + if ($("[name=btSelectItem]:checkbox:not(:checked)").length > 0) {
  534 + $("#select_all").prop('checked', true);
  535 + $("[name=btSelectItem]:checkbox").each(function () {
  536 + $(this).prop('checked', true);
  537 + });
  538 + } else {
  539 + $("#select_all").prop('checked', false);
  540 + $("[name=btSelectItem]:checkbox").each(function () {
  541 + $(this).prop('checked', false);
  542 + });
577 } 543 }
  544 + });
578 545
579 - //退领选中内容  
580 - function retReceive() { 546 + /**
  547 + * 认领
  548 + */
  549 + function receive(n) {
  550 + if (n > 0) {
  551 + applyReceiveNum(n);
  552 + } else {
581 var rows = $("[name=btSelectItem]:checkbox:checked"); 553 var rows = $("[name=btSelectItem]:checkbox:checked");
582 if (rows.length > 0) { 554 if (rows.length > 0) {
583 - var r = confirm("您确定退领选中的" + rows.length + "条内容吗?");  
584 - if (r == true) {  
585 - var ids = "";  
586 - rows.each(function (i, e) {  
587 - ids = ids + "," + e.value;  
588 - })  
589 - ids = ids.substring(1);  
590 - applyRetReceive(ids);  
591 - } 555 + var ids = "";
  556 + rows.each(function (i, e) {
  557 + ids = ids + "," + e.value;
  558 + })
  559 + ids = ids.substring(1);
  560 + applyReceive(ids);
592 } else { 561 } else {
593 - alert("没有选中的数据!"); 562 + alert("请选择要认领的内容!");
594 } 563 }
595 } 564 }
  565 + }
596 566
597 - //退领  
598 - function applyRetReceive(ids) {  
599 - $.post("/content/retReceive?ids=" + ids, function (data) {  
600 - if (data.errorCode == 0) {  
601 - alert(data.errorMessage);  
602 - location.href = location.href;  
603 - } else {  
604 - alert(data.errorMessage);  
605 - }  
606 - })  
607 - } 567 + //认领选中请求
  568 + function applyReceive(ids) {
  569 + $.post("/content/receive?ids=" + ids, function (data) {
  570 + if (data.errorCode == 0) {
  571 + alert(data.errorMessage);
  572 + location.href = location.href;
  573 + } else {
  574 + alert(data.errorMessage);
  575 + }
  576 + })
  577 + }
608 578
609 - //拒绝(打回)  
610 - function repulse() {  
611 - var rows = $("[name=btSelectItem]:checkbox:checked");  
612 - if (rows.length > 0) {  
613 - var r = confirm("您确定拒绝选中的" + rows.length + "条内容吗?");  
614 - if (r == true) {  
615 - $('#msgModal').modal('show');  
616 - } 579 + //认领多条请求
  580 + function applyReceiveNum(num) {
  581 + $.post("/content/receive?num=" + num, function (data) {
  582 + if (data.errorCode == 0) {
  583 + alert(data.errorMessage);
  584 + location.href = location.href;
617 } else { 585 } else {
618 - alert("没有选中的数据!"); 586 + alert(data.errorMessage);
619 } 587 }
620 - } 588 + })
  589 + }
621 590
622 - //提交打回  
623 - function repulseSubmit() {  
624 - var rows = $("[name=btSelectItem]:checkbox:checked");  
625 - var ids = "";  
626 - rows.each(function (i, e) {  
627 - ids = ids + "," + e.value;  
628 - })  
629 - ids = ids.substring(1);  
630 - var msg = $("#reviewMsg").val();  
631 - $.post("/content/refuse?ids=" + ids + "&msg=" + msg, function (data) {  
632 - if (data.errorCode == 0) {  
633 - alert(data.errorMessage);  
634 - location.href = location.href;  
635 - } else {  
636 - alert(data.errorMessage);  
637 - }  
638 - }) 591 + //退领选中内容
  592 + function retReceive() {
  593 + var rows = $("[name=btSelectItem]:checkbox:checked");
  594 + if (rows.length > 0) {
  595 + var r = confirm("您确定退领选中的" + rows.length + "条内容吗?");
  596 + if (r == true) {
  597 + var ids = "";
  598 + rows.each(function (i, e) {
  599 + ids = ids + "," + e.value;
  600 + })
  601 + ids = ids.substring(1);
  602 + applyRetReceive(ids);
  603 + }
  604 + } else {
  605 + alert("没有选中的数据!");
639 } 606 }
  607 + }
640 608
  609 + //退领
  610 + function applyRetReceive(ids) {
  611 + $.post("/content/retReceive?ids=" + ids, function (data) {
  612 + if (data.errorCode == 0) {
  613 + alert(data.errorMessage);
  614 + location.href = location.href;
  615 + } else {
  616 + alert(data.errorMessage);
  617 + }
  618 + })
  619 + }
641 620
642 - //导出excel  
643 - function daochu() {  
644 - var param = location.search;  
645 - window.location.href = "/content/excel" + param; 621 + //拒绝(打回)
  622 + function repulse() {
  623 + var rows = $("[name=btSelectItem]:checkbox:checked");
  624 + if (rows.length > 0) {
  625 + var r = confirm("您确定拒绝选中的" + rows.length + "条内容吗?");
  626 + if (r == true) {
  627 + $('#msgModal').modal('show');
  628 + }
  629 + } else {
  630 + alert("没有选中的数据!");
646 } 631 }
  632 + }
  633 +
  634 + //提交打回
  635 + function repulseSubmit() {
  636 + var rows = $("[name=btSelectItem]:checkbox:checked");
  637 + var ids = "";
  638 + rows.each(function (i, e) {
  639 + ids = ids + "," + e.value;
  640 + })
  641 + ids = ids.substring(1);
  642 + var msg = $("#reviewMsg").val();
  643 + $.post("/content/refuse?ids=" + ids + "&msg=" + msg, function (data) {
  644 + if (data.errorCode == 0) {
  645 + alert(data.errorMessage);
  646 + location.href = location.href;
  647 + } else {
  648 + alert(data.errorMessage);
  649 + }
  650 + })
  651 + }
  652 +
  653 +
  654 + //导出excel
  655 + function daochu() {
  656 + var param = location.search;
  657 + window.location.href = "/content/excel" + param;
  658 + }
647 </script> 659 </script>
648 <!-- 模态框(Modal) --> 660 <!-- 模态框(Modal) -->
649 <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 661 <div class="modal fade" id="msgModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">