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