智慧农业后台管理
guoshilong
2022-08-15 8e65eb751d8e3c18d9d2134df084d349e55f1985
src/main/java/org/springblade/modules/stock/mapper/StockMapper.xml
@@ -54,7 +54,10 @@
            AND blade_dict_biz.tenant_id = #{stock.codes}
        </if>) a ON
        a.dict_key = stf.type
        WHERE st.is_deleted = 0 and state=0
        WHERE st.is_deleted = 0 and state=0 AND st.amount != 0
        <if test="stock.deptId !=null and stock.deptId !=''">
            and st.dept_id = #{stock.deptId}
        </if>
        <if test="stock.stype!=null and stock.stype != ''">
            and stf.type = #{stock.stype}
        </if>