保险业务
This commit is contained in:
parent
d5c1dda703
commit
e398ad7e25
|
|
@ -1378,14 +1378,13 @@ public class OrderMasterController extends BaseController {
|
||||||
orderDetails.forEach(orderDetail -> {
|
orderDetails.forEach(orderDetail -> {
|
||||||
orderDetail.setOrderStatus(orderMaster.getOrderStatus());
|
orderDetail.setOrderStatus(orderMaster.getOrderStatus());
|
||||||
orderDetailService.updateOrderDetail(orderDetail);
|
orderDetailService.updateOrderDetail(orderDetail);
|
||||||
|
});
|
||||||
|
}
|
||||||
// 下单
|
// 下单
|
||||||
if(OrderStatus.PLAIN.code() == orderMaster.getOrderStatus()){
|
if(OrderStatus.PLAIN.code() == orderMaster.getOrderStatus()){
|
||||||
OrderMaster model = orderMasterService.selectById(orderMaster.getId());
|
OrderMaster model = orderMasterService.selectById(orderMaster.getId());
|
||||||
insuranceService.orderInsurance(model.getCode());
|
insuranceService.orderInsurance(model.getCode());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
|
||||||
}
|
|
||||||
return AjaxResult.success("");
|
return AjaxResult.success("");
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
||||||
|
|
@ -19,9 +19,9 @@ public class InsuranceOrderReq {
|
||||||
|
|
||||||
private String orderStatus = "1";
|
private String orderStatus = "1";
|
||||||
|
|
||||||
private Date orderStartat;
|
private String orderStartat;
|
||||||
|
|
||||||
private Date orderEndat;
|
private String orderEndat;
|
||||||
|
|
||||||
private String customerAddress;
|
private String customerAddress;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
package com.ghy.web.service.impl;
|
package com.ghy.web.service.impl;
|
||||||
|
|
||||||
import cn.hutool.core.date.DateField;
|
import cn.hutool.core.date.DateField;
|
||||||
|
import cn.hutool.core.date.DatePattern;
|
||||||
import cn.hutool.core.date.DateUtil;
|
import cn.hutool.core.date.DateUtil;
|
||||||
import cn.hutool.http.HttpUtil;
|
import cn.hutool.http.HttpUtil;
|
||||||
import cn.hutool.json.JSONUtil;
|
import cn.hutool.json.JSONUtil;
|
||||||
|
|
@ -51,8 +52,8 @@ public class InsuranceServiceImpl implements InsuranceService {
|
||||||
WorkerCertification workerCertification = workerCertificationService.selectByWorkerId(master.getWorkerId());
|
WorkerCertification workerCertification = workerCertificationService.selectByWorkerId(master.getWorkerId());
|
||||||
req.setWorkerID(workerCertification.getIdCardNum());
|
req.setWorkerID(workerCertification.getIdCardNum());
|
||||||
req.setWorkName(workerCertification.getLegalPersionName());
|
req.setWorkName(workerCertification.getLegalPersionName());
|
||||||
req.setOrderStartat(DateUtil.offset(new Date(), DateField.SECOND, 30));
|
req.setOrderStartat(DateUtil.format(DateUtil.offset(new Date(), DateField.SECOND, 30), DatePattern.NORM_DATETIME_PATTERN));
|
||||||
req.setOrderEndat(DateUtil.offset(new Date(), DateField.DAY_OF_YEAR, 30));
|
req.setOrderEndat(DateUtil.format(DateUtil.offset(new Date(), DateField.DAY_OF_YEAR, 30),DatePattern.NORM_DATETIME_PATTERN));
|
||||||
log.info("调用保险请求url:{},内容:{}", baseUrl+"/platInterface/order", JSONUtil.toJsonStr(req));
|
log.info("调用保险请求url:{},内容:{}", baseUrl+"/platInterface/order", JSONUtil.toJsonStr(req));
|
||||||
String result = HttpUtil.post(baseUrl+"/platInterface/order", JSONUtil.toJsonStr(req));
|
String result = HttpUtil.post(baseUrl+"/platInterface/order", JSONUtil.toJsonStr(req));
|
||||||
log.info("调用保险返回内容:{}", result);
|
log.info("调用保险返回内容:{}", result);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue