智慧农业后台管理
tangzy
2022-05-16 f5e7329bfc638dcf686ef25e77172649c8c0f7c6
src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml
@@ -33,7 +33,7 @@
    <select id="selectLists" resultType="org.springblade.modules.stock.vo.StockVO">
        SELECT st.*,
        stf.agricultural_name AS factoryName,
        stf.factory_name AS factoryName,
        stf.type AS stype,
        d.dict_value AS dic1,
        c.dict_value AS dic2
@@ -62,5 +62,9 @@
            and st.type = #{stock.type}
        </if>
    </select>
    <!--入库出库-->
    <update id="UpdaeAmountc">
        update sys_stock set amount = #{stock.amount} ,state=#{stock.state} where stock_id=#{stock.stockId}
    </update>
</mapper>