bug修改
This commit is contained in:
parent
7fcc44265e
commit
c9394f1339
|
|
@ -54,6 +54,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="warehouseId != null "> and ii.warehouse_id = #{warehouseId}</if>
|
<if test="warehouseId != null "> and ii.warehouse_id = #{warehouseId}</if>
|
||||||
<if test="materialId != null "> and ii.material_id = #{materialId}</if>
|
<if test="materialId != null "> and ii.material_id = #{materialId}</if>
|
||||||
<if test="unitId != null "> and ii.unit_id = #{unitId}</if>
|
<if test="unitId != null "> and ii.unit_id = #{unitId}</if>
|
||||||
|
<if test="unitName != null and unitName != '' and unitName == 'CRKYTJ' ">
|
||||||
|
and (iu.unit_name = '斤' or iu.unit_name = '公斤')
|
||||||
|
</if>
|
||||||
|
<if test="unitName != null and unitName != '' and unitName != 'CRKYTJ' ">
|
||||||
|
and iu.unit_name like CONCAT('%',#{unitName,jdbcType=VARCHAR},'%')
|
||||||
|
</if>
|
||||||
<if test="minNum != null "> and ii.min_num = #{minNum}</if>
|
<if test="minNum != null "> and ii.min_num = #{minNum}</if>
|
||||||
<if test="maxNum != null "> and ii.max_num = #{maxNum}</if>
|
<if test="maxNum != null "> and ii.max_num = #{maxNum}</if>
|
||||||
<if test="materialNum != null "> and ii.material_num = #{materialNum}</if>
|
<if test="materialNum != null "> and ii.material_num = #{materialNum}</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue