bug修改
This commit is contained in:
parent
c9394f1339
commit
53fd3c067d
|
|
@ -89,6 +89,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
<if test="goodsType != null "> and cm.goods_type = #{goodsType}</if>
|
<if test="goodsType != null "> and cm.goods_type = #{goodsType}</if>
|
||||||
<if test="barCode != null and barCode != ''"> and cm.bar_code = #{barCode}</if>
|
<if test="barCode != null and barCode != ''"> and cm.bar_code = #{barCode}</if>
|
||||||
<if test="unitId != null "> and cm.unit_id = #{unitId}</if>
|
<if test="unitId != null "> and cm.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="salePrice != null "> and cm.sale_price = #{salePrice}</if>
|
<if test="salePrice != null "> and cm.sale_price = #{salePrice}</if>
|
||||||
<if test="unitPrice != null "> and cm.unit_price = #{unitPrice}</if>
|
<if test="unitPrice != null "> and cm.unit_price = #{unitPrice}</if>
|
||||||
<if test="salesMode != null "> and cm.sales_mode = #{salesMode}</if>
|
<if test="salesMode != null "> and cm.sales_mode = #{salesMode}</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue