向表格中注入数据

27次阅读

共计 19118 个字符,预计需要花费 48 分钟才能阅读完成。

没有整理直接贴代码,完整功能都在里面。

  1. 获取静态变量名和变量值。
  2. 写入数据时,需要先在对应路径中创建好 excel 文件。
package com.westware.bkxy.sms.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.Row;
import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

public class WriteExcel {
    private static final String EXCEL_XLS = "xls";
    private static final String EXCEL_XLSX = "xlsx";
    
    public static void main(String[] args) {Map<Integer, String> sdsf = new HashMap<Integer, String>();
        Class clazz;
        try {clazz = Class.forName("com.westware.bkxy.sms.utils.WriteExcel");
            Field[] fields = clazz.getFields();
            
            for(Field field : fields){
                try {sdsf.put(field.getInt(clazz), field.getName());
//                    System.out.println(field.getName() + " " +field.getInt(clazz) );
                } catch (IllegalArgumentException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();} catch (IllegalAccessException e) {
                    // TODO Auto-generated catch block
                    e.printStackTrace();}
            }
        } catch (ClassNotFoundException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();}
        
        
        List<Map> list=new ArrayList<Map>();
        
        Iterator iter = reportTypeMap.entrySet().iterator();
        while (iter.hasNext()) {Map.Entry entry = (Map.Entry) iter.next();
            Integer key = (Integer) entry.getKey();
            Object val = entry.getValue();
            String type = sdsf.get(key).replace("reportType_ID_", "");
            
            
            Map<String, String> dataMap=new HashMap<String, String>();
            dataMap.put("id", key.toString());
            dataMap.put("typeKey", type);
            dataMap.put("typeName", val.toString());
            list.add(dataMap);
            
//            System.out.println(dataMap);
        }
        
        
    
        writeExcel(list, 3, "D:/workspace/sms/WebRoot/SystemReport.xlsx");
        
    }
    

    public static void writeExcel(List<Map> dataList, int cloumnCount,String finalXlsxPath){
        OutputStream out = null;
        try {
            // 获取总列数
            int columnNumCount = cloumnCount;
            // 读取 Excel 文档
            File finalXlsxFile = new File(finalXlsxPath);
            Workbook workBook = getWorkbok(finalXlsxFile);
            // sheet 对应一个工作页
            Sheet sheet = workBook.getSheetAt(0);
//            /**
//             * 删除原有数据,除了属性列
//             */
//            int rowNumber = sheet.getLastRowNum();    // 第一行从 0 开始算
//            System.out.println("原始数据总行数,除属性列:" + rowNumber);
//            for (int i = 1; i <= rowNumber; i++) {//                Row row = sheet.getRow(i);
//                sheet.removeRow(row);
//            }
//            // 创建文件输出流,输出电子表格:这个必须有,否则你在 sheet 上做的任何操作都不会有效
//            out =  new FileOutputStream(finalXlsxPath);
//            workBook.write(out);
            /**
             * 往 Excel 中写新数据
             */
            for (int j = 0; j < dataList.size(); j++) {
                // 创建一行:从第二行开始,跳过属性列
                Row row = sheet.createRow(j + 1);
                // 得到要插入的每一条记录
                Map dataMap = dataList.get(j);
                String id = dataMap.get("id").toString();
                String typeKey = dataMap.get("typeKey").toString();
                String typeName = dataMap.get("typeName").toString();
                System.out.println(id+"---------"+typeKey+"---------"+typeName);
                for (int k = 0; k <= columnNumCount; k++) {
                // 在一行内循环
                Cell first = row.createCell(0);
                first.setCellValue(id);
        
                Cell second = row.createCell(1);
                second.setCellValue(typeKey);
        
                Cell third = row.createCell(2);
                third.setCellValue(typeName);
              }
            }
            // 创建文件输出流,准备输出电子表格:这个必须有,否则你在 sheet 上做的任何操作都不会有效
            out =  new FileOutputStream(finalXlsxPath);
            workBook.write(out);
            
            System.out.println("数据导出完成");
        } catch (Exception e) {e.printStackTrace();
        } finally{
            try {if(out != null){out.flush();
                    out.close();}
            } catch (IOException e) {e.printStackTrace();
            }
        }
    }

    /**
     * 判断 Excel 的版本, 获取 Workbook
     * @param in
     * @param filename
     * @return
     * @throws IOException
     */
    public static Workbook getWorkbok(File file) throws IOException{
        Workbook wb = null;
        FileInputStream in = new FileInputStream(file);
        if(file.getName().endsWith(EXCEL_XLS)){     //Excel&nbsp;2003
            wb = new HSSFWorkbook(in);
        }else if(file.getName().endsWith(EXCEL_XLSX)){    // Excel 2007/2010
            wb = new XSSFWorkbook(in);
        }
        return wb;
    }
    
    
    
    
    
    public static final int reportType_ID_Invalid = 0;
    public static final int reportType_ID_Hites_Column = 1;
    public static final int reportType_ID_Hites_Program = 2;
    public static final int reportType_ID_Hites_Video = 3;
    public static final int reportType_ID_Visits_Send_Captcha = 4;
    public static final int reportType_ID_Visits_Check_Captcha = 5;
    public static final int reportType_ID_Visits_Register = 6;
    public static final int reportType_ID_Visits_Login = 7;
    public static final int reportType_ID_Visits_Enter_App = 8;
    public static final int reportType_ID_Visits_Leave_App = 9;
    public static final int reportType_ID_Get_Product = 10;
//    public static final int reportType_ID_Get_QRCode_ALI = 11;
//    public static final int reportType_ID_Get_QRCode_WX = 12;
//    public static final int reportType_ID_Get_QRCode_JF = 13;
//    public static final int reportType_ID_Product_Order_ALI_Success = 14;
//    public static final int reportType_ID_Product_Order_ALI_Failed = 15;
//    public static final int reportType_ID_Product_Order_JF_Success = 16;
//    public static final int reportType_ID_Product_Order_JF_Failed = 17;
//    public static final int reportType_ID_Product_Order_WX_Success = 18;
//    public static final int reportType_ID_Product_Order_WX_Failed = 19;
    public static final int reportType_ID_List_Order = 20;
    public static final int reportType_ID_List_Column = 21;
    public static final int reportType_ID_List_Favorite = 22;
    //        public static final int reportType_ID_Favorite_Get = 23;
    public static final int reportType_ID_Fresh_Express = 24;
    public static final int reportType_ID_Program_Recommend = 25;
    public static final int reportType_ID_List_Program_TY = 26;
    //        public static final int reportType_ID_List_Program_Client = 27;
    public static final int reportType_ID_video_SetTime = 28;
    public static final int reportType_ID_Sys_Param = 29;
    public static final int reportType_ID_UserInfo_Get = 30;
    public static final int reportType_ID_UserInfo_Set = 31;
    public static final int reportType_ID_UserInfo_UpdatePW = 32;
    public static final int reportType_ID_UserPlay_Get = 33;
    public static final int reportType_ID_UserPlay_Delete = 34;
    public static final int reportType_ID_UserPlay_Point = 35;
    public static final int reportType_ID_Favorite_Set = 36;
//    public static final int reportType_ID_Favorite_Delete = 37;
    public static final int reportType_ID_Program_Releted = 38;
    public static final int reportType_ID_Program_Releted_Commodity = 39;
    public static final int reportType_ID_Live_Get_List = 40;
    public static final int reportType_ID_Live_Get_List_My = 41;
    public static final int reportType_ID_Live_Get_List_Join = 42;
    public static final int reportType_ID_Live_Get_List_Browse= 43;
    public static final int reportType_ID_Live_Create = 44;
    public static final int reportType_ID_Live_Get_Detail = 45;
    public static final int reportType_ID_Live_Join = 46;
    public static final int reportType_ID_Live_Browse = 47;
    public static final int reportType_ID_Live_ChangeStatus = 48;
//    public static final int reportType_ID_Live_Goods = 49;
//    reportTypeMap.put(reportType_ID_Live_Goods, "点赞直播");
    public static final int reportType_ID_QRC_Play = 50;
    public static final int reportType_ID_APP_VERSION = 51;
    //        public static final int reportType_ID_CACHE_UPDATE = 52;
    public static final int reportType_ID_Program_Comment_Good = 53;

    public static final int reportType_ID_SEARCH_PROGRAM = 54;// 搜索节目
    public static final int reportType_ID_SEARCH_NEIGHBOR = 55;// 搜索附近的人
    public static final int reportType_ID_FU_JING_CHANG_GUAN = 56;// 附近场馆
    public static final int reportType_ID_YUE_BA = 57;// 约吧
    public static final int reportType_ID_CLICK_DRZM = 58;// 达人招募
    public static final int reportType_ID_TUI_JIAN_YOU_JIANG = 59;// 推荐有奖
    public static final int reportType_ID_HUI_YUAN_QUAN_YI = 60;// 会员权益
    public static final int reportType_ID_SCAN_QR = 61;// 扫一扫
    public static final int reportType_ID_WO_DE_ZHANG_HU = 62;// 我的账户
    public static final int reportType_ID_WO_DE_FA_YAN = 63;// 我的发言
    public static final int reportType_ID_WO_DE_XIAO_XI = 64;// 我的消息
    public static final int reportType_ID_TONG_YONG_SETTING = 65;// 通用设置
    public static final int reportType_ID_FOCUS_LIST = 66;// 获取用户关注表
    public static final int reportType_ID_FANS_LIST = 67;// 获取用户粉丝表
    //public static final int reportType_ID_CLICK_AD = 68;// 点击广告
    //public static final int reportType_ID_CLICK_COMMODITY = 69;// 点击商品
    public static final int reportType_ID_CLICK_ABOUT = 70;// 点击关于我们    
    public static final int reportType_ID_USER_POINT_LIST = 71;// 金豆列表    
    public static final int reportType_ID_USER_POINT_EXCHANGE = 72;// 金豆兑换礼品    
    public static final int reportType_ID_GET_NOTICE_URGENT = 74;
    public static final int reportType_ID_CHECK_HAS_ORDER = 75;
    public static final int reportType_ID_DATEOVER_DELETE_ORDER = 76;
    public static final int reportType_ID_SET_FANS = 80;
    public static final int reportType_ID_REMOVE_FANS = 81;
    public static final int reportType_ID_ORDER_NOTIFY = 82;
    public static final int reportType_ID_RECORD_LEAD = 83;
    public static final int reportType_ID_RECORD_ORDER_ACTIVE = 84;
    public static final int reportType_ID_GET_AUTHENTICATE = 85;
    public static final int reportType_ID_EMAIL_BIND_VALIDATE = 86;
    public static final int reportType_ID_UserInfo_Get_CUR = 87;
    public static final int reportType_ID_GET_CARDS = 90;
    public static final int reportType_ID_EMAIL_RELEASE = 91;
    public static final int reportType_ID_EMAIL_BIND = 92;
    public static final int reportType_ID_SET_AUTHENTICATE = 93;
    public static final int reportType_ID_GET_CITIVITY_LIST = 94;
    public static final int reportType_ID_GET_CITIVITY_DETAIL = 95;
    public static final int reportType_ID_CITIVITY_CREATE = 96;
    public static final int reportType_ID_COMMON_INTEREST_LIST = 97;
    public static final int reportType_ID_POINT_EXCHANGE_LIST = 98;
    public static final int reportType_ID_POINT_EXCHANGE = 99;
    public static final int reportType_ID_PROGRAM_THEME_LIST = 100;
    public static final int reportType_ID_PROGRAM_THEME_DETAIL = 101;
    public static final int reportType_ID_SIGN_ADD = 105;
    public static final int reportType_ID_SIGN_LIST = 106;
    public static final int reportType_ID_VOTE = 107;
    public static final int reportType_ID_SHARE = 108;
    public static final int reportType_ID_SEARCH_USER = 109;// 搜索用户
    public static final int reportType_ID_QR_DOWNLOAD = 110;// 扫码下载
    public static final int reportType_ID_JIFENGUIZE = 111;
    public static final int reportType_ID_YONGHUXIEYI = 112;
    public static final int reportType_ID_QR_LOGIN = 113;
    public static final int reportType_ID_DOWNLOADPAGE = 114;// 扫码下载访问
    public static final int reportType_ID_TJ_ShouYeTuiJian = 115;// 首页推荐我
    public static final int reportType_ID_TJ_ShouYeLanjie = 116;// 首页进入推荐拦截按钮
    public static final int reportType_ID_TJ_tuiChuLanjie = 117;// 退出拦截
    public static final int reportType_ID_TJ_faXianTuiJian = 118;// 发现页推荐
    public static final int reportType_ID_TJ_geRenTuiJian = 119;// 个人页推荐
    public static final int reportType_ID_PRODUCT_AD = 120;// 商品广告
    public static final int reportType_ID_BANNER_HOT = 121;// 推荐页的 banner 海报
    public static final int reportType_ID_XIAOLABA = 122;// 小喇叭点击
    public static final int reportType_ID_DAOHANG = 123;// 导航统计
    public static final int reportType_ID_ORDER_CREATE = 124;// 订单创建
    public static final int reportType_ID_BANNER_DESCOVER = 125;// 发现页 banner 海报
    public static final int reportType_ID_EXIT_LOGIN = 126;// 退出登录
    public static final int reportType_ID_USER_JOIN = 128;//
    public static final int reportType_ID_USER_LOGIN_RQ = 129;// 生成登录注册二维码
    public static final int reportType_ID_SET_SHOP_INFO = 130;
    public static final int reportType_ID_GET_SHOP_MY = 131;
    public static final int reportType_ID_CERTIFICATION_AUTHENTICATE = 132;
    public static final int reportType_ID_VIDEO_ERROR = 133;
    public static final int reportType_ID_QUANZI_DETAIL = 134;// 圈子详情
    public static final int reportType_ID_QUANZI_ADD = 135;// 新增圈子
    public static final int reportType_ID_QUANZI_EDITE = 136;// 编辑圈子
    public static final int reportType_ID_QUANZI_DELETE = 137;// 删除圈子
    public static final int reportType_ID_QUANZI_GOOD = 138;// 圈子点赞
    public static final int reportType_ID_QUANZI_GOOD_COMMENTS = 139;// 圈子评论点赞
    public static final int reportType_ID_QUANZI_FAVORITE = 140;// 圈子收藏
    public static final int reportType_ID_QUANZI_FAVORITE_CANCLE = 141;// 圈子取消收藏
    public static final int reportType_ID_QUANZI_DELETE_OPEN_REOCRD = 142;
    public static final int reportType_ID_QUANZI_FAVORITE_LIST = 143;
    public static final int reportType_ID_QUANZI_OPEN_LIST = 144;
    public static final int reportType_ID_DANGBEI_AD = 161;// 当贝广告统计
    public static final int reportType_ID_FEIQI = 999;// 废弃的接口
    
    private static Map<Integer, String> reportTypeMap = new HashMap<Integer, String>();
    static {reportTypeMap.put(reportType_ID_Hites_Column, "浏览节目列表");
        reportTypeMap.put(reportType_ID_Hites_Program, "观看节目");
        reportTypeMap.put(reportType_ID_Hites_Video, "观看视频");
        reportTypeMap.put(reportType_ID_Visits_Send_Captcha, "用户发送验证码");
        reportTypeMap.put(reportType_ID_Visits_Check_Captcha, "验证码通过");
        reportTypeMap.put(reportType_ID_Visits_Register, "用户注册");
        reportTypeMap.put(reportType_ID_Visits_Login, "登录");
        reportTypeMap.put(reportType_ID_Visits_Enter_App, "进入应用");
        reportTypeMap.put(reportType_ID_Visits_Leave_App, "退出应用");
        reportTypeMap.put(reportType_ID_Get_Product, "产品包获取");
//        reportTypeMap.put(reportType_ID_Get_QRCode_ALI, "二维码获取(支付宝)");
//        reportTypeMap.put(reportType_ID_Get_QRCode_WX, "二维码获取(微信)");
//        reportTypeMap.put(reportType_ID_Get_QRCode_JF, "二维码获取(金豆)");
//        reportTypeMap.put(reportType_ID_Get_QRCode_Mutil, "二维码获取(多种支付方式)");
//        reportTypeMap.put(reportType_ID_Product_Order_ALI_Success, "产品包订购成功(支付宝)");
//        reportTypeMap.put(reportType_ID_Product_Order_ALI_Failed, "产品包订购失败(支付宝)");
//        reportTypeMap.put(reportType_ID_Product_Order_JF_Success, "产品包订购成功(金豆)");
//        reportTypeMap.put(reportType_ID_Product_Order_JF_Failed, "产品包订购失败(金豆)");
//        reportTypeMap.put(reportType_ID_Product_Order_WX_Success, "产品包订购成功(微信)");
//        reportTypeMap.put(reportType_ID_Product_Order_WX_Failed, "产品包订购失败(微信)");
        reportTypeMap.put(reportType_ID_List_Order, "查询我的订单");
        reportTypeMap.put(reportType_ID_List_Column, "查看栏目列表");
        reportTypeMap.put(reportType_ID_List_Favorite, "查看我的收藏");
        //        reportTypeMap.put(reportType_ID_Favorite_Get, "收藏节目");
        reportTypeMap.put(reportType_ID_Fresh_Express, "观看新鲜速递");
        reportTypeMap.put(reportType_ID_Program_Recommend, "观看推荐节目");
        reportTypeMap.put(reportType_ID_List_Program_TY, "观看体验专区节目列表");
        //        reportTypeMap.put(reportType_ID_List_Program_Client, "获取节目列表(客户端获取缓存)");
        reportTypeMap.put(reportType_ID_video_SetTime, "设置视频播放的时间");
        reportTypeMap.put(reportType_ID_Sys_Param, "获取系统参数");
        reportTypeMap.put(reportType_ID_UserInfo_Get, "获取用户信息");
        reportTypeMap.put(reportType_ID_UserInfo_Set, "更新用户信息");
        reportTypeMap.put(reportType_ID_UserInfo_UpdatePW, "更新密码");
        reportTypeMap.put(reportType_ID_UserPlay_Get, "查询我的最近观看记录");
        reportTypeMap.put(reportType_ID_UserPlay_Delete, "删除一条最近观看记录");
        reportTypeMap.put(reportType_ID_UserPlay_Point, "赠送节目观看金豆");
        reportTypeMap.put(reportType_ID_Favorite_Set, "添加 / 取消用户收藏");
//        reportTypeMap.put(reportType_ID_Favorite_Delete, "取消用户收藏");
        reportTypeMap.put(reportType_ID_Program_Releted, "浏览节目的猜你喜欢推荐");
        reportTypeMap.put(reportType_ID_Program_Releted_Commodity, "根据商品分类获取详情列表");

        reportTypeMap.put(reportType_ID_Live_Get_List, "获取直播列表");
        reportTypeMap.put(reportType_ID_Live_Get_List_My, "获取个人直播列表");
        reportTypeMap.put(reportType_ID_Live_Get_List_Join, "获取个人参与直播列表");
        reportTypeMap.put(reportType_ID_Live_Get_List_Browse, "获取个人浏览直播列表");
        reportTypeMap.put(reportType_ID_Live_Create, "创建直播");
        reportTypeMap.put(reportType_ID_Live_Get_Detail, "获取直播详情");
        reportTypeMap.put(reportType_ID_Live_Join, "参与直播");
        reportTypeMap.put(reportType_ID_Live_Browse, "浏览直播");
        reportTypeMap.put(reportType_ID_Live_ChangeStatus, "修改直播状态");
        //reportTypeMap.put(reportType_ID_URL_REDIRECT, "页面跳转访问");
        reportTypeMap.put(reportType_ID_QRC_Play, "通过扫码在网页上播放节目");
        reportTypeMap.put(reportType_ID_APP_VERSION, "获取 APP 最新版本");
        //        reportTypeMap.put(reportType_ID_CACHE_UPDATE, "更新缓存");
        reportTypeMap.put(reportType_ID_Program_Comment_Good, "节目评论点赞");
        reportTypeMap.put(reportType_ID_SEARCH_PROGRAM, "节目搜索");
        reportTypeMap.put(reportType_ID_SEARCH_NEIGHBOR, "搜索附近的人");
        reportTypeMap.put(reportType_ID_FU_JING_CHANG_GUAN, "附近场馆");
        reportTypeMap.put(reportType_ID_YUE_BA, "约吧");
        reportTypeMap.put(reportType_ID_CLICK_DRZM, "达人招募");
        reportTypeMap.put(reportType_ID_TUI_JIAN_YOU_JIANG, "推荐有奖");
        reportTypeMap.put(reportType_ID_HUI_YUAN_QUAN_YI, "会员权益");
        reportTypeMap.put(reportType_ID_SCAN_QR, "扫一扫");
        reportTypeMap.put(reportType_ID_WO_DE_ZHANG_HU, "我的账户");
        reportTypeMap.put(reportType_ID_WO_DE_FA_YAN, "我的发言");
        reportTypeMap.put(reportType_ID_WO_DE_XIAO_XI, "我的消息");
        reportTypeMap.put(reportType_ID_TONG_YONG_SETTING, "通用设置");
        reportTypeMap.put(reportType_ID_FOCUS_LIST, "获取用户关注表");
        reportTypeMap.put(reportType_ID_FANS_LIST, "获取用户粉丝表");
        //reportTypeMap.put(reportType_ID_CLICK_AD, "点击广告");
        //reportTypeMap.put(reportType_ID_CLICK_COMMODITY, "点击商品");
        reportTypeMap.put(reportType_ID_CLICK_ABOUT, "点击关于我们");
        reportTypeMap.put(reportType_ID_USER_POINT_LIST, "金豆列表");
        reportTypeMap.put(reportType_ID_USER_POINT_EXCHANGE, "金豆兑换礼品");
        reportTypeMap.put(reportType_ID_GET_NOTICE_URGENT, "获取紧急通知");
        reportTypeMap.put(reportType_ID_CHECK_HAS_ORDER, "检查订单存在");
        reportTypeMap.put(reportType_ID_DATEOVER_DELETE_ORDER, "删除过期订单");
        reportTypeMap.put(reportType_ID_SET_FANS, "添加关注");
        reportTypeMap.put(reportType_ID_REMOVE_FANS, "取消关注");
        reportTypeMap.put(reportType_ID_ORDER_NOTIFY, "订单回调");
        reportTypeMap.put(reportType_ID_RECORD_LEAD, "导流进入");
        reportTypeMap.put(reportType_ID_RECORD_ORDER_ACTIVE, "用户订购行为记录");
        reportTypeMap.put(reportType_ID_GET_AUTHENTICATE, "获取用户认证信息");
        reportTypeMap.put(reportType_ID_EMAIL_BIND_VALIDATE, "绑定邮箱验证");
        reportTypeMap.put(reportType_ID_UserInfo_Get_CUR, "获取用户自己的信息");
        reportTypeMap.put(reportType_ID_SET_AUTHENTICATE, "用户认证");
        reportTypeMap.put(reportType_ID_GET_CARDS, "获取卡券信息");
        reportTypeMap.put(reportType_ID_EMAIL_RELEASE, "邮箱解绑");
        reportTypeMap.put(reportType_ID_EMAIL_BIND, "绑定邮箱");
        reportTypeMap.put(reportType_ID_GET_CITIVITY_LIST, "获取城会玩列表");
        reportTypeMap.put(reportType_ID_GET_CITIVITY_DETAIL, "点击城会玩详情");
        reportTypeMap.put(reportType_ID_CITIVITY_CREATE, "创建城会玩");
        reportTypeMap.put(reportType_ID_COMMON_INTEREST_LIST, "点击同好圈");
        reportTypeMap.put(reportType_ID_POINT_EXCHANGE_LIST, "点击金豆兑换列表");
        reportTypeMap.put(reportType_ID_POINT_EXCHANGE, "金豆兑换实物");
        reportTypeMap.put(reportType_ID_PROGRAM_THEME_LIST, "观看专题列表");
        reportTypeMap.put(reportType_ID_PROGRAM_THEME_DETAIL, "观看专题详情");
        reportTypeMap.put(reportType_ID_SIGN_ADD, "签到");
        reportTypeMap.put(reportType_ID_SIGN_LIST, "获取签到列表");
        reportTypeMap.put(reportType_ID_VOTE, "参与投票");
        reportTypeMap.put(reportType_ID_SHARE, "分享页面");
        reportTypeMap.put(reportType_ID_SEARCH_USER, "用户搜索");
        reportTypeMap.put(reportType_ID_QR_DOWNLOAD, "APP 下载");
        reportTypeMap.put(reportType_ID_JIFENGUIZE, "金豆规则");
        reportTypeMap.put(reportType_ID_YONGHUXIEYI, "用户协议");
        reportTypeMap.put(reportType_ID_QR_LOGIN, "扫码登录");
        reportTypeMap.put(reportType_ID_DOWNLOADPAGE, "app 下载访问");
        reportTypeMap.put(reportType_ID_TJ_ShouYeTuiJian, "首页推荐位点击");
        reportTypeMap.put(reportType_ID_TJ_ShouYeLanjie, "首页拦截按钮点击");
        reportTypeMap.put(reportType_ID_TJ_tuiChuLanjie, "退出拦截点击");
        reportTypeMap.put(reportType_ID_TJ_faXianTuiJian, "发现页推荐点击");
        reportTypeMap.put(reportType_ID_TJ_geRenTuiJian, "个人页推荐点击");
        reportTypeMap.put(reportType_ID_PRODUCT_AD, "商品广告点击");
        reportTypeMap.put(reportType_ID_BANNER_HOT, "推荐页 banner 海报");
        reportTypeMap.put(reportType_ID_XIAOLABA, "小喇叭点击");
        reportTypeMap.put(reportType_ID_DAOHANG, "导航点击");
        reportTypeMap.put(reportType_ID_ORDER_CREATE, "订单创建");
        reportTypeMap.put(reportType_ID_BANNER_DESCOVER, "发现页 banner 海报");
        reportTypeMap.put(reportType_ID_EXIT_LOGIN, "退出登录");
        reportTypeMap.put(reportType_ID_USER_JOIN, "活动参与");
        reportTypeMap.put(reportType_ID_USER_LOGIN_RQ, "生成登录注册二维码");
        reportTypeMap.put(reportType_ID_VIDEO_ERROR, "观看视频失败");
        reportTypeMap.put(reportType_ID_DANGBEI_AD, "当贝广告观看");
        reportTypeMap.put(reportType_ID_FEIQI, "废弃接口 ( 很老版本使用)");
        reportTypeMap.put(reportType_ID_SET_SHOP_INFO, "完善店铺信息");
        reportTypeMap.put(reportType_ID_GET_SHOP_MY, "获取店铺认证信息");
        reportTypeMap.put(reportType_ID_CERTIFICATION_AUTHENTICATE, "认证审核");
        reportTypeMap.put(reportType_ID_QUANZI_ADD, "新增圈子");
        reportTypeMap.put(reportType_ID_QUANZI_EDITE, "编辑圈子");
        reportTypeMap.put(reportType_ID_QUANZI_DELETE, "删除圈子");
        reportTypeMap.put(reportType_ID_QUANZI_GOOD, "圈子点赞");
        reportTypeMap.put(reportType_ID_QUANZI_GOOD_COMMENTS, "圈子评论点赞");
        reportTypeMap.put(reportType_ID_QUANZI_FAVORITE, "圈子收藏");
        reportTypeMap.put(reportType_ID_QUANZI_FAVORITE_CANCLE, "圈子取消收藏");
        reportTypeMap.put(reportType_ID_QUANZI_DELETE_OPEN_REOCRD, "删除圈子浏览记录");
        reportTypeMap.put(reportType_ID_QUANZI_FAVORITE_LIST, "获取圈子收藏记录");
        reportTypeMap.put(reportType_ID_QUANZI_OPEN_LIST, "获取圈子浏览记录");
    }
}

正文完
 0