瀏覽代碼

众安货车报价问题处理

Administrator 7 月之前
父節點
當前提交
84953bd4ab
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      spiders/zhongan/baojia/za_bfjs.py

+ 4 - 4
spiders/zhongan/baojia/za_bfjs.py

@@ -569,7 +569,7 @@ class ZA_bfjs(object):
 				'desVehicleOwnerName': '',
 				'applicantType': 'PERSONAL',
 				'applicantUseAttribute': '03',
-				'useAttribute': 'NONBUSINESS',
+				'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
 				'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
 				'ownershipAttribute': 'PER',
 				'vehicleLicenceType': '',
@@ -701,7 +701,7 @@ class ZA_bfjs(object):
 						'desVehicleOwnerName': '',
 						'applicantType': 'PERSONAL',
 						'applicantUseAttribute': '03',
-						'useAttribute': 'NONBUSINESS',
+						'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
 						'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
 						'ownershipAttribute': 'PER',
 						'vehicleLicenceType': '',
@@ -880,7 +880,7 @@ class ZA_bfjs(object):
 				'desVehicleOwnerName': '',
 				'applicantType': 'PERSONAL',
 				'applicantUseAttribute': '03',
-				'useAttribute': 'NONBUSINESS',
+				'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
 				'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
 				'ownershipAttribute': 'PER',
 				'vehicleLicenceType': '',
@@ -999,7 +999,7 @@ class ZA_bfjs(object):
 						'desVehicleOwnerName': '',
 						'applicantType': 'PERSONAL',
 						'applicantUseAttribute': '03',
-						'useAttribute': 'NONBUSINESS',
+						'useAttribute': 'NONBUSINESS' if self.vehicleUse!='04' else 'BUSINESS',
 						'subOwnershipAttribute': "" if (self.vehicleUse!='04' and self.vehicleUse!='08') else "TRUCK",
 						'ownershipAttribute': 'PER',
 						'vehicleLicenceType': '',