Ver Fonte

众安货车报价问题处理

Administrator há 7 meses atrás
pai
commit
84953bd4ab
1 ficheiros alterados com 4 adições e 4 exclusões
  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': '',