gongchunyi
6 天以前 b63ea5ba6475fdbcabf33233304976a54294c7e3
test: 过滤返回的负数数量
已修改1个文件
5 ■■■■■ 文件已修改
src/main/resources/mapper/stock/StockInventoryMapper.xml 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/stock/StockInventoryMapper.xml
@@ -343,6 +343,7 @@
        </where>
        group by batch_no, product_model_id, model, unit, product_name, product_id
    </select>
    <select id="stockInventoryPage" resultType="com.ruoyi.stock.dto.StockInRecordDto">
        select sir.*,si.qualitity as current_stock,
        pm.model,
@@ -356,6 +357,10 @@
        left join product p on pm.product_id = p.id
        left join sys_user su on sir.create_user = su.user_id
        <where>
            and si.qualitity &gt;= 0
            and sir.stock_in_num &gt;= 0
            <if test="ew.reportDate != null">
                and sir.create_time >= #{ew.reportDate}
                and sir.create_time &lt; DATE_ADD(#{ew.reportDate}, INTERVAL 1 DAY)