bug修改

This commit is contained in:
jjLv 2025-09-08 16:22:03 +08:00
parent c9394f1339
commit 53fd3c067d
1 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="goodsType != null "> and cm.goods_type = #{goodsType}</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="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="unitPrice != null "> and cm.unit_price = #{unitPrice}</if>
<if test="salesMode != null "> and cm.sales_mode = #{salesMode}</if>