Commit dcbe9cd8 by ThomasAdv

查询客户详情报错修复

1 parent a345bb53
......@@ -66,7 +66,6 @@ public class WebConfig implements WebMvcConfigurer {
.excludePathPatterns("/actuator/**")
.excludePathPatterns("/api/**")
.excludePathPatterns("/sop/**")
.excludePathPatterns("/doc.html")
.excludePathPatterns(uploadProperties.getFilepath())
.excludePathPatterns("/swagger-resources/**", "/swagger-ui/**", "/v3/**", "/doc.html");
registry.addInterceptor(logInterceptor).addPathPatterns("/**");
......
......@@ -20,5 +20,7 @@ public class CarMaintenanceInsuranceBO extends CarMaintenanceInsurance {
// oneId列表
private List<String> oneIds;
private String oneId;
private CarBO car;
}
......@@ -90,14 +90,14 @@
from cdp_car_maintenance_insurance ccmi
left join cdp_customer_car_relation cccr on ccmi.car_id = cccr.car_id and cccr.org_id = ccmi.org_id and cccr.del_flag = 'N'
left join cdp_car cc on cc.org_id = cccr.org_id and cc.car_id = cccr.car_id and cc.del_flag = 'N'
left join cdp_customer cc on cccr.one_id = cc.one_id and cc.org_id = cccr.org_id and cc.del_flag = 'N'
left join cdp_customer cct on cccr.one_id = cct.one_id and cct.org_id = cccr.org_id and cct.del_flag = 'N'
<where>
ccmi.del_flag = 0
<if test="oneId != null">
and cc.one_id = #{oneId}
and cct.one_id = #{oneId}
</if>
<if test="oneIds != null and oneIds.size()>0">
and cc.one_id in
and cct.one_id in
<foreach collection="oneIds" item="item" open="(" separator="," close=")">
#{item}
</foreach>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!