新增查询条件strainType和strainType
| | |
| | | <if test="farmProductStock.tenantId!=null and farmProductStock.tenantId!=''"> |
| | | and sfps.tenant_id = #{farmProductStock.tenantId} |
| | | </if> |
| | | <if test="farmProductStock.strainType !=null and farmProductStock.strainType !='' "> |
| | | and ss.strain_type = #{farmProductStock.strainType} |
| | | </if> |
| | | </select> |
| | | |
| | | <!--销售对比库存是否充足--> |
| | |
| | | */ |
| | | private String farmId; |
| | | |
| | | /** |
| | | * 品种类型(0种植 1水产 2畜牧) |
| | | */ |
| | | private String strainType; |
| | | |
| | | } |
| | |
| | | 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 |
| | |
| | | * 总的出库数量 |
| | | */ |
| | | Double zcknum; |
| | | |
| | | /** |
| | | * 农资类型分类(0:化肥 1:有机肥 2:杀虫剂 等) |
| | | */ |
| | | String stockType; |
| | | } |