|
|
@@ -48,7 +48,7 @@ class ViolationProduct extends Controller
|
|
|
$source_responsible_person = request('source_responsible_person', '');
|
|
|
$processing_status = request('processing_status', '');
|
|
|
$product_specs = request('product_specs', '');
|
|
|
- $online_posting_cunt = request('online_posting_cunt', '');
|
|
|
+ $online_posting_count = request('online_posting_count', '');
|
|
|
$category_name = request('category_name', '');
|
|
|
// 时间条件
|
|
|
if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
|
|
|
@@ -79,9 +79,9 @@ class ViolationProduct extends Controller
|
|
|
$ViolationProductModel = $ViolationProductModel->whereIn('store_name', $store_names);
|
|
|
}
|
|
|
//多选违规挂网次数查询
|
|
|
- if ($online_posting_cunt && is_string($online_posting_cunt)) {
|
|
|
- $online_posting_cunt = explode(',', $online_posting_cunt);
|
|
|
- $ViolationProductModel = $ViolationProductModel->whereIn('online_posting_cunt', $online_posting_cunt);
|
|
|
+ if ($online_posting_count && is_string($online_posting_count)) {
|
|
|
+ $online_posting_count = explode(',', $online_posting_count);
|
|
|
+ $ViolationProductModel = $ViolationProductModel->whereIn('online_posting_count', $online_posting_count);
|
|
|
}
|
|
|
//多选规格查询
|
|
|
if ($product_specs && is_string($product_specs)) {
|
|
|
@@ -174,7 +174,7 @@ class ViolationProduct extends Controller
|
|
|
$source_responsible_person = request('source_responsible_person', '');
|
|
|
$processing_status = request('processing_status', '');
|
|
|
$product_specs = request('product_specs', '');
|
|
|
- $online_posting_cunt = request('online_posting_cunt', '');
|
|
|
+ $online_posting_count = request('online_posting_count', '');
|
|
|
$category_name = request('category_name', '');
|
|
|
// 时间条件
|
|
|
if ($start_time) $map[] = ['insert_time', '>=', strtotime($start_time)];
|
|
|
@@ -205,9 +205,9 @@ class ViolationProduct extends Controller
|
|
|
$ViolationProductModel = $ViolationProductModel->whereIn('store_name', $store_names);
|
|
|
}
|
|
|
//多选违规挂网次数查询
|
|
|
- if ($online_posting_cunt && is_string($online_posting_cunt)) {
|
|
|
- $online_posting_cunt = explode(',', $online_posting_cunt);
|
|
|
- $ViolationProductModel = $ViolationProductModel->whereIn('online_posting_cunt', $online_posting_cunt);
|
|
|
+ if ($online_posting_count && is_string($online_posting_count)) {
|
|
|
+ $online_posting_count = explode(',', $online_posting_count);
|
|
|
+ $ViolationProductModel = $ViolationProductModel->whereIn('online_posting_count', $online_posting_count);
|
|
|
}
|
|
|
//多选规格查询
|
|
|
if ($product_specs && is_string($product_specs)) {
|
|
|
@@ -346,18 +346,19 @@ class ViolationProduct extends Controller
|
|
|
$sheet->setCellValue('D2', '商品分类');
|
|
|
$sheet->setCellValue('E2', '商品名称');
|
|
|
$sheet->setCellValue('F2', '商品规格');
|
|
|
- $sheet->setCellValue('G2', '挂网次数');
|
|
|
- $sheet->setCellValue('H2', '链接地址');
|
|
|
- $sheet->setCellValue('I2', '店铺名称');
|
|
|
- $sheet->setCellValue('J2', '公司名称');
|
|
|
- $sheet->setCellValue('K2', '公司分类');
|
|
|
- $sheet->setCellValue('L2', '信用代码');
|
|
|
- $sheet->setCellValue('M2', '省份');
|
|
|
- $sheet->setCellValue('N2', '城市');
|
|
|
- $sheet->setCellValue('O2', '溯源责任人');
|
|
|
- $sheet->setCellValue('P2', '处理状态');
|
|
|
- $sheet->setCellValue('Q2', '任务状态');
|
|
|
- $sheet->setCellValue('R2', '记录时间');
|
|
|
+ $sheet->setCellValue('G2', '累计挂网次数');
|
|
|
+ $sheet->setCellValue('H2', '连续挂网次数');
|
|
|
+ $sheet->setCellValue('I2', '链接地址');
|
|
|
+ $sheet->setCellValue('J2', '店铺名称');
|
|
|
+ $sheet->setCellValue('K2', '公司名称');
|
|
|
+ $sheet->setCellValue('L2', '公司分类');
|
|
|
+ $sheet->setCellValue('M2', '信用代码');
|
|
|
+ $sheet->setCellValue('N2', '省份');
|
|
|
+ $sheet->setCellValue('O2', '城市');
|
|
|
+ $sheet->setCellValue('P2', '溯源责任人');
|
|
|
+ $sheet->setCellValue('Q2', '处理状态');
|
|
|
+ $sheet->setCellValue('R2', '任务状态');
|
|
|
+ $sheet->setCellValue('S2', '记录时间');
|
|
|
|
|
|
$platform_data = [
|
|
|
'0' => '全部',
|
|
|
@@ -388,18 +389,19 @@ class ViolationProduct extends Controller
|
|
|
$sheet->setCellValue('D' . $row, $item['category_name']);
|
|
|
$sheet->setCellValue('E' . $row, $item['product_name']);
|
|
|
$sheet->setCellValue('F' . $row, $item['product_specs']);
|
|
|
- $sheet->setCellValue('G' . $row, $item['online_posting_cunt']);
|
|
|
- $sheet->setCellValue('H' . $row, $item['link_url']);
|
|
|
- $sheet->setCellValue('I' . $row, $item['store_name']);
|
|
|
- $sheet->setCellValue('J' . $row, $item['company_name']);
|
|
|
- $sheet->setCellValue('K' . $row, $item['company_category_name']);
|
|
|
- $sheet->setCellValue('L' . $row, $item['social_credit_code']);
|
|
|
- $sheet->setCellValue('M' . $row, $item['province_name']);
|
|
|
- $sheet->setCellValue('N' . $row, $item['city_name']);
|
|
|
- $sheet->setCellValue('O' . $row, $source_responsible_person_name);
|
|
|
- $sheet->setCellValue('P' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
|
|
|
- $sheet->setCellValue('Q' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
|
|
|
- $sheet->setCellValue('R' . $row, date('Y-m-d H:i:s', $item['insert_time']));
|
|
|
+ $sheet->setCellValue('G' . $row, $item['online_posting_count']);
|
|
|
+ $sheet->setCellValue('H' . $row, $item['continuous_listing_count']);
|
|
|
+ $sheet->setCellValue('I' . $row, $item['link_url']);
|
|
|
+ $sheet->setCellValue('J' . $row, $item['store_name']);
|
|
|
+ $sheet->setCellValue('K' . $row, $item['company_name']);
|
|
|
+ $sheet->setCellValue('L' . $row, $item['company_category_name']);
|
|
|
+ $sheet->setCellValue('M' . $row, $item['social_credit_code']);
|
|
|
+ $sheet->setCellValue('N' . $row, $item['province_name']);
|
|
|
+ $sheet->setCellValue('O' . $row, $item['city_name']);
|
|
|
+ $sheet->setCellValue('P' . $row, $source_responsible_person_name);
|
|
|
+ $sheet->setCellValue('Q' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
|
|
|
+ $sheet->setCellValue('R' . $row, isset($status_text[$item['status']]) ? $status_text[$item['status']] : '');
|
|
|
+ $sheet->setCellValue('S' . $row, date('Y-m-d H:i:s', $item['insert_time']));
|
|
|
$row++;
|
|
|
}
|
|
|
foreach (range('A', 'P') as $column) {
|