项目接口优化
This commit is contained in:
		
							parent
							
								
									9617add35a
								
							
						
					
					
						commit
						296faf0ad9
					
				|  | @ -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; | ||||||
|     } |     } | ||||||
| } | } | ||||||
		Loading…
	
		Reference in New Issue