|
@@ -14,10 +14,12 @@ class Filing extends Base
|
|
|
public function getList()
|
|
|
{
|
|
|
$data = $this->request->only(['page' => 1, 'size' => 10, 'cat_id' => '', 'start_date' => '', 'end_date' => '',
|
|
|
- 'filingCode' => '', 'status' => '', 'good_name' => '', 'companyName' => '', 'companyCode' => '', 'orderCode' => '','customerCode' => '', 'supplierNo' => ''], 'post');
|
|
|
+ 'filingCode' => '', 'status' => '', 'good_name' => '', 'companyName' => '', 'companyCode' => '',"plat_orderCode"=>"",
|
|
|
+ 'orderCode' => '','customerCode' => '', 'supplierNo' => ''], 'post');
|
|
|
|
|
|
$where = [['is_del', '=', '0']];
|
|
|
if ($data['cat_id'] != '') $where[] = ['cat_id', '=', $data['cat_id']];
|
|
|
+ if ($data['plat_orderCode'] != '') $where[] = ['plat_orderCode', 'like', '%' . $data['plat_orderCode'] . '%'];
|
|
|
if ($data['start_date'] != '' && $data['end_date'] != '') $where[] = ['addtime', 'between', [$data['start_date'] . ' 00:00:00', $data['end_date'] . ' 23:59:59']];
|
|
|
if ($data['filingCode'] != '') $where[] = ['filingCode', 'like', '%' . $data['filingCode'] . '%'];
|
|
|
if ($data['status'] != '') $where[] = ['status', '=', $data['status']];
|
|
@@ -34,7 +36,7 @@ class Filing extends Base
|
|
|
|
|
|
$list = Db::name('filing')
|
|
|
->field('id,filingCode,cat_id,good_name,num,wait_num,transfer_num,good_img,
|
|
|
- price,expect_service,companyName,companyCode,status,addtime,supplierNo,supplierName,customerCode,customerName,
|
|
|
+ price,expect_service,companyName,companyCode,status,addtime,supplierNo,supplierName,customerCode,customerName,plat_orderCode,
|
|
|
"" catinfo,orderCode,cgd_charge')
|
|
|
->where($where)
|
|
|
->page($data['page'], $data['size'])
|
|
@@ -89,6 +91,7 @@ class Filing extends Base
|
|
|
'noble_metal',
|
|
|
'config',
|
|
|
'other_config',
|
|
|
+ 'plat_orderCode',
|
|
|
'remark',
|
|
|
'cost_desc',
|
|
|
'good_img'], 'post');
|
|
@@ -251,6 +254,7 @@ class Filing extends Base
|
|
|
'config',
|
|
|
'other_config',
|
|
|
'remark',
|
|
|
+ 'plat_orderCode',
|
|
|
'cost_desc',
|
|
|
'good_img'], 'post');
|
|
|
|