Commit a6569751 authored by hujun's avatar hujun

隐藏字段

parent eac1bdbd
......@@ -42,18 +42,15 @@ class OPartialCommission extends BaseModel
->limit($pageSize)
->page($pageNo)
->select();
$result = [];
$m_agent = new AAgents();
$m_real = new ORealIncome();
$fields_str = 'a.id,a.name,a.phone,b.store_name,c.district_name';
$fields_str = 'a.id,a.name,a.phone,b.store_name';
foreach ($data as $k => $v) {
//分佣ID
$data[$k]['commission_id'] = $v["bargain_id"] ;
if (isset($v['agent_id'])) {
$agent_data = $m_agent->getStoreDistrict($fields_str, [ 'a.id' => $v['agent_id'] ]);
$data[$k]['agent'] = $agent_data['name'] . '-' . $agent_data['phone'];
$data[$k]['district_store'] = $agent_data['district_name'] . '-' . $agent_data['store_name'];
$data[$k]['district_store'] = $agent_data['store_name'];
}
if ($v['father_id'] != 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment