Commit 996f9053 authored by 李灿灿's avatar 李灿灿

fix:保单维护时间区间查询bug修复

parent e9bc2afd
......@@ -35,11 +35,11 @@
<if test="param.policyNo != null and param.policyNo.trim() != ''">
and POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
<if test="param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''">
AND POLICY_END <![CDATA[ >= ]]> #{param.policyStart}
<if test="param.policyStart != null and param.policyStart.trim() != ''">
AND POLICY_START <![CDATA[ >= ]]> #{param.policyStart}
</if>
<if test="param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''">
AND POLICY_START <![CDATA[ <= ]]> #{param.policyEnd}
<if test="param.policyEnd != null and param.policyEnd.trim() != ''">
AND POLICY_END <![CDATA[ <= ]]> #{param.policyEnd}
</if>
<if test="param.insuranceCompanyName != null and param.insuranceCompanyName.trim() != ''">
and INSURANCE_COMPANY_NAME like concat('%',replace(replace(#{param.insuranceCompanyName},'_','\_'),'%','\%'),'%')
......@@ -61,11 +61,11 @@
<if test="param.policyNo != null and param.policyNo.trim() != ''">
and POLICY_NO like concat('%',replace(replace(#{param.policyNo},'_','\_'),'%','\%'),'%')
</if>
<if test="param.policyStart != null and param.policyStart.trim() != '' and param.policyEnd == null and param.policyEnd.trim() == ''">
AND POLICY_END <![CDATA[ >= ]]> #{param.policyStart}
<if test="param.policyStart != null and param.policyStart.trim() != ''">
AND POLICY_START <![CDATA[ >= ]]> #{param.policyStart}
</if>
<if test="param.policyEnd != null and param.policyEnd.trim() != '' and param.policyStart == null and param.policyStart.trim() == ''">
AND POLICY_START <![CDATA[ <= ]]> #{param.policyEnd}
<if test="param.policyEnd != null and param.policyEnd.trim() != ''">
AND POLICY_END <![CDATA[ <= ]]> #{param.policyEnd}
</if>
<if test="param.insuranceCompanyName != null and param.insuranceCompanyName.trim() != ''">
and INSURANCE_COMPANY_NAME like concat('%',replace(replace(#{param.insuranceCompanyName},'_','\_'),'%','\%'),'%')
......
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