| | |
| | | |
| | | <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 |
| | |
| | | WHERE CODE = 'stockSpecs1' AND is_deleted = 0) d ON d.dict_key = st.specs_value1 |
| | | LEFT JOIN (SELECT dict_key, dict_value |
| | | FROM blade_dict_biz |
| | | WHERE CODE = 'stockSpecs2' AND is_deleted = 0) c ON c.dict_key = st.specs_value1 |
| | | WHERE CODE = 'stockSpecs2' AND is_deleted = 0) c ON c.dict_key = st.specs_value2 |
| | | WHERE st.is_deleted = 0 |
| | | <if test="stock.stype!=null and stock.stype != ''"> |
| | | and stf.type = #{stock.stype} |
| | |
| | | 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> |