Commit f1ad9256 by wubh

包活干V1.9.0-修改:优化退保流程、修改TSP投保接口调用的问题

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27184 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent a32d538f
......@@ -349,9 +349,11 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS
// 如果超过7天则手动退保,只修改状态
// 如果7天内退保则自动调用TSP接口
result = this.hasOutdated(insurancePolicy)
? this.refundManually(insurancePolicy)
: this.refundAutomatically(insurancePolicy);
if (!this.hasOutdated(insurancePolicy)) {
this.refundAutomatically(insurancePolicy);
}
result = this.refundManually(insurancePolicy);
return result;
}
......
......@@ -135,9 +135,9 @@ public class TspSaveInsuranceDataTask implements Runnable{
saveData.setCompensationName(policy.getTastingUnit()); //第一受益人
String address = policy.getVehicleOwnerAddress();
saveData.setAddress(StringUtils.isEmpty(address) ? "暂无" : address); //车主地址 必填
String customerType = InsuranceCustomerType.INDIVIDUAL.getType().equals(policy.getCustomerType()) ? "00" : "02";
String customerType = InsuranceCustomerType.INDIVIDUAL.getType().byteValue() == policy.getCustomerType() ? "00" : "02";
saveData.setCustomerType(customerType);
String cardType = InsuranceCardType.CREDIT_CODE.getType().equals(policy.getIdCardType()) ? "02" : "00"; //其他和身份证都传身份证类型
String cardType = InsuranceCardType.CREDIT_CODE.getType().byteValue() == policy.getIdCardType() ? "02" : "00"; //其他和身份证都传身份证类型
saveData.setCardType(cardType);
saveData.setCardNo(policy.getIdCardNum());
saveData.setBirthday(""); //填写
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!