This commit is contained in:
parent
81a43c33f1
commit
c7a465cd46
|
|
@ -1259,10 +1259,10 @@
|
||||||
and bpl.lot_id = #{lotId}
|
and bpl.lot_id = #{lotId}
|
||||||
</if>
|
</if>
|
||||||
<if test="typeName != null and typeName != ''">
|
<if test="typeName != null and typeName != ''">
|
||||||
and mt2.type_name like concat('%',#{typeName},'%')
|
and mt2.type_name = #{typeName}
|
||||||
</if>
|
</if>
|
||||||
<if test="typeCode != null and typeCode != ''">
|
<if test="typeCode != null and typeCode != ''">
|
||||||
and mt.type_name like concat('%',#{typeCode},'%')
|
and mt.type_name = #{typeCode}
|
||||||
</if>
|
</if>
|
||||||
GROUP BY bai.agreement_id,
|
GROUP BY bai.agreement_id,
|
||||||
mt.type_id) AS subquery1
|
mt.type_id) AS subquery1
|
||||||
|
|
@ -1291,10 +1291,10 @@
|
||||||
and bpl.lot_id = #{lotId}
|
and bpl.lot_id = #{lotId}
|
||||||
</if>
|
</if>
|
||||||
<if test="typeName != null and typeName != ''">
|
<if test="typeName != null and typeName != ''">
|
||||||
and mt2.type_name like concat('%',#{typeName},'%')
|
and mt2.type_name = #{typeName}
|
||||||
</if>
|
</if>
|
||||||
<if test="typeCode != null and typeCode != ''">
|
<if test="typeCode != null and typeCode != ''">
|
||||||
and mt.type_name like concat('%',#{typeCode},'%')
|
and mt.type_name = #{typeCode}
|
||||||
</if>
|
</if>
|
||||||
GROUP BY bai.agreement_id,
|
GROUP BY bai.agreement_id,
|
||||||
mt.type_id) AS subquery2 ON subquery1.type_id = subquery2.type_id
|
mt.type_id) AS subquery2 ON subquery1.type_id = subquery2.type_id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue