| | |
| | | ss.url, |
| | | ss.strain_name, |
| | | sfps.land_id |
| | | ) a GROUP BY strainId |
| | | ) a WHERE weight !=0 GROUP BY strainId |
| | | </select> |
| | | |
| | | <select id="selectFarmProductStockPages" resultType="org.springblade.modules.farmplant.vo.FarmProductStockVO"> |
| | |
| | | left join sys_land sl on sr.land_id = sl.id |
| | | WHERE 1 = 1 |
| | | <if test="year!=null and year!=''"> |
| | | and YEAR ( sr.time ) = #{year} |
| | | and sr.time like concat('%',#{year},'%') |
| | | </if> |
| | | <if test="farmId!=null and farmId!=''"> |
| | | and sl.farm_id = #{farmId} |
| | |
| | | SELECT |
| | | CASE |
| | | WHEN |
| | | weight > #{sale} THEN |
| | | weight >= #{sale} THEN |
| | | TRUE ELSE FALSE |
| | | END result |
| | | FROM |