背景 标志位 cJdgPzbz =='0' 时解析失败
思路
将所有字符串数字处理
转化 Double 后进行 === 运算
导致 值相等 数据类型不相等 String === Double
返回 false
// 来之百度
return s.length() == 0 ? 0.0D : Double.parseDouble(s);
正确答案
<if test="cJdgPzbz != null and cJdgPzbz != '' and cJdgPzbz =='0'.toString()">
and o.N_JDGH is null
</if>
<if test="cJdgPzbz != null and cJdgPzbz != '' and cJdgPzbz =='1'.toString()">
and o.N_JDGH is not null
</if>
https://blog.csdn.net/u010398771/article/details/86141404 原理