市场专员业绩提成bug修正

master
zhengyongxing 5 years ago
parent b9255647f7
commit e4d1ced122

@ -135,7 +135,6 @@ class MarketPercentageController extends ThinkController
->field("tab_market_altogether.*,market_percentage") ->field("tab_market_altogether.*,market_percentage")
->join("left join sys_auth_group_access access on tab_market_altogether.admin_id = access.uid") ->join("left join sys_auth_group_access access on tab_market_altogether.admin_id = access.uid")
->join("left join sys_auth_group auth on access.group_id=auth.id") ->join("left join sys_auth_group auth on access.group_id=auth.id")
->page($p, $row)
->order("pay_time DESC") ->order("pay_time DESC")
->select(); ->select();
} else { } else {
@ -143,6 +142,7 @@ class MarketPercentageController extends ThinkController
->field("tab_market_altogether.*,market_percentage") ->field("tab_market_altogether.*,market_percentage")
->join("left join sys_auth_group_access access on tab_market_altogether.admin_id = access.uid") ->join("left join sys_auth_group_access access on tab_market_altogether.admin_id = access.uid")
->join("left join sys_auth_group auth on access.group_id=auth.id") ->join("left join sys_auth_group auth on access.group_id=auth.id")
->page($p, $row)
->order("pay_time DESC") ->order("pay_time DESC")
->select(); ->select();
} }
@ -308,7 +308,7 @@ class MarketPercentageController extends ThinkController
'extend_commission' => '应发金额', 'extend_commission' => '应发金额',
'wait_commission' => '待发金额']; 'wait_commission' => '待发金额'];
data2csv($data,'市场结算管理',$title); data2csv($data,'市场业绩提成',$title);
} }
$arraypage = $p; $arraypage = $p;
@ -341,11 +341,11 @@ class MarketPercentageController extends ThinkController
if ($_REQUEST['export']) { if ($_REQUEST['export']) {
$data = $data $data = $data
->page($p, $row)
->order("pay_time DESC") ->order("pay_time DESC")
->select(); ->select();
} else { } else {
$data = $data $data = $data
->page($p, $row)
->order("pay_time DESC") ->order("pay_time DESC")
->select(); ->select();
} }
@ -595,7 +595,7 @@ class MarketPercentageController extends ThinkController
'extend_commission' => '已发放总提成', 'extend_commission' => '已发放总提成',
'wait_commission'=>'剩余未发放总提成']; 'wait_commission'=>'剩余未发放总提成'];
data2csv($data,'个人总提成列表',$title); data2csv($data,'提成汇总结算单',$title);
} }
$count = M("market_altogether","tab_") $count = M("market_altogether","tab_")

@ -33,7 +33,7 @@
</style> </style>
<div class="cf main-place top_nav_list navtab_list"> <div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">市场结算管理</h3> <h3 class="page_title">市场业绩提成</h3>
<p class="description_text">说明:绩优流水计算管理</p> <p class="description_text">说明:绩优流水计算管理</p>
</div> </div>

Loading…
Cancel
Save