<selectid="getCompanyReduceData"resultType="com.spang.wechat.entity.MarketAnalysisCompanys">
SELECT max(production_plan) production_plan,label_company_name
FROM market_analysis_companys
where company_id =#{companyId}
and label_company_name in
<foreachitem="item"index="index"collection="labelNameList"open="("separator=","close=")">
#{item}
foreach>
and data_time between #{beginTime} and #{endTime}
GROUP BY date_format(data_time,'%Y%m')
select>