/**
* 导入
* @param filePath
* @return
*/
public CommonRestResponse importExcel(String filePath){
ExcelReadKit excelReadKit = new ExcelReadKit();
ExcelReadResultBean readResultBean = excelReadKit.readExcel(filePath, 0,false);
List<List> list = readResultBean.getContentList();
// String currentLoginUserName = sysUserInfoService.getCurrentLoginUserInfo().getNickName();
String currentLoginUserName = sysUserInfoService.getCurrentLoginUserName();
if (list == null || list.size() <=1) {
return new CommonRestResponse(CommonRestResponse.FAILED_FLAG,languageService.getMessage(“common.msg.w.0059”,“没有要导入的数据.”),null);
}
Map<String,String> modelCodeMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.MODEL_CODE,SysConstants.ENABLED_Y);
Map<String, String> figureTypeMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.ALLO_FIGURE_CODE, SysConstants.ENABLED_Y);
Map<String,String> divisionMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.DIVISION, SysConstants.ENABLED_Y);
Map<String,String> parStoreDimMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.ALL_PAR_STORE_DIM, SysConstants.ENABLED_Y);
Map<String,String> parStoreValMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.MID_CATEGORY, SysConstants.ENABLED_Y);
Map<String, String> storeDimMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.ALLO_STORE_DIM, SysConstants.ENABLED_Y);
Map<String, String> merchDimMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.ALLO_MERCH_DIM, SysConstants.ENABLED_Y);
Map<String,Map<String,String>> storeDimValueMap = this.initTransferDimValuesMap(storeDimMap);
Map<String,Map<String,String>> merchDimValueMap = this.initTransferDimValuesMap(merchDimMap);
Map<String,String> parMerchDimMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.ALL_PAR_MERCH_DIM, SysConstants.ENABLED_Y);
Map<String,String> parMerchValMap = sysDictionaryBOService.getDictionaryMapByDictTypeCode(DictionaryConfig.PAR_MERCH_VAL_MAP, SysConstants.ENABLED_Y);
Map<String,String> sizeGroupMap = mstSizeMappingService.getSizeGroupMap(null);
List<ExcelImportVO> eivos = new ArrayList<>(10);
String item;
boolean isSuccess = true;
List<MstAlloFigureConfig> beanList = new ArrayList<>(10);
MstAlloFigureConfig bean = null;
HashMap<String, Object> result = new HashMap<>(1);
Date now = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
for1:for (int i = 1, size = list.size(); i < size; i++) {