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
@@ -157,6 +157,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="materialInventoryId != null ">
and a.material_inventory_id = #{materialInventoryId}
</if>
<if test="createTimeStart != null and createTimeStart != ''">
and date_format(a.create_time,'%Y-%m-%d') &gt;= #{createTimeStart}
</if>
<if test="createTimeEnd != null and createTimeEnd != ''">
and date_format(a.create_time,'%Y-%m-%d') &lt;= #{createTimeEnd}
</if>
<if test="organizationId != null ">
and a.organization_id = #{organizationId}
</if>
@@ -244,6 +244,9 @@
<if test="auditTime != null ">
and a.audit_time = #{auditTime}
</if>
<if test="issueStatus != null">
and a.issue_status = #{issueStatus}
</if>
<if test="warehouseId != null ">
and a.warehouse_id = #{warehouseId}
</if>
@@ -178,6 +178,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="checkTaskDistribution != null ">
and a.check_task_distribution = #{checkTaskDistribution}
</if>
<if test="issueStatus != null">
and a.issue_status = #{issueStatus}
</if>
<if test="auditBy != null ">
and a.audit_by = #{auditBy}
</if>
@@ -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>
@@ -277,6 +277,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="ltCheckStatus != null ">
and a.check_status &lt; #{ltCheckStatus}
</if>
<if test="businessOrderNo != null">
and a.business_order_no = #{businessOrderNo}
</if>
<if test="issueStatus != null">
and a.issue_status = #{issueStatus}
</if>
<if test="createByName != null and createByName != ''">
and a.create_by_name like concat('%', #{createByName}, '%')
</if>