src/main/resources/mapper/OrderDetlMapper.xml
@@ -68,7 +68,7 @@ where 1=1 and order_no = #{orderNo} and matnr = #{matnr} <if test="batch!=null and batch!='' "> <if test="batch!=null"> and batch = #{batch} </if> </select> @@ -148,11 +148,11 @@ and order_no = #{orderNo} and matnr = #{matnr} <choose> <when test="batch != null and batch != ''"> <when test="batch != null"> and batch = #{batch} </when> <otherwise> and (batch IS NULL OR batch = '') and (batch IS NULL ) </otherwise> </choose> </update>