|
|
@@ -119,6 +119,7 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
|
|
|
$collection_time_end_time = $message_data['collection_time_end_time'] ?? '';
|
|
|
$online_posting_min_price = $message_data['online_posting_min_price'] ?? '';
|
|
|
$online_posting_max_price = $message_data['online_posting_max_price'] ?? '';
|
|
|
+ $is_ultra_low_price = $message_data['is_ultra_low_price'] ?? '';
|
|
|
|
|
|
// 时间条件
|
|
|
if ($collection_time_start_time) $map[] = ['collection_time', '>=', strtotime($collection_time_start_time)];
|
|
|
@@ -133,6 +134,7 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
|
|
|
if ($product_brand) $map[] = ['product_brand', 'like', "%$product_brand%"];
|
|
|
if ($online_posting_min_price) $map[] = ['online_posting_price', '>=', $online_posting_min_price];
|
|
|
if ($online_posting_max_price) $map[] = ['online_posting_price', '<=', $online_posting_max_price];
|
|
|
+ if ($is_ultra_low_price) $map[] = ['is_ultra_low_price', '=', $is_ultra_low_price];
|
|
|
|
|
|
$low_price_goods_where = [];
|
|
|
// 权限判断
|
|
|
@@ -359,21 +361,23 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
|
|
|
$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', '商业类型');
|
|
|
- $sheet->setCellValue('T2', '信用代码');
|
|
|
- $sheet->setCellValue('U2', '公司省');
|
|
|
- $sheet->setCellValue('V2', '公司市');
|
|
|
- $sheet->setCellValue('W2', '处理状态');
|
|
|
- $sheet->setCellValue('X2', '店铺省');
|
|
|
- $sheet->setCellValue('Y2', '店铺市');
|
|
|
- $sheet->setCellValue('Z2', '采集时间');
|
|
|
- $sheet->setCellValue('AA2', '清洗时间');
|
|
|
+ $sheet->setCellValue('M2', '是否超低价格');
|
|
|
+ $sheet->setCellValue('N2', '超低监控价格');
|
|
|
+ $sheet->setCellValue('O2', '累计挂网次数');
|
|
|
+ $sheet->setCellValue('P2', '连续挂网次数');
|
|
|
+ $sheet->setCellValue('Q2', '链接地址');
|
|
|
+ $sheet->setCellValue('R2', '店铺名称');
|
|
|
+ $sheet->setCellValue('S2', '匿名店铺名称');
|
|
|
+ $sheet->setCellValue('T2', '公司名称');
|
|
|
+ $sheet->setCellValue('U2', '商业类型');
|
|
|
+ $sheet->setCellValue('V2', '信用代码');
|
|
|
+ $sheet->setCellValue('W2', '公司省');
|
|
|
+ $sheet->setCellValue('X2', '公司市');
|
|
|
+ $sheet->setCellValue('Y2', '处理状态');
|
|
|
+ $sheet->setCellValue('Z2', '店铺省');
|
|
|
+ $sheet->setCellValue('AA2', '店铺市');
|
|
|
+ $sheet->setCellValue('AB2', '采集时间');
|
|
|
+ $sheet->setCellValue('AC2', '清洗时间');
|
|
|
|
|
|
//平台0=全部,1=淘宝,2=京东,3=拼多多,4=美团,5=药师帮,6=1药城,7=药九九,8=药易购,9=药帮忙,10=熊猫药药11=药房网
|
|
|
$platform_data = [
|
|
|
@@ -415,24 +419,26 @@ class ExportLowPriceGoodsJobs implements ShouldQueue
|
|
|
$sheet->setCellValue('J' . $row, $item['product_specs']);
|
|
|
$sheet->setCellValue('K' . $row, $item['suggested_price']);
|
|
|
$sheet->setCellValue('L' . $row, $item['online_posting_price']);
|
|
|
- $sheet->setCellValue('M' . $row, $item['online_posting_count']);
|
|
|
- $sheet->setCellValue('N' . $row, $item['continuous_listing_count']);
|
|
|
- $sheet->setCellValue('O' . $row, $item['link_url']);
|
|
|
- $sheet->setCellValue('P' . $row, $item['store_name']);
|
|
|
- $sheet->setCellValue('Q' . $row, $item['anonymous_store_name']);
|
|
|
- $sheet->setCellValue('R' . $row, $item['company_name']);
|
|
|
- $sheet->setCellValue('S' . $row, $item['company_category_name']);
|
|
|
- $sheet->setCellValue('T' . $row, $item['social_credit_code']);
|
|
|
- $sheet->setCellValue('U' . $row, $item['province_name']);
|
|
|
- $sheet->setCellValue('V' . $row, $item['city_name']);
|
|
|
- $sheet->setCellValue('W' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
|
|
|
- $sheet->setCellValue('X' . $row, $item['shipment_province_name']);
|
|
|
- $sheet->setCellValue('Y' . $row, $item['shipment_city_name']);
|
|
|
- $sheet->setCellValue('Z' . $row, !empty($item['collection_time']) ? date('Y-m-d H:i:s', $item['collection_time']) : '');
|
|
|
- $sheet->setCellValue('AA' . $row, date('Y-m-d H:i:s', $item['insert_time']));
|
|
|
+ $sheet->setCellValue('M' . $row, $item['is_ultra_low_price'] == 1 ? '是' : '否');
|
|
|
+ $sheet->setCellValue('N' . $row, $item['ultra_low_price']);
|
|
|
+ $sheet->setCellValue('O' . $row, $item['online_posting_count']);
|
|
|
+ $sheet->setCellValue('P' . $row, $item['continuous_listing_count']);
|
|
|
+ $sheet->setCellValue('Q' . $row, $item['link_url']);
|
|
|
+ $sheet->setCellValue('R' . $row, $item['store_name']);
|
|
|
+ $sheet->setCellValue('S' . $row, $item['anonymous_store_name']);
|
|
|
+ $sheet->setCellValue('T' . $row, $item['company_name']);
|
|
|
+ $sheet->setCellValue('U' . $row, $item['company_category_name']);
|
|
|
+ $sheet->setCellValue('V' . $row, $item['social_credit_code']);
|
|
|
+ $sheet->setCellValue('W' . $row, $item['province_name']);
|
|
|
+ $sheet->setCellValue('X' . $row, $item['city_name']);
|
|
|
+ $sheet->setCellValue('Y' . $row, isset($processing_status_text[$item['processing_status']]) ? $processing_status_text[$item['processing_status']] : '');
|
|
|
+ $sheet->setCellValue('Z' . $row, $item['shipment_province_name']);
|
|
|
+ $sheet->setCellValue('AA' . $row, $item['shipment_city_name']);
|
|
|
+ $sheet->setCellValue('AB' . $row, !empty($item['collection_time']) ? date('Y-m-d H:i:s', $item['collection_time']) : '');
|
|
|
+ $sheet->setCellValue('AC' . $row, date('Y-m-d H:i:s', $item['insert_time']));
|
|
|
$row++;
|
|
|
}
|
|
|
- foreach (range('A', 'AA') as $column) {
|
|
|
+ foreach (range('A', 'AC') as $column) {
|
|
|
$sheet->getColumnDimension($column)->setAutoSize(true);
|
|
|
}
|
|
|
// 创建Excel文件
|