添加es服务

This commit is contained in:
橙子
2021-11-09 18:55:11 +08:00
parent d9fe0895bc
commit bf9c86f7b7
2 changed files with 17 additions and 13 deletions

View File

@@ -49,16 +49,16 @@ namespace Yi.Framework.ElasticSearchProcessor
//【判断增删改es进行相应的操作】
//switch (spuCQRSQueueModel.CQRSType)
//{
//case (int)SPUCQRSQueueModelType.Insert:
//case (int)SPUCQRSQueueModelType.Update:
// {
// Goods goods = this._ISearchService.GetGoodsBySpuId(spuCQRSQueueModel.SpuId);
// this._IElasticSearchService.InsertOrUpdata<Goods>(goods);
// break;
// }
//case (int)SPUCQRSQueueModelType.Delete:
// this._IElasticSearchService.Delete<Goods>(spuCQRSQueueModel.SpuId.ToString());
// break;
// case (int)SPUCQRSQueueModelType.Insert:
// case (int)SPUCQRSQueueModelType.Update:
// {
// Goods goods = this._ISearchService.GetGoodsBySpuId(spuCQRSQueueModel.SpuId);
// this._IElasticSearchService.InsertOrUpdata<Goods>(goods);
// break;
// }
// case (int)SPUCQRSQueueModelType.Delete:
// this._IElasticSearchService.Delete<Goods>(spuCQRSQueueModel.SpuId.ToString());
// break;
// default:
// throw new Exception("wrong spuCQRSQueueModel.CQRSType");
//}