| | |
| | | left join sys_land sl on sl.id = sfr.land_id |
| | | WHERE |
| | | YEAR(sfr.time) = YEAR(NOW()) |
| | | AND sfr.stock_id != NULL |
| | | AND sfr.stock_id != "" |
| | | and sl.farm_id=#{farmId} |
| | | </select> |
| | | <!--去年农资使用量--> |
| | |
| | | <if test="farm.strainId!=null and farm.strainId!=''"> |
| | | and sfr.strain_id = #{farm.strainId} |
| | | </if> |
| | | <if test="farm.startTime!=null and farm.startTime!=''"> |
| | | and sfr.create_time >= #{farm.startTime} |
| | | </if> |
| | | <if test="farm.endTime!=null and farm.endTime!=''"> |
| | | and sfr.create_time <= #{farm.endTime} |
| | | </if> |
| | | order by sfr.time desc,sfr.create_time desc |
| | | </select> |
| | | <select id="getDetails" resultType="org.springblade.modules.farm.vo.FarmingRecordVO"> |