oms页面查询条件;

This commit is contained in:
王奎兴
2026-05-18 10:26:32 +08:00
parent c539b86535
commit bb66a76762
5 changed files with 44 additions and 5 deletions
@@ -410,6 +410,12 @@
<if test="orderDate != null">
and a.ORDER_DATE = #{orderDate}
</if>
<if test="businessOrderNo != null">
and a.business_order_no = #{businessOrderNo}
</if>
<if test="issueStatus != null">
and a.issue_status = #{issueStatus}
</if>
<if test="createTimeStart != null and createTimeStart != ''">
and date_format(a.create_time,'%Y-%m-%d') &gt;= #{createTimeStart}
</if>
@@ -647,19 +653,34 @@
) as a
where 1=1
<if test="organizationId != null">
and a.organization_id = #{organizationId}
and a."organizationId" = #{organizationId}
</if>
<if test="topOrganizationId != null">
and a.top_organization_id = #{topOrganizationId}
and a."topOrganizationId" = #{topOrganizationId}
</if>
<if test="warehouseId != null">
and a.warehouse_id = #{warehouseId}
and a."warehouseId" = #{warehouseId}
</if>
<if test="shipperId != null">
and a.shipper_id = #{shipperId}
and a."shipperId" = #{shipperId}
</if>
<if test="customerId != null">
and a.customer_id = #{customerId}
and a."customerId" = #{customerId}
</if>
<if test="inOrOut != null">
and a."inOrOut" = #{inOrOut}
</if>
<if test="issueStatus != null">
and a."issueStatus" = #{issueStatus}
</if>
<if test="orderNumber != null">
and a."orderNumber" = #{orderNumber}
</if>
<if test="createTimeStart != null and createTimeStart != ''">
and date_format(a."createTime",'%Y-%m-%d') &gt;= #{createTimeStart}
</if>
<if test="createTimeEnd != null and createTimeEnd != ''">
and date_format(a."createTime",'%Y-%m-%d') &lt;= #{createTimeEnd}
</if>
order by a."createTime" desc
</select>