项目接口优化

This commit is contained in:
yuxueliang0813 2025-04-23 15:11:41 +08:00
parent 9617add35a
commit 296faf0ad9
1 changed files with 8 additions and 24 deletions

View File

@ -268,34 +268,18 @@ public class DobeDWprojectTask extends AbstractTask implements Plugin {
} }
private String getManageway(String manageway){ private String getManageway(String manageway){
//根据数仓入参返回金蝶的投资模式 //根据数仓入参返回金蝶的投资模式两边枚举下拉值一样
String typevalue; if(DobeDWUtils.isEmpty(manageway)){
switch (manageway){ return "";
case "收入要素":
typevalue = "1";
case "成本要素":
typevalue = "2";
case "管理费用":
typevalue = "3";
default:
typevalue = "0";
} }
return typevalue; return manageway;
} }
private String getLandusage(String landusage){ private String getLandusage(String landusage){
//根据数仓入参返回金蝶的用地性质 //根据数仓入参返回金蝶的用地性质两边枚举下拉值一样
String typevalue; if(DobeDWUtils.isEmpty(landusage)){
switch (landusage){ return "";
case "收入要素":
typevalue = "1";
case "成本要素":
typevalue = "2";
case "管理费用":
typevalue = "3";
default:
typevalue = "0";
} }
return typevalue; return landusage;
} }
} }