Skip to content

Commit

Permalink
更改获取table name的方式,方便以后加表名前缀
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Nov 17, 2017
1 parent 0f40b44 commit 9540567
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion block/role/Manageredit.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public function saveMenuAndRole(){
$remove_role_menu_id_str = implode(',',$remove_role_menu_ids);
//AdminRoleMenu::deleteAll(['in','menu_id',$remove_role_menu_ids]);

$sql = "delete from admin_role_menu where menu_id in ($remove_role_menu_id_str ) and role_id = :role_id ";
$sql = "delete from $table where menu_id in ($remove_role_menu_id_str ) and role_id = :role_id ";
$data = [ 'role_id'=> $roleId ];
CDB::deleteBySql($sql,$data);

Expand Down

0 comments on commit 9540567

Please sign in to comment.