出库业务单添加查询条件;
This commit is contained in:
+36
-15
@@ -144,9 +144,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="outOrderId != null ">
|
||||
and a.out_order_id = #{outOrderId}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="tmsOrderNumber != null and tmsOrderNumber != ''">
|
||||
and a.tms_order_number like concat('%', #{tmsOrderNumber}, '%')
|
||||
</if>
|
||||
@@ -220,9 +217,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="orderTypeCode != null and orderTypeCode != ''">
|
||||
and a.order_type_code = #{orderTypeCode}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<if test="customerId != null ">
|
||||
and a.customer_id = #{customerId}
|
||||
</if>
|
||||
@@ -292,9 +286,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="ltCheckStatus != null ">
|
||||
and a.check_status < #{ltCheckStatus}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="updateByName != null and updateByName != ''">
|
||||
and a.update_by_name like concat('%', #{updateByName}, '%')
|
||||
</if>
|
||||
@@ -307,12 +298,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="createTimeStart != null and createTimeStart != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') >= #{createTimeStart}
|
||||
</if>
|
||||
<if test="createTimeEnd != null and createTimeEnd != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeEnd}
|
||||
</if>
|
||||
<if test="auditTimeStart != null and auditTimeStart != ''">
|
||||
and date_format(a.audit_time,'%Y-%m-%d') >= #{auditTimeStart}
|
||||
</if>
|
||||
@@ -331,6 +316,42 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="pushStatus != null">
|
||||
and a.PUSH_STATUS = #{pushStatus}
|
||||
</if>
|
||||
<if test="businessNumber != null and businessNumber != ''">
|
||||
and a.BUSINESS_NUMBER = #{businessNumber}
|
||||
</if>
|
||||
<if test="businessType != null and businessType != ''">
|
||||
and a.BUSINESS_TYPE = #{businessType}
|
||||
</if>
|
||||
<if test="issueStatus != null">
|
||||
and a.ISSUE_STATUS = #{issueStatus}
|
||||
</if>
|
||||
<if test="reservationOrderSource != null">
|
||||
and a.RESERVATION_ORDER_SOURCE = #{reservationOrderSource}
|
||||
</if>
|
||||
<if test="needTransportFlag != null">
|
||||
and a.NEED_TRANSPORT_FLAG = #{needTransportFlag}
|
||||
</if>
|
||||
<if test="createByName != null and createByName != ''">
|
||||
and a.create_by_name like concat('%', #{createByName}, '%')
|
||||
</if>
|
||||
<if test="createTimeStart != null and createTimeStart != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') >= #{createTimeStart}
|
||||
</if>
|
||||
<if test="createTimeEnd != null and createTimeEnd != ''">
|
||||
and date_format(a.create_time,'%Y-%m-%d') <= #{createTimeEnd}
|
||||
</if>
|
||||
<if test="organizationId != null ">
|
||||
and a.organization_id = #{organizationId}
|
||||
</if>
|
||||
<if test="outboundDateStart != null and outboundDateStart != ''">
|
||||
and date_format(a.outbound_date,'%Y-%m-%d') >= #{outboundDateStart}
|
||||
</if>
|
||||
<if test="outboundDateEnd != null and outboundDateEnd != ''">
|
||||
and date_format(a.outbound_date,'%Y-%m-%d') <= #{outboundDateEnd}
|
||||
</if>
|
||||
<if test="orderTypeName != null and orderTypeName != ''">
|
||||
and a.order_type_name like concat('%', #{orderTypeName}, '%')
|
||||
</if>
|
||||
<!-- 出库明细:物料名称、物料编码(同一明细行同时满足;与出库明细口径一致)。关联 material_base_info 避免明细冗余名称与主档不一致时筛不到 -->
|
||||
<!-- <if test="(materialName != null and materialName != '') or (materialCode != null and materialCode != '')">-->
|
||||
<!-- and exists (-->
|
||||
|
||||
Reference in New Issue
Block a user