| | |
| | | |
| | | |
| | | <select id="selectStockPage" resultMap="stockResultMap"> |
| | | select * |
| | | from sys_stock |
| | | where is_deleted = 0 |
| | | select * from sys_stock where is_deleted = 0 |
| | | </select> |
| | | |
| | | <select id="selectLists" resultType="org.springblade.modules.stock.vo.StockVO"> |
| | |
| | | stf.agricultural_name, |
| | | stf.factory_name |
| | | FROM sys_stockrecord st |
| | | LEFT JOIN (SELECT id, agricultural_name, factory_name FROM sys_stockfactory) stf |
| | | 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 != '' "> |
| | | WHERE stf.type =#{stock.stockType} |
| | | </if> |
| | | GROUP BY stf.id, |
| | | stf.agricultural_name, |
| | | stf.factory_name |