Commit 9aecd52f by wubh

包活干V1.9.0-修改:新增保单时增加对证件类型的判断

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27206 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 8de9fc85
package com.glsx.ordercenter.controller.api; package com.glsx.ordercenter.controller.api;
import com.glsx.common.utils.StringUtils;
import com.glsx.ordercenter.constants.insurance.OraResultCode; import com.glsx.ordercenter.constants.insurance.OraResultCode;
import com.glsx.ordercenter.controller.BaseController; import com.glsx.ordercenter.controller.BaseController;
import com.glsx.ordercenter.dto.req.OraInsuranceRefundReq; import com.glsx.ordercenter.dto.req.OraInsuranceRefundReq;
...@@ -49,6 +50,12 @@ public class OraInsuranceController extends BaseController { ...@@ -49,6 +50,12 @@ public class OraInsuranceController extends BaseController {
try { try {
OraInsuranceUpdateReq saveData = OraSignUtil.verifyRequest(appKey, appSecret, OraInsuranceUpdateReq saveData = OraSignUtil.verifyRequest(appKey, appSecret,
paramStr, OraInsuranceUpdateReq.class); paramStr, OraInsuranceUpdateReq.class);
if (StringUtils.isBlank(saveData.getIdCardType())) {
return new OraResultObject(OraResultCode.PARAM_ERROR.getCode(),
"idCardType不能为空");
}
resultObject = insuranceService.save(saveData); resultObject = insuranceService.save(saveData);
} catch (BusinessException e) { } catch (BusinessException e) {
super.logError("/api/ora/saveInsuranceOrder接口异常", e); super.logError("/api/ora/saveInsuranceOrder接口异常", e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!