SELECT * FROM `t_zhtj_gllmqk` where type = #{type}
<iftest="year==null or year==''">
and year=(
<includerefid="maxYear"/>
)
</if>
<iftest="year!=null and year!=''">
and year=#{year}
</if>
<iftest="area!=null and area!=''">
and area=#{area}
</if>
</select>
<selectid="selectOrdinary"resultType="Map">
SELECT sum(ypzlm_lqhnt) as ypzlm_lqhnt,sum(ypzlm_snhnt) as ypzlm_snhnt,sum(jypzlm) as jypzlm,sum(wpzlm) as wpzlm FROM `t_zhtj_gllmqk` where type in (${type})