Commit 709c178b by wangnb

包活干V1.9.0保单代码调整--think.wang

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27015 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 1d8d0f2c
......@@ -37,7 +37,7 @@ public class OraInsuranceController extends BaseController {
private String appSecret;
@Autowired
private OraInsuranceService oraInsuranceService;
private OraInsuranceService insuranceService;
@RequestMapping(value = "/save", method = RequestMethod.POST)
public OraResultObject save(@Validated @RequestBody OraInsuranceUpdateReq saveData,
......@@ -47,7 +47,7 @@ public class OraInsuranceController extends BaseController {
try {
OraSignUtil.verifyRequest(appKey, appSecret, saveData);
super.checkRequestParam(bindingResult);
resultObject = oraInsuranceService.save(saveData);
resultObject = insuranceService.save(saveData);
} catch (SysException e) {
super.logError("长城欧拉分派保单-异常", e);
ResultObject result = e.getResultEntity();
......@@ -68,7 +68,7 @@ public class OraInsuranceController extends BaseController {
try {
OraSignUtil.verifyRequest(appKey, appSecret, updateReq);
super.checkRequestParam(bindingResult);
resultObject = oraInsuranceService.update(updateReq);
resultObject = insuranceService.update(updateReq);
} catch (SysException e) {
super.logError("长城欧拉修改保单-异常", e);
ResultObject result = e.getResultEntity();
......@@ -90,7 +90,7 @@ public class OraInsuranceController extends BaseController {
try {
OraSignUtil.verifyRequest(appKey, appSecret, refundReq);
super.checkRequestParam(bindingResult);
resultObject = oraInsuranceService.refund(refundReq);
resultObject = insuranceService.refund(refundReq);
} catch (SysException e) {
super.logError("长城欧拉退保-异常", e);
ResultObject result = e.getResultEntity();
......
......@@ -64,6 +64,12 @@ public class OraInsuranceUpdateReq implements Serializable {
* 车主地址
*/
private String vehicleOwnerAddress;
/**
* 证件类型(1.身份证 2.统一社会信用代码 3.其他)
*/
private String idCardType;
/**
* 证件号码
*/
......@@ -200,6 +206,14 @@ public class OraInsuranceUpdateReq implements Serializable {
this.vehicleOwnerAddress = vehicleOwnerAddress;
}
public String getIdCardType() {
return idCardType;
}
public void setIdCardType(String idCardType) {
this.idCardType = idCardType;
}
public String getIdCardNum() {
return this.idCardNum;
}
......
......@@ -159,7 +159,6 @@
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
<!--@mbg.generated-->
select
<include refid="Base_Column_List"/>
from sys_insurance_policy
......@@ -167,7 +166,6 @@
where sys_insurance_policy.id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
<!--@mbg.generated-->
delete
from sys_insurance_policy
where id = #{id,jdbcType=INTEGER}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!