diff --git a/app/controller/Task.php b/app/controller/Task.php index 2e914c3..cc52b93 100644 --- a/app/controller/Task.php +++ b/app/controller/Task.php @@ -182,6 +182,9 @@ class Task extends BaseController $where[] = ['is_export_bhx', '>', 0]; $where[] = ['is_update_bhx', '>', 0]; $where[] = ['is_export_bmc', '=', 0]; + if($params['update_no'] > 0){ + $where[] = ['is_update_bhx', '=', $params['update_no']]; + } } if ($params['export_type'] == 'failed') { $where[] = ['is_export_bhx', '>', 0]; @@ -508,6 +511,9 @@ class Task extends BaseController $where[] = ['is_export_bhx', '>', 0]; $where[] = ['is_update_bhx', '>', 0]; $where[] = ['is_export_bmc', '=', 0]; + if($params['update_no'] > 0){ + $where[] = ['is_update_bhx', '=', $params['update_no']]; + } } if ($params['export_type'] == 'failed') { $where[] = ['is_export_bhx', '>', 0]; diff --git a/app/view/task/index.html b/app/view/task/index.html index 88706ac..227cb0a 100644 --- a/app/view/task/index.html +++ b/app/view/task/index.html @@ -66,6 +66,12 @@ --> +
+ +
+ +
+
@@ -273,6 +279,14 @@ $('#sub_export_type').show(); $('#sub_export_type').find(':input').removeAttr('disabled'); } + + if(data.value == 'bmc'){ + $('#update_no').show(); + $('#update_no').find(':input').removeAttr('disabled'); + } else { + $('#update_no').hide(); + $('#update_no').find(':input').attr('disabled',true); + } }); var tableIns = layui.table.render({ diff --git a/extend/service/CarInfoHandle.php b/extend/service/CarInfoHandle.php index 69da2aa..1dc8889 100644 --- a/extend/service/CarInfoHandle.php +++ b/extend/service/CarInfoHandle.php @@ -99,6 +99,9 @@ class CarInfoHandle $where[] = ['is_export_bhx', '>', 0]; $where[] = ['is_update_bhx', '>', 0]; $where[] = ['is_export_bmc', '=', 0]; + if($data['update_no'] > 0){ + $where[] = ['is_update_bhx', '=', $data['update_no']]; + } } if ($data['export_type'] == 'failed') { $where[] = ['is_export_bhx', '>', 0];