diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index 05ae0c7ee..d0c97716d 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -361,7 +361,7 @@ class CompanyStatementSetController extends Controller { { $game_where = "partner_id in ({$cp_id})"; $game = M('game','tab_'); - $gameDbRes = $game->field("id,relation_game_name as game_name,partner_id as cp_id,original_package_name")->where($game_where)->select(); + $gameDbRes = $game->field("id,relation_game_name as game_name,partner_id as cp_id,original_package_name,select_package_name")->where($game_where)->select(); $gameList=[]; foreach ($gameDbRes as $k => $v) { $gameList[$v['id']] =$v; @@ -392,7 +392,11 @@ class CompanyStatementSetController extends Controller { if(empty($v['original_package_name'])){ $game_name = $v['game_name']; }else{ - $game_name = $v['original_package_name']; + if($v['select_package_name'] == 1){ + $game_name = $v['original_package_name']; + }else{ + $game_name = $v['game_name']; + } } $cp_id = $v['cp_id']; unset($v['cp_id']);