|
@@ -60,9 +60,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</foreach>
|
|
|
</if>
|
|
|
<if test="supplierName != null and supplierName != ''"> AND t1.supplier_name like concat('%', #{supplierName}, '%')</if>
|
|
|
- <if test="deliveryMethod != null "> AND t1.delivery_method = #{deliveryMethod}</if>
|
|
|
+ <if test="lotCode != null "> AND t1.lot_code like concat('%', #{lotCode}, '%')</if>
|
|
|
<if test="packagingMethod != null and packagingMethod != ''"> AND t1.packaging_method = #{packagingMethod}</if>
|
|
|
- <if test="productDescription != null and productDescription != ''"> AND t1.product_description = #{productDescription}</if>
|
|
|
+ <if test="productDescription != null and productDescription != ''"> AND t1.product_description like concat('%', #{productDescription}, '%')</if>
|
|
|
<if test="technologyVersion != null and technologyVersion != ''"> AND t1.technology_version = #{technologyVersion}</if>
|
|
|
<if test="originalCarrier != null and originalCarrier != ''"> AND t1.original_carrier = #{originalCarrier}</if>
|
|
|
<if test="originalCarrierCount != null "> AND t1.original_carrier_count = #{originalCarrierCount}</if>
|
|
@@ -102,9 +102,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="getListForReceipt" parameterType="BizOutsourcedOrderDetail" resultMap="BizOutsourcedOrderDetailResult">
|
|
|
SELECT
|
|
|
t1.*
|
|
|
- FROM biz_outsourced_order_detail t1
|
|
|
+ FROM biz_outsourced_order_detail t1 left join biz_outsourced_order t2 on t1.master_id = t2.id
|
|
|
<trim prefix=" WHERE" suffix="" suffixOverrides="AND">
|
|
|
- t1.deleted = 0
|
|
|
+ t1.deleted = 0 and t2.deleted = 0 and t2.is_submit = 1
|
|
|
<if test="existingOutsourceDetailIds != null and existingOutsourceDetailIds.size > 0">
|
|
|
AND t1.id NOT IN
|
|
|
<foreach collection="existingOutsourceDetailIds" index="index" item="id" separator="," open="(" close=")">
|