Commit 3ec39b60 by kangxiaoshan

处理标签页名称

parent 0d1277f3
...@@ -116,6 +116,15 @@ public class ContractServiceImpl implements ContractService { ...@@ -116,6 +116,15 @@ public class ContractServiceImpl implements ContractService {
put("ABTEST", "abtest"); put("ABTEST", "abtest");
}}; }};
public static final Map<String, String> SHEET_NAMES_RESERVE = new HashMap() {{
put( "tkio","TrackingIO");
put( "dmp","DMP");
put( "fake","防作弊卫士");
put( "adi","ADI");
put( "ads","ADS");
put( "abtest","ABTEST");
}};
Logger logger = LoggerFactory.getLogger(ContractServiceImpl.class); Logger logger = LoggerFactory.getLogger(ContractServiceImpl.class);
@Autowired @Autowired
...@@ -2121,7 +2130,7 @@ public class ContractServiceImpl implements ContractService { ...@@ -2121,7 +2130,7 @@ public class ContractServiceImpl implements ContractService {
return ResultModel.ERROR("模板标签页名称错误"); return ResultModel.ERROR("模板标签页名称错误");
} }
if (!sheetName.equalsIgnoreCase(platformexcl)) { if (!sheetName.equalsIgnoreCase(SHEET_NAMES_RESERVE.get(platformexcl))) {
return ResultModel.ERROR("请上传对应项目模板处理的数据"); return ResultModel.ERROR("请上传对应项目模板处理的数据");
} }
......
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