执行单添加发牌状态与日期

This commit is contained in:
赵辉
2026-06-04 19:56:30 +08:00
parent c6d4b9c4b5
commit 925b962790
@@ -42,6 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="createStartTime != null">
and eo.CREATE_TIME &gt;= #{createStartTime}
</if>
<if test="invoiceStatus != null">
and eo.INVOICE_Status = #{invoiceStatus}
</if>
<if test="createEndTime != null">
and eo.CREATE_TIME &lt;= #{createEndTime} + 1 - 1/86400
</if>
@@ -55,11 +58,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and eo.GOODS_NUMBER like concat('%', #{goodsNumber}, '%')
</if>
<if test="invoiceStartTime != null">
and eo.INVOICE_DATE &gt;= #{invoiceStartTime}
and eo.INVOICE_DATE >= #{invoiceStartTime,jdbcType=DATE}
</if>
<if test="invoiceEndTime != null">
and eo.INVOICE_DATE &lt;= #{invoiceEndTime}
and eo.INVOICE_DATE <![CDATA[ < ]]> DATEADD(DAY, 1, #{invoiceEndTime,jdbcType=DATE})
</if>
<!-- <if test="invoiceStartTime != null">-->
<!-- and eo.INVOICE_DATE >= #{invoiceStartTime}-->
<!-- </if>-->
<!-- <if test="invoiceEndTime != null">-->
<!-- &#45;&#45; and eo.INVOICE_DATE &lt;= #{invoiceEndTime}-->
<!-- and eo.INVOICE_DATE <![CDATA[ < ]]> DATEADD(DAY, 1, #{invoiceEndTime})-->
<!-- </if>-->
<if test="businessUnit != null and businessUnit != ''">
and eo.BUSINESS_UNIT like concat('%', #{businessUnit}, '%')
</if>
@@ -90,9 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="organizationName != null and organizationName != ''">
and eo.ORGANIZATION_NAME like concat('%', #{organizationName}, '%')
</if>
<if test="topOrganizationId != null ">
and eo.TOP_ORGANIZATION_ID = #{topOrganizationId}
</if>
</where>
</sql>