mirror of
https://gitee.com/ccnetcore/Yi
synced 2026-03-10 19:50:53 +08:00
添加es服务
This commit is contained in:
@@ -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");
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user