Commit 9d841d57 by 彭祥礼

增加KPI管理菜单及菜单内功能

parent 1968862f
...@@ -65,26 +65,6 @@ public class LzKpi implements Serializable { ...@@ -65,26 +65,6 @@ public class LzKpi implements Serializable {
*/ */
@TableId(value = "is_del") @TableId(value = "is_del")
private String isDel; private String isDel;
/**
*
*/
private String sysuName;
/**
*
*/
private String account;
/**
*县分
*/
private String substName;
/**
*
*/
private int universityId;
/**
*
*/
private String universityName;
} }
package com.winsun.mapper;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.winsun.bean.LzKpi;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
/**
* 〈楼长KPI管理Mapper〉
*
* @author xiangli
* @create 2020/4/27 11:33
*/
@Mapper
@Component
public interface LzKpiMapper extends BaseMapper<LzKpi> {
}
package com.winsun.utils; package com.winsun.utils;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import org.apache.poi.xssf.usermodel.XSSFCell; import org.apache.poi.xssf.usermodel.XSSFCell;
import org.apache.poi.xssf.usermodel.XSSFRow; import org.apache.poi.xssf.usermodel.XSSFRow;
import org.apache.poi.xssf.usermodel.XSSFSheet; import org.apache.poi.xssf.usermodel.XSSFSheet;
import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook;
import java.util.*;
public class ExcelDealUtils { public class ExcelDealUtils {
...@@ -83,7 +79,27 @@ public class ExcelDealUtils { ...@@ -83,7 +79,27 @@ public class ExcelDealUtils {
return resultMap; return resultMap;
} }
// kpi管理导出excel表头
public static Map<String, Object> kpiExcel(String sheetName){
Map<String, Object> headMap = new LinkedHashMap<String, Object>();
headMap.put("kpiId", "id");
headMap.put("用户名", "sysuName");
headMap.put("账号", "account");
headMap.put("县分", "substName");
headMap.put("学校", "schoolName");
headMap.put("汇总任务量", "reportDaily");
headMap.put("参与集中营销", "collectiveSales");
headMap.put("组织周例会", "weeklyMeeting");
headMap.put("定制扫楼营销方案", "organTraining");
headMap.put("组织培训", "designPlan");
headMap.put("KPI总值", "kpi");
headMap.put("KPI月份", "month");
Map<String, Object> resultMap = dealHeadMap(headMap);
resultMap.put("sheetName", sheetName);
return resultMap;
}
// 账单导出excel表头 // 账单导出excel表头
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment