|  |  |  | 
|---|
|  |  |  | Quintiq file version 2.0 | 
|---|
|  |  |  | #parent: #root | 
|---|
|  |  |  | Method MappingSalesSegmentData ( | 
|---|
|  |  |  | Strings businessTypes | 
|---|
|  |  |  | Strings businessTypes, | 
|---|
|  |  |  | GlobalOTDTable globalOTDTable | 
|---|
|  |  |  | ) | 
|---|
|  |  |  | { | 
|---|
|  |  |  | Description: 'ETL销售部门' | 
|---|
|  |  |  | 
|---|
|  |  |  | [* | 
|---|
|  |  |  | // yypsybs Aug-15-2023 (created) | 
|---|
|  |  |  | // 待处理数据 | 
|---|
|  |  |  | listToDeal := construct( structured[MappingSalesSegment] ); | 
|---|
|  |  |  | listToDeal := construct( Global_MappingSalesSegment_MPs ); | 
|---|
|  |  |  | if( isnull( businessTypes ) or businessTypes.Size() = 0 ) { | 
|---|
|  |  |  | listToDeal := selectset( this, MappingSalesSegment, item, true ); | 
|---|
|  |  |  | listToDeal := selectset( globalOTDTable, Global_MappingSalesSegment_MP, item, true ); | 
|---|
|  |  |  | } else { | 
|---|
|  |  |  | listToDeal := selectset( this, MappingSalesSegment, item, businessTypes.Find( item.BusinessType() ) <> -1 ); | 
|---|
|  |  |  | listToDeal := selectset( globalOTDTable, | 
|---|
|  |  |  | Global_MappingSalesSegment_MP, | 
|---|
|  |  |  | item, | 
|---|
|  |  |  | businessTypes.Find( item.BusinessType() ) <> -1 ); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | //nameList := construct( structured[String] ); | 
|---|
|  |  |  | //nameList := selectvalues( listToDeal, Elements, item, true, item.Name() ); | 
|---|