diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php
index 938b4e14a..1bc38bff5 100644
--- a/Application/Admin/Controller/CompanyStatementPoolController.class.php
+++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php
@@ -720,13 +720,11 @@ class CompanyStatementPoolController extends ThinkController
'verify_status'=>0
];
//
- if(empty($pool_data['create_lack_ids'])){
+ if(empty($pool['create_lack_ids'])){
$pool_data['create_lack_ids'] = $l_id;
}else{
- $pool_data['create_lack_ids'] = $pool_data['create_lack_ids'].",".$l_id;
+ $pool_data['create_lack_ids'] = $pool['create_lack_ids'].",".$l_id;
}
- $info_ids = explode(",",$pool['info_ids']);
- $pool_data['info_ids'] =implode(",",array_diff($info_ids,[$id]));
M("company_statement_pool","tab_")->save($pool_data);
M("company_statement_info","tab_")->where("id='{$id}'")->delete();
$this->ajaxReturn(array(
diff --git a/Application/Admin/View/CompanyStatementPool/viewCpPool.html b/Application/Admin/View/CompanyStatementPool/viewCpPool.html
index d90bf89bf..26a4c941b 100644
--- a/Application/Admin/View/CompanyStatementPool/viewCpPool.html
+++ b/Application/Admin/View/CompanyStatementPool/viewCpPool.html
@@ -235,5 +235,26 @@
});
});
+ $(".no_statement").on("click",function(){
+ var id = $(this).data('id');
+ $.ajax({
+ type: "POST",
+ url: "{:U('cancelStatement')}",
+ dataType: 'json',
+ async: false,
+ data: {id:id},
+ success:function(data){
+ if(data.status==1){
+ layer.msg("" + data.info + "");
+ setTimeout(function(){
+ window.location.reload();
+ },1500);
+ }else{
+ layer.msg("" + data.info + "");
+ return false;
+ }
+ }
+ });
+ })