src/main/resources/mapper/OrderDetlMapper.xml
@@ -29,4 +29,14 @@ </resultMap> <select id="selectItem" resultMap="BaseResultMap"> select * from man_order_detl where 1=1 and order_id = #{orderId} and matnr = #{matnr} <if test="batch != null and batch != ''"> and batch = #{batch} </if> </select> </mapper>