0
点赞
收藏
分享

微信扫一扫

【typeof instanceof Object.prototype.toString constructor区别】

福福福福福福福福福 2023-09-09 阅读 44

mysql接收list参数

List<MarketAnalysisCompanys> getCompanyReduceData(String companyId,List<String> labelNameList, String beginTime, String endTime);
    <select id="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
        <foreach item="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>
举报

相关推荐

0 条评论