Commit 6304a941 by wubh

包活干V1.9.0-修改邮件内容和保单PDF返回格式

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@27178 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 6413e627
......@@ -3,6 +3,7 @@ package com.glsx.ordercenter.controller;
import javax.servlet.http.HttpServletRequest;
import javax.validation.groups.Default;
import java.util.Map;
import com.glsx.common.annotation.AuthCheck;
import com.glsx.common.constants.ResultCodeEnum;
import com.glsx.common.constants.ResultObject;
import com.glsx.common.pojo.PagedResp;
......@@ -59,7 +60,7 @@ public class InsuranceController extends BaseController {
* @param insuranceReq 请求体
* @return 保单详情
*/
//@AuthCheck
@AuthCheck
@RequestMapping(value = "/detail", method = {RequestMethod.POST, RequestMethod.GET})
public ResultObject detail(InsuranceReq insuranceReq) {
super.logInfo("保单详情查询-参数", insuranceReq);
......@@ -78,14 +79,14 @@ public class InsuranceController extends BaseController {
*
* @param insuranceReq 请求体
*/
//@AuthCheck
@AuthCheck
@RequestMapping(value = "/download", method = {RequestMethod.POST, RequestMethod.GET})
public ResultObject download(InsuranceReq insuranceReq) {
super.logInfo("下载保单-参数", insuranceReq);
//super.mergeRequestParams(insuranceReq, InsuranceReq.class);
InsuranceResp insuranceResp = this.insuranceService.download(insuranceReq);
ResultObject resultObject = super.webOk(insuranceResp);
ResultObject resultObject = super.webOk(insuranceResp.getInsurancePdf());
super.logInfo("下载保单-结果", resultObject);
......@@ -98,7 +99,7 @@ public class InsuranceController extends BaseController {
* @param insuranceReq 请求体
* @return 退保结果
*/
//@AuthCheck
@AuthCheck
@RequestMapping(value = "/refund", method = {RequestMethod.POST, RequestMethod.GET})
public ResultObject refund(InsuranceReq insuranceReq) {
super.logInfo("退保-参数", insuranceReq);
......@@ -118,7 +119,7 @@ public class InsuranceController extends BaseController {
* @param id 保险id
* @return
*/
//@AuthCheck
@AuthCheck
@RequestMapping(value = "/insure", method = {RequestMethod.POST, RequestMethod.GET})
public ResultObject insure(HttpServletRequest request, @RequestParam(value = "id") Integer id) {
if (id <= 0) {
......@@ -135,7 +136,7 @@ public class InsuranceController extends BaseController {
* @param insuranceReq 请求体
* @return
*/
//@AuthCheck
@AuthCheck
@RequestMapping(value = "/reinsured", method = {RequestMethod.POST, RequestMethod.GET})
public ResultObject reinsured(HttpServletRequest request, @Validated(value = {Default.class}) SysInsuranceReq insuranceReq,
BindingResult bindingResult) {
......@@ -155,7 +156,7 @@ public class InsuranceController extends BaseController {
* @param insuranceReq 请求体
* @return
*/
//@AuthCheck
@AuthCheck
@RequestMapping(value = "/relaunch", method = {RequestMethod.POST, RequestMethod.GET})
public ResultObject relaunch(HttpServletRequest request, @Validated(value = {Default.class, GroupA.class}) SysInsuranceReq insuranceReq,
BindingResult bindingResult) {
......
......@@ -267,7 +267,12 @@ public class OraInsuranceServiceImpl extends BaseOrderService implements OraInsu
" <td>" + "保险商品:" + "</td>" +
//" <td>" + InsuranceCommodity.getText(policy.getInsuranceCommodity()) + "</td>" +
" <td>" + InsuranceCommodity.getText(
Integer.parseInt(updateReq.getInsuranceCommodity()))+ "</td>" +
Integer.parseInt(updateReq.getInsuranceCommodity())) + "</td>" +
"</tr>" +
"<tr>" +
" <td>" + "保单类型:" + "</td>" +
//" <td>" + InsuranceCommodity.getText(policy.getInsuranceCommodity()) + "</td>" +
" <td>" + "驾宝无忧" + "</td>" +
"</tr>" +
"<tr>" +
" <td>" + "盗抢险额:" + "</td>" +
......
......@@ -466,7 +466,7 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS
*/
@Transactional
public InsuranceResp refundManually(SysInsurancePolicy insurancePolicy) {
super.logInfo("更新保单记录的投保状态");
super.logInfo("开始更新保单记录");
InsuranceResp insuranceResp = new InsuranceResp();
ServletRequestAttributes attributes =
......@@ -484,7 +484,7 @@ public class InsuranceServiceImpl extends BaseOrderService implements InsuranceS
this.insuranceMapper.updateByPrimaryKey(insurancePolicy);
} catch (RuntimeException e) {
super.logError("更新保险表时出错", e);
super.logError("更新保单表时出错", e);
throw SysException.create(
ResultCodeEnum.INSURANCE_UPDATE_ERROR.getCode(),
ResultCodeEnum.INSURANCE_UPDATE_ERROR.getMsg());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!