浏览代码

feat: 商品进销存

Joburgess 5 年之前
父节点
当前提交
228d88ba9a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      mec-biz/src/main/resources/config/mybatis/GoodsMapper.xml

+ 2 - 2
mec-biz/src/main/resources/config/mybatis/GoodsMapper.xml

@@ -340,10 +340,10 @@
         </foreach>
     </select>
     <select id="getInnerRepertoryWarnName" resultType="java.lang.String">
-        SELECT GROUP_CONCAT( DISTINCT name_) FROM goods WHERE stock_count_ &lt;= #{innerRepertoryWarnNum} AND stock_warning_ = 0 AND status_ = 1
+        SELECT GROUP_CONCAT( DISTINCT name_) FROM goods WHERE stock_count_ &lt;= #{innerRepertoryWarnNum} AND stock_warning_ = 0 AND status_ = 1 AND complement_goods_id_list_ IS NULL
     </select>
     <select id="getOuterRepertoryWarnName" resultType="java.lang.String">
-        SELECT GROUP_CONCAT( DISTINCT name_) FROM goods WHERE tax_stock_count_ &lt;= #{outerRepertoryWarnNum} AND stock_warning_ = 0 AND status_ = 1
+        SELECT GROUP_CONCAT( DISTINCT name_) FROM goods WHERE tax_stock_count_ &lt;= #{outerRepertoryWarnNum} AND stock_warning_ = 0 AND status_ = 1 AND complement_goods_id_list_ IS NULL
     </select>
 
     <select id="getWithComplementGoodsAndStatus" resultMap="Goods">