This commit is contained in:
linfso 2024-05-12 23:32:50 +08:00
parent 54a1f9ba78
commit 0fdd18f9ad

View File

@ -40,9 +40,7 @@
<include refid="selectEmisNotCalcAgingVo"/>
<where>
<if test="id != null "> and id = #{id}</if>
<if test="country != null and country != ''"> and country like concat('%', #{country}, '%')</if>
<if test="countryName != null and countryName != ''"> and country_name like concat('%', #{countryName}, '%')</if>
<if test="noCalcDay != null "> and no_calc_day = #{noCalcDay}</if>
<if test="status != null "> and status = #{status}</if>
<if test="remark != null and remark != ''"> and remark like concat('%', #{remark}, '%')</if>
<if test="tenantId != null and tenantId != ''"> and tenant_id like concat('%', #{tenantId}, '%')</if>
@ -53,6 +51,18 @@
<if test="updateTime != null "> and update_time = #{updateTime}</if>
<if test="createSite != null and createSite != ''"> and create_site like concat('%', #{createSite}, '%')</if>
<if test="updateSite != null and updateSite != ''"> and update_site like concat('%', #{updateSite}, '%')</if>
<!-- <if test="noCalcDay != null "> and no_calc_day = #{noCalcDay}</if>-->
<if test="country != null and country != ''"> and (country = #{country} or country='-1')</if>
<if test="params.beginNoCalcDay != null and params.beginNoCalcDay != ''">
and no_calc_day <![CDATA[ >= ]]> #{params.beginNoCalcDay}
</if>
<if test="params.endNoCalcDay != null and params.endNoCalcDay != ''">
and no_calc_day <![CDATA[ <= ]]> #{params.endNoCalcDay}
</if>
</where>
order by create_time desc
</select>