|
@@ -1,5 +1,7 @@
|
|
|
package com.ydtech.modules.order.entity;
|
|
package com.ydtech.modules.order.entity;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
|
|
+import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
@@ -132,6 +134,13 @@ public class InsAreaCompanyAccidentalDriving implements Serializable {
|
|
|
this.setRideRiskCode(jsonObject.getString("productname"));
|
|
this.setRideRiskCode(jsonObject.getString("productname"));
|
|
|
this.setQuantity(jsonObject.getInteger("num"));
|
|
this.setQuantity(jsonObject.getInteger("num"));
|
|
|
this.setCompanyId(t.getCompanyId());
|
|
this.setCompanyId(t.getCompanyId());
|
|
|
|
|
+ }else if(t.getCompanyId().equals("BPIC1000000")){
|
|
|
|
|
+ // 渤海
|
|
|
|
|
+ JSONObject jsonObject = JSONArray.parseArray(JSON.toJSONString(t.getAccidentalDrivingVo())).getJSONObject(0);
|
|
|
|
|
+ this.setRideRiskCode(jsonObject.getString("comboCode"));
|
|
|
|
|
+ this.setRideRiskCode(jsonObject.getString("comboName"));
|
|
|
|
|
+ this.setQuantity(jsonObject.getInteger("count"));
|
|
|
|
|
+ this.setCompanyId(t.getCompanyId());
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|