Commit 2a74a1e4 by wubh

包活干V1.9.0-修改修改TSP投保数据格式

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27164 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 709628c2
package com.glsx.ordercenter.dto.req;
import java.io.Serializable;
import java.math.BigDecimal;
public class TspSaveReq implements Serializable {
//保险公司名称(华安:sinosafe,富德:sinofd,阳光:sinosig,人保:picc)
......@@ -43,7 +42,7 @@ public class TspSaveReq implements Serializable {
//车系名称
private String vehicleSeriesName;
//车辆价格
private BigDecimal vehiclePrice;
private String vehiclePrice;
//车辆使用性质(1非营运车;2营运车.华安只支持非运营)
private String vehicleUsage;
......@@ -73,16 +72,8 @@ public class TspSaveReq implements Serializable {
//保费
private Long sumPremium;
public Long getSumPremium() {
return this.sumPremium;
}
public void setSumPremium(Long sumPremium) {
this.sumPremium = sumPremium;
}
public String getInsuranceCompany() {
return this.insuranceCompany;
return insuranceCompany;
}
public void setInsuranceCompany(String insuranceCompany) {
......@@ -90,7 +81,7 @@ public class TspSaveReq implements Serializable {
}
public String getSeqNo() {
return this.seqNo;
return seqNo;
}
public void setSeqNo(String seqNo) {
......@@ -98,7 +89,7 @@ public class TspSaveReq implements Serializable {
}
public String getCompensationName() {
return this.compensationName;
return compensationName;
}
public void setCompensationName(String compensationName) {
......@@ -106,7 +97,7 @@ public class TspSaveReq implements Serializable {
}
public String getAddress() {
return this.address;
return address;
}
public void setAddress(String address) {
......@@ -114,7 +105,7 @@ public class TspSaveReq implements Serializable {
}
public String getCustomerType() {
return this.customerType;
return customerType;
}
public void setCustomerType(String customerType) {
......@@ -122,7 +113,7 @@ public class TspSaveReq implements Serializable {
}
public String getCardType() {
return this.cardType;
return cardType;
}
public void setCardType(String cardType) {
......@@ -130,7 +121,7 @@ public class TspSaveReq implements Serializable {
}
public String getCardNo() {
return this.cardNo;
return cardNo;
}
public void setCardNo(String cardNo) {
......@@ -138,7 +129,7 @@ public class TspSaveReq implements Serializable {
}
public String getName() {
return this.name;
return name;
}
public void setName(String name) {
......@@ -146,7 +137,7 @@ public class TspSaveReq implements Serializable {
}
public String getPhone() {
return this.phone;
return phone;
}
public void setPhone(String phone) {
......@@ -154,7 +145,7 @@ public class TspSaveReq implements Serializable {
}
public String getEffectDate() {
return this.effectDate;
return effectDate;
}
public void setEffectDate(String effectDate) {
......@@ -162,7 +153,7 @@ public class TspSaveReq implements Serializable {
}
public String getInsurePeriod() {
return this.insurePeriod;
return insurePeriod;
}
public void setInsurePeriod(String insurePeriod) {
......@@ -170,7 +161,7 @@ public class TspSaveReq implements Serializable {
}
public String getSumAmount() {
return this.sumAmount;
return sumAmount;
}
public void setSumAmount(String sumAmount) {
......@@ -178,7 +169,7 @@ public class TspSaveReq implements Serializable {
}
public String getStandNo() {
return this.standNo;
return standNo;
}
public void setStandNo(String standNo) {
......@@ -186,7 +177,7 @@ public class TspSaveReq implements Serializable {
}
public String getEngine() {
return this.engine;
return engine;
}
public void setEngine(String engine) {
......@@ -194,7 +185,7 @@ public class TspSaveReq implements Serializable {
}
public String getBuyType() {
return this.buyType;
return buyType;
}
public void setBuyType(String buyType) {
......@@ -202,7 +193,7 @@ public class TspSaveReq implements Serializable {
}
public String getVehicleColor() {
return this.vehicleColor;
return vehicleColor;
}
public void setVehicleColor(String vehicleColor) {
......@@ -210,7 +201,7 @@ public class TspSaveReq implements Serializable {
}
public String getVehicleBrand() {
return this.vehicleBrand;
return vehicleBrand;
}
public void setVehicleBrand(String vehicleBrand) {
......@@ -218,7 +209,7 @@ public class TspSaveReq implements Serializable {
}
public String getVehicleChildsBrandName() {
return this.vehicleChildsBrandName;
return vehicleChildsBrandName;
}
public void setVehicleChildsBrandName(String vehicleChildsBrandName) {
......@@ -226,23 +217,23 @@ public class TspSaveReq implements Serializable {
}
public String getVehicleSeriesName() {
return this.vehicleSeriesName;
return vehicleSeriesName;
}
public void setVehicleSeriesName(String vehicleSeriesName) {
this.vehicleSeriesName = vehicleSeriesName;
}
public BigDecimal getVehiclePrice() {
return this.vehiclePrice;
public String getVehiclePrice() {
return vehiclePrice;
}
public void setVehiclePrice(BigDecimal vehiclePrice) {
public void setVehiclePrice(String vehiclePrice) {
this.vehiclePrice = vehiclePrice;
}
public String getVehicleUsage() {
return this.vehicleUsage;
return vehicleUsage;
}
public void setVehicleUsage(String vehicleUsage) {
......@@ -250,7 +241,7 @@ public class TspSaveReq implements Serializable {
}
public String getPlanNo() {
return this.planNo;
return planNo;
}
public void setPlanNo(String planNo) {
......@@ -258,7 +249,7 @@ public class TspSaveReq implements Serializable {
}
public String getBirthday() {
return this.birthday;
return birthday;
}
public void setBirthday(String birthday) {
......@@ -266,7 +257,7 @@ public class TspSaveReq implements Serializable {
}
public String getSex() {
return this.sex;
return sex;
}
public void setSex(String sex) {
......@@ -274,7 +265,7 @@ public class TspSaveReq implements Serializable {
}
public String getInstallPoint() {
return this.installPoint;
return installPoint;
}
public void setInstallPoint(String installPoint) {
......@@ -282,7 +273,7 @@ public class TspSaveReq implements Serializable {
}
public String getInstallPerson() {
return this.installPerson;
return installPerson;
}
public void setInstallPerson(String installPerson) {
......@@ -290,7 +281,7 @@ public class TspSaveReq implements Serializable {
}
public String getSpid() {
return this.spid;
return spid;
}
public void setSpid(String spid) {
......@@ -298,7 +289,7 @@ public class TspSaveReq implements Serializable {
}
public String getSpecialContent() {
return this.specialContent;
return specialContent;
}
public void setSpecialContent(String specialContent) {
......@@ -306,7 +297,7 @@ public class TspSaveReq implements Serializable {
}
public String getDeviceName() {
return this.deviceName;
return deviceName;
}
public void setDeviceName(String deviceName) {
......@@ -314,7 +305,7 @@ public class TspSaveReq implements Serializable {
}
public String getProductType() {
return this.productType;
return productType;
}
public void setProductType(String productType) {
......@@ -322,7 +313,7 @@ public class TspSaveReq implements Serializable {
}
public String getDeviceType() {
return this.deviceType;
return deviceType;
}
public void setDeviceType(String deviceType) {
......@@ -330,7 +321,7 @@ public class TspSaveReq implements Serializable {
}
public String getSn() {
return this.sn;
return sn;
}
public void setSn(String sn) {
......@@ -338,7 +329,7 @@ public class TspSaveReq implements Serializable {
}
public String getActiveDate() {
return this.activeDate;
return activeDate;
}
public void setActiveDate(String activeDate) {
......@@ -346,7 +337,7 @@ public class TspSaveReq implements Serializable {
}
public String getPlateNum() {
return this.plateNum;
return plateNum;
}
public void setPlateNum(String plateNum) {
......@@ -354,7 +345,7 @@ public class TspSaveReq implements Serializable {
}
public String getVehicleTypeName() {
return this.vehicleTypeName;
return vehicleTypeName;
}
public void setVehicleTypeName(String vehicleTypeName) {
......@@ -362,7 +353,7 @@ public class TspSaveReq implements Serializable {
}
public String getShopName() {
return this.shopName;
return shopName;
}
public void setShopName(String shopName) {
......@@ -370,10 +361,62 @@ public class TspSaveReq implements Serializable {
}
public String getFixTime() {
return this.fixTime;
return fixTime;
}
public void setFixTime(String fixTime) {
this.fixTime = fixTime;
}
public Long getSumPremium() {
return sumPremium;
}
public void setSumPremium(Long sumPremium) {
this.sumPremium = sumPremium;
}
@Override
public String toString() {
return "TspSaveReq{" +
"insuranceCompany='" + insuranceCompany + '\'' +
", seqNo='" + seqNo + '\'' +
", compensationName='" + compensationName + '\'' +
", address='" + address + '\'' +
", customerType='" + customerType + '\'' +
", cardType='" + cardType + '\'' +
", cardNo='" + cardNo + '\'' +
", name='" + name + '\'' +
", phone='" + phone + '\'' +
", effectDate='" + effectDate + '\'' +
", insurePeriod='" + insurePeriod + '\'' +
", sumAmount='" + sumAmount + '\'' +
", standNo='" + standNo + '\'' +
", engine='" + engine + '\'' +
", buyType='" + buyType + '\'' +
", vehicleColor='" + vehicleColor + '\'' +
", vehicleBrand='" + vehicleBrand + '\'' +
", vehicleChildsBrandName='" + vehicleChildsBrandName + '\'' +
", vehicleSeriesName='" + vehicleSeriesName + '\'' +
", vehiclePrice='" + vehiclePrice + '\'' +
", vehicleUsage='" + vehicleUsage + '\'' +
", planNo='" + planNo + '\'' +
", birthday='" + birthday + '\'' +
", sex='" + sex + '\'' +
", installPoint='" + installPoint + '\'' +
", installPerson='" + installPerson + '\'' +
", spid='" + spid + '\'' +
", specialContent='" + specialContent + '\'' +
", deviceName='" + deviceName + '\'' +
", productType='" + productType + '\'' +
", deviceType='" + deviceType + '\'' +
", sn='" + sn + '\'' +
", activeDate='" + activeDate + '\'' +
", plateNum='" + plateNum + '\'' +
", vehicleTypeName='" + vehicleTypeName + '\'' +
", shopName='" + shopName + '\'' +
", fixTime='" + fixTime + '\'' +
", sumPremium=" + sumPremium +
'}';
}
}
package com.glsx.ordercenter.dto.req;
import java.io.Serializable;
import java.math.BigDecimal;
public class TspUpdateReq implements Serializable {
//保险公司名称(华安:sinosafe,富德:sinofd,阳光:sinosig,人保:picc)
......@@ -53,7 +52,7 @@ public class TspUpdateReq implements Serializable {
private String vehicleSeriesName;
private String vehicleTypeName;
//车辆价格
private BigDecimal vehiclePrice;
private String vehiclePrice;
//车辆使用性质(1非营运车;2营运车.华安只支持非运营)
private String vehicleUsage;
private String shopName;
......@@ -61,16 +60,8 @@ public class TspUpdateReq implements Serializable {
//保费
private Long sumPremium;
public Long getSumPremium() {
return this.sumPremium;
}
public void setSumPremium(Long sumPremium) {
this.sumPremium = sumPremium;
}
public String getInsuranceCompany() {
return this.insuranceCompany;
return insuranceCompany;
}
public void setInsuranceCompany(String insuranceCompany) {
......@@ -78,7 +69,7 @@ public class TspUpdateReq implements Serializable {
}
public String getFullInsuranceNo() {
return this.fullInsuranceNo;
return fullInsuranceNo;
}
public void setFullInsuranceNo(String fullInsuranceNo) {
......@@ -86,7 +77,7 @@ public class TspUpdateReq implements Serializable {
}
public String getSeqNo() {
return this.seqNo;
return seqNo;
}
public void setSeqNo(String seqNo) {
......@@ -94,7 +85,7 @@ public class TspUpdateReq implements Serializable {
}
public String getCompensationName() {
return this.compensationName;
return compensationName;
}
public void setCompensationName(String compensationName) {
......@@ -102,7 +93,7 @@ public class TspUpdateReq implements Serializable {
}
public String getAddress() {
return this.address;
return address;
}
public void setAddress(String address) {
......@@ -110,7 +101,7 @@ public class TspUpdateReq implements Serializable {
}
public String getCustomerType() {
return this.customerType;
return customerType;
}
public void setCustomerType(String customerType) {
......@@ -118,7 +109,7 @@ public class TspUpdateReq implements Serializable {
}
public String getCardType() {
return this.cardType;
return cardType;
}
public void setCardType(String cardType) {
......@@ -126,15 +117,23 @@ public class TspUpdateReq implements Serializable {
}
public String getBirthday() {
return this.birthday;
return birthday;
}
public void setBirthday(String birthday) {
this.birthday = birthday;
}
public String getSex() {
return sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getCardNo() {
return this.cardNo;
return cardNo;
}
public void setCardNo(String cardNo) {
......@@ -142,23 +141,15 @@ public class TspUpdateReq implements Serializable {
}
public String getName() {
return this.name;
return name;
}
public void setName(String name) {
this.name = name;
}
public String getSex() {
return this.sex;
}
public void setSex(String sex) {
this.sex = sex;
}
public String getPhone() {
return this.phone;
return phone;
}
public void setPhone(String phone) {
......@@ -166,7 +157,7 @@ public class TspUpdateReq implements Serializable {
}
public String getEffectDate() {
return this.effectDate;
return effectDate;
}
public void setEffectDate(String effectDate) {
......@@ -174,7 +165,7 @@ public class TspUpdateReq implements Serializable {
}
public String getInsurePeriod() {
return this.insurePeriod;
return insurePeriod;
}
public void setInsurePeriod(String insurePeriod) {
......@@ -182,7 +173,7 @@ public class TspUpdateReq implements Serializable {
}
public String getInstallPoint() {
return this.installPoint;
return installPoint;
}
public void setInstallPoint(String installPoint) {
......@@ -190,7 +181,7 @@ public class TspUpdateReq implements Serializable {
}
public String getInstallPerson() {
return this.installPerson;
return installPerson;
}
public void setInstallPerson(String installPerson) {
......@@ -198,7 +189,7 @@ public class TspUpdateReq implements Serializable {
}
public String getSumAmount() {
return this.sumAmount;
return sumAmount;
}
public void setSumAmount(String sumAmount) {
......@@ -206,7 +197,7 @@ public class TspUpdateReq implements Serializable {
}
public String getSpid() {
return this.spid;
return spid;
}
public void setSpid(String spid) {
......@@ -214,7 +205,7 @@ public class TspUpdateReq implements Serializable {
}
public String getSpecialContent() {
return this.specialContent;
return specialContent;
}
public void setSpecialContent(String specialContent) {
......@@ -222,7 +213,7 @@ public class TspUpdateReq implements Serializable {
}
public String getStandNo() {
return this.standNo;
return standNo;
}
public void setStandNo(String standNo) {
......@@ -230,7 +221,7 @@ public class TspUpdateReq implements Serializable {
}
public String getPlateNum() {
return this.plateNum;
return plateNum;
}
public void setPlateNum(String plateNum) {
......@@ -238,7 +229,7 @@ public class TspUpdateReq implements Serializable {
}
public String getEngine() {
return this.engine;
return engine;
}
public void setEngine(String engine) {
......@@ -246,7 +237,7 @@ public class TspUpdateReq implements Serializable {
}
public String getBuyType() {
return this.buyType;
return buyType;
}
public void setBuyType(String buyType) {
......@@ -254,7 +245,7 @@ public class TspUpdateReq implements Serializable {
}
public String getVehicleColor() {
return this.vehicleColor;
return vehicleColor;
}
public void setVehicleColor(String vehicleColor) {
......@@ -262,7 +253,7 @@ public class TspUpdateReq implements Serializable {
}
public String getVehicleBrand() {
return this.vehicleBrand;
return vehicleBrand;
}
public void setVehicleBrand(String vehicleBrand) {
......@@ -270,7 +261,7 @@ public class TspUpdateReq implements Serializable {
}
public String getVehicleChildsBrandName() {
return this.vehicleChildsBrandName;
return vehicleChildsBrandName;
}
public void setVehicleChildsBrandName(String vehicleChildsBrandName) {
......@@ -278,7 +269,7 @@ public class TspUpdateReq implements Serializable {
}
public String getVehicleSeriesName() {
return this.vehicleSeriesName;
return vehicleSeriesName;
}
public void setVehicleSeriesName(String vehicleSeriesName) {
......@@ -286,23 +277,23 @@ public class TspUpdateReq implements Serializable {
}
public String getVehicleTypeName() {
return this.vehicleTypeName;
return vehicleTypeName;
}
public void setVehicleTypeName(String vehicleTypeName) {
this.vehicleTypeName = vehicleTypeName;
}
public BigDecimal getVehiclePrice() {
return this.vehiclePrice;
public String getVehiclePrice() {
return vehiclePrice;
}
public void setVehiclePrice(BigDecimal vehiclePrice) {
public void setVehiclePrice(String vehiclePrice) {
this.vehiclePrice = vehiclePrice;
}
public String getVehicleUsage() {
return this.vehicleUsage;
return vehicleUsage;
}
public void setVehicleUsage(String vehicleUsage) {
......@@ -310,7 +301,7 @@ public class TspUpdateReq implements Serializable {
}
public String getShopName() {
return this.shopName;
return shopName;
}
public void setShopName(String shopName) {
......@@ -318,10 +309,57 @@ public class TspUpdateReq implements Serializable {
}
public String getFixTime() {
return this.fixTime;
return fixTime;
}
public void setFixTime(String fixTime) {
this.fixTime = fixTime;
}
public Long getSumPremium() {
return sumPremium;
}
public void setSumPremium(Long sumPremium) {
this.sumPremium = sumPremium;
}
@Override
public String toString() {
return "TspUpdateReq{" +
"insuranceCompany='" + insuranceCompany + '\'' +
", fullInsuranceNo='" + fullInsuranceNo + '\'' +
", seqNo='" + seqNo + '\'' +
", compensationName='" + compensationName + '\'' +
", address='" + address + '\'' +
", customerType='" + customerType + '\'' +
", cardType='" + cardType + '\'' +
", birthday='" + birthday + '\'' +
", sex='" + sex + '\'' +
", cardNo='" + cardNo + '\'' +
", name='" + name + '\'' +
", phone='" + phone + '\'' +
", effectDate='" + effectDate + '\'' +
", insurePeriod='" + insurePeriod + '\'' +
", installPoint='" + installPoint + '\'' +
", installPerson='" + installPerson + '\'' +
", sumAmount='" + sumAmount + '\'' +
", spid='" + spid + '\'' +
", specialContent='" + specialContent + '\'' +
", standNo='" + standNo + '\'' +
", plateNum='" + plateNum + '\'' +
", engine='" + engine + '\'' +
", buyType='" + buyType + '\'' +
", vehicleColor='" + vehicleColor + '\'' +
", vehicleBrand='" + vehicleBrand + '\'' +
", vehicleChildsBrandName='" + vehicleChildsBrandName + '\'' +
", vehicleSeriesName='" + vehicleSeriesName + '\'' +
", vehicleTypeName='" + vehicleTypeName + '\'' +
", vehiclePrice='" + vehiclePrice + '\'' +
", vehicleUsage='" + vehicleUsage + '\'' +
", shopName='" + shopName + '\'' +
", fixTime='" + fixTime + '\'' +
", sumPremium=" + sumPremium +
'}';
}
}
package com.glsx.ordercenter.thread;
import java.math.RoundingMode;
import java.util.Date;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.Semaphore;
import com.alibaba.fastjson.JSON;
import com.glsx.common.utils.DateUtil;
import com.glsx.common.utils.PropertiesUtil;
......@@ -19,11 +24,6 @@ import com.glsx.ordercenter.utils.TspSignUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Date;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.Semaphore;
/**
* @author think.wang
* @version 1.0.0
......@@ -147,7 +147,8 @@ public class TspSaveInsuranceDataTask implements Runnable{
saveData.setInsurePeriod(String.valueOf(policy.getInsurancePeriod() * 12)); //保单期限
saveData.setInstallPoint("");
saveData.setInstallPerson("");
saveData.setSumAmount(String.valueOf(policy.getVehicleInvoiceMoney())); //保额 必填
saveData.setSumAmount(policy.getVehicleInvoiceMoney()
.setScale(0, RoundingMode.FLOOR).toPlainString()); //保额 必填
saveData.setSumPremium(0L); //保费
saveData.setSpid("");
saveData.setSpecialContent("");
......@@ -165,7 +166,8 @@ public class TspSaveInsuranceDataTask implements Runnable{
saveData.setVehicleChildsBrandName("其他");
saveData.setVehicleSeriesName("其他");
saveData.setVehicleTypeName("");
saveData.setVehiclePrice(policy.getVehicleInvoiceMoney()); //车辆价格
saveData.setVehiclePrice(policy.getVehicleInvoiceMoney()
.setScale(0, RoundingMode.FLOOR).toPlainString()); //车辆价格
saveData.setVehicleUsage("1"); //默认都是非运营车
saveData.setShopName("");
saveData.setFixTime("");
......
package com.glsx.ordercenter.thread;
import java.math.RoundingMode;
import java.util.Date;
import java.util.Map;
import java.util.concurrent.Semaphore;
import com.alibaba.fastjson.JSON;
import com.glsx.common.utils.DateUtil;
import com.glsx.common.utils.PropertiesUtil;
......@@ -16,10 +20,6 @@ import com.glsx.ordercenter.utils.TspSignUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Date;
import java.util.Map;
import java.util.concurrent.Semaphore;
/**
* @author think.wang
* @version 1.0.0
......@@ -129,7 +129,8 @@ public class TspUpdateInsuranceDataTask implements Runnable{
updateData.setInsurePeriod(String.valueOf(policy.getInsurancePeriod() * 12)); //保单期限
updateData.setInstallPoint("");
updateData.setInstallPerson("");
updateData.setSumAmount(String.valueOf(policy.getVehicleInvoiceMoney())); //保额 必填
updateData.setSumAmount(policy.getVehicleInvoiceMoney()
.setScale(0, RoundingMode.FLOOR).toPlainString()); //保额 必填
updateData.setSpid("");
updateData.setSpecialContent("");
updateData.setStandNo(policy.getVin());
......@@ -141,7 +142,8 @@ public class TspUpdateInsuranceDataTask implements Runnable{
updateData.setVehicleChildsBrandName("其他");
updateData.setVehicleSeriesName("其他");
updateData.setVehicleTypeName("");
updateData.setVehiclePrice(policy.getVehicleInvoiceMoney()); //车辆价格
updateData.setVehiclePrice(policy.getVehicleInvoiceMoney()
.setScale(0, RoundingMode.FLOOR).toPlainString()); //车辆价格
updateData.setVehicleUsage("1"); //默认都是非运营车
updateData.setShopName("");
updateData.setFixTime("");
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!