项目接口优化

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){
//根据数仓入参返回金蝶的投资模式
String typevalue;
switch (manageway){
case "收入要素":
typevalue = "1";
case "成本要素":
typevalue = "2";
case "管理费用":
typevalue = "3";
default:
typevalue = "0";
//根据数仓入参返回金蝶的投资模式两边枚举下拉值一样
if(DobeDWUtils.isEmpty(manageway)){
return "";
}
return typevalue;
return manageway;
}
private String getLandusage(String landusage){
//根据数仓入参返回金蝶的用地性质
String typevalue;
switch (landusage){
case "收入要素":
typevalue = "1";
case "成本要素":
typevalue = "2";
case "管理费用":
typevalue = "3";
default:
typevalue = "0";
//根据数仓入参返回金蝶的用地性质两边枚举下拉值一样
if(DobeDWUtils.isEmpty(landusage)){
return "";
}
return typevalue;
return landusage;
}
}