Commit 420719e1 by 翁国栋

8小时后台--

导入保单时,产品id对应返回
parent 97ce8c3b
...@@ -1094,6 +1094,9 @@ public class InsureContorll { ...@@ -1094,6 +1094,9 @@ public class InsureContorll {
Map returnMap = JSONObject.parseObject(data, Map.class); Map returnMap = JSONObject.parseObject(data, Map.class);
if (returnMap.get("errcode").toString().equals("suc")) { if (returnMap.get("errcode").toString().equals("suc")) {
Map dataMap = JSONObject.parseObject(JSONObject.toJSONString(returnMap.get("data")), Map.class); Map dataMap = JSONObject.parseObject(JSONObject.toJSONString(returnMap.get("data")), Map.class);
if(!dataMap.get("product_code").equals(insureProduct.getProductCodeId())){
return ResultUtil.error("产品选择错误,请检查保单号是否正确");
}
policy.setProductId(insureProduct.getId()); policy.setProductId(insureProduct.getId());
policy.setPolicyFile(dataMap.get("policy_file").toString()); policy.setPolicyFile(dataMap.get("policy_file").toString());
policy.setStatus("1"); policy.setStatus("1");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment