@ -41,6 +41,7 @@ namespace WY.NewJit.MsgBaseData
[UnitOfWork]
public async Task SeedAsync ( DataSeedContext context )
{
return ;
if ( string . IsNullOrEmpty ( ConfigDic . CurrentVersion ) )
{
ConfigDic . CurrentVersion = _ configuration [ "ConfigDic:CurrentVersion" ] ;
@ -57,51 +58,51 @@ namespace WY.NewJit.MsgBaseData
}
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 , DicTypeName . 报 文 车 型 ) ) ;
await _d icItemRepository . InsertManyAsync ( dicItemLst ) ;
//派 格车型
//格拉默 车型
dicItemLst = new List < DicItem > ( ) ;
arr = new string [ ] { "B8L" , "B9" , "BSMV" , "C8" , "CC" , "Q5" , "Q6" } ;
foreach ( string itm in arr )
{
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 派 格 车 型 , itm , itm ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 格 拉 默 车 型 , itm , itm ) ) ;
}
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . 派 格 车 型 , DicTypeName . 派 格 车 型 ) ) ;
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . 格 拉 默 车 型 , DicTypeName . 格 拉 默 车 型 ) ) ;
await _d icItemRepository . InsertManyAsync ( dicItemLst ) ;
//报文车型对应派 格车型
//报文车型对应格拉默 车型
dicItemLst = new List < DicItem > ( ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "0V" , "BSMV" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "3C" , "B8L" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "3C" , "B8L-PHEV" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "3H" , "CC" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "4K" , "C8" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "4K" , "C8-PHEV" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "8W" , "B9" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "FY" , "Q5" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , "GE" , "Q6" ) ) ;
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 派 格 车 型 , DicTypeName . 报 文 车 型 对 应 派 格 车 型 ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "0V" , "BSMV" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "3C" , "B8L" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "3C" , "B8L-PHEV" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "3H" , "CC" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "4K" , "C8" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "4K" , "C8-PHEV" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "8W" , "B9" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "FY" , "Q5" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , "GE" , "Q6" ) ) ;
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 , DicTypeName . 报 文 车 型 对 应 格 拉 默 车 型 ) ) ;
await _d icItemRepository . InsertManyAsync ( dicItemLst ) ;
//M100派 格车型对应生产线
//M100格拉默 车型对应生产线
dicItemLst = new List < DicItem > ( ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , "C8" , "01" ) ) ;
//dicItemLst.Add(new DicItem(_guidGenerator.Create(), DicTypeName.M100派 格车型对应生产线, "C8 - PHEV", "01"));
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , "B8L" , "05" ) ) ;
//dicItemLst.Add(new DicItem(_guidGenerator.Create(), DicTypeName.M100派 格车型对应生产线, "B8L - PHEV", "05"));
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , "BSMV" , "05" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , "CC" , "05" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , "B9" , "07" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , "Q6" , "07" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , "Q5" , "08" ) ) ;
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . M100派 格车型对应生产线 , DicTypeName . M100派 格车型对应生产线 ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , "C8" , "01" ) ) ;
//dicItemLst.Add(new DicItem(_guidGenerator.Create(), DicTypeName.M100格拉默 车型对应生产线, "C8 - PHEV", "01"));
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , "B8L" , "05" ) ) ;
//dicItemLst.Add(new DicItem(_guidGenerator.Create(), DicTypeName.M100格拉默 车型对应生产线, "B8L - PHEV", "05"));
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , "BSMV" , "05" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , "CC" , "05" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , "B9" , "07" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , "Q6" , "07" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , "Q5" , "08" ) ) ;
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . M100格拉默 车型对应生产线 , DicTypeName . M100格拉默 车型对应生产线 ) ) ;
await _d icItemRepository . InsertManyAsync ( dicItemLst ) ;
//R100派 格车型对应生产线
//R100格拉默 车型对应生产线
dicItemLst = new List < DicItem > ( ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , "Q5" , "02" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , "B9" , "03" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , "CC" , "04" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , "B8L" , "04" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , "C8" , "05" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , "Q6" , "07" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , "BSMV" , "09" ) ) ;
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . R100派 格车型对应生产线 , DicTypeName . R100派 格车型对应生产线 ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , "Q5" , "02" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , "B9" , "03" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , "CC" , "04" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , "B8L" , "04" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , "C8" , "05" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , "Q6" , "07" ) ) ;
dicItemLst . Add ( new DicItem ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , "BSMV" , "09" ) ) ;
await _d icTypeRepository . InsertAsync ( new DicType ( _ guidGenerator . Create ( ) , DicTypeName . R100格拉默 车型对应生产线 , DicTypeName . R100格拉默 车型对应生产线 ) ) ;
await _d icItemRepository . InsertManyAsync ( dicItemLst ) ;
////M100生产线
//dicItemLst = new List<DicItem>();