|
@@ -342,18 +342,20 @@ public class UnifyOrderManager {
|
|
|
// 报价后更新订单
|
|
// 报价后更新订单
|
|
|
insOrdersService.orderAfterUpdateQuote(ordersNo, quoteResultsVo);
|
|
insOrdersService.orderAfterUpdateQuote(ordersNo, quoteResultsVo);
|
|
|
|
|
|
|
|
- quoteResultsVo.getKindInfoVo().forEach(item->{
|
|
|
|
|
- if(Objects.nonNull(item.getPlatformKindCode())) {
|
|
|
|
|
- if (item.getPlatformKindCode().equals("TY1") || item.getPlatformKindCode().equals("TY2") || item.getPlatformKindCode().equals("TY3") || item.getPlatformKindCode().equals("TY4")) {
|
|
|
|
|
- item.setAmount(String.valueOf((int) Double.parseDouble(item.getAmount())) + "次");
|
|
|
|
|
|
|
+ if (quoteResultsVo.getKindInfoVo() != null) {
|
|
|
|
|
+ quoteResultsVo.getKindInfoVo().forEach(item -> {
|
|
|
|
|
+ if (Objects.nonNull(item.getPlatformKindCode())) {
|
|
|
|
|
+ if (item.getPlatformKindCode().equals("TY1") || item.getPlatformKindCode().equals("TY2") || item.getPlatformKindCode().equals("TY3") || item.getPlatformKindCode().equals("TY4")) {
|
|
|
|
|
+ item.setAmount((int) Double.parseDouble(item.getAmount()) + "次");
|
|
|
|
|
+ }
|
|
|
|
|
+ // 人保是用kindcode 传的 需要处理一下
|
|
|
|
|
+ } else if (Objects.nonNull(item.getKindCode())) {
|
|
|
|
|
+ if (item.getKindCode().equals("TY1") || item.getKindCode().equals("TY2") || item.getKindCode().equals("TY3") || item.getKindCode().equals("TY4")) {
|
|
|
|
|
+ item.setAmount((int) Double.parseDouble(item.getAmount()) + "次");
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
- // 人保是用kindcode 传的 需要处理一下
|
|
|
|
|
- }else if(Objects.nonNull(item.getKindCode())){
|
|
|
|
|
- if (item.getKindCode().equals("TY1") || item.getKindCode().equals("TY2") || item.getKindCode().equals("TY3") || item.getKindCode().equals("TY4")) {
|
|
|
|
|
- item.setAmount(String.valueOf((int) Double.parseDouble(item.getAmount())) + "次");
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
log.info("报价返回:{}", JSON.toJSONString(quoteResultsVo));
|
|
log.info("报价返回:{}", JSON.toJSONString(quoteResultsVo));
|
|
|
|
|
|