智慧农业后台管理
xiebin
2022-09-22 cc1239bf95ee3f1880b0b4fa462a7fd40664cfb2
src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml
@@ -137,7 +137,7 @@
    <!--入库出库-->
    <update id="Updaet">
        update sys_stock
        set amount = #{stock.amount}
        set amount = #{stock.amount},state = #{stock.state}
        where id = #{stock.id}
    </update>
@@ -158,7 +158,7 @@
                 sys_stockrecord st
            LEFT JOIN (SELECT id, agricultural_name, factory_name,type FROM sys_stockfactory) stf
            ON st.stock_id1 = stf.id
        <if test="stock.stockType !=null and stock.stockType != '' ">
        <if test="stock.stockType !=null and stock.stockType !=''">
            WHERE stf.type =#{stock.stockType}
        </if>
        GROUP BY