| | |
| | | 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> |
| | |
| | | <!--入库出库--> |
| | | <update id="Updaet"> |
| | | update sys_stock |
| | | set amount = #{stock.amount} |
| | | set amount = #{stock.amount},state = #{stock.state} |
| | | where id = #{stock.id} |
| | | </update> |
| | | |
| | |
| | | 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 |