master:系统调优;

pull/1121/head
liujiang 2025-10-11 23:51:17 +08:00
parent 1f39d91b3e
commit cdeea812d6
1 changed files with 2 additions and 2 deletions

View File

@ -524,7 +524,7 @@ public class GtAndFhbBizController extends BaseController {
*/
@PreAuthorize("@ss.hasAnyRoles('admin,general_admin')")
@PostMapping("/sync-es/{storeId}")
public void syncToEs(@PathVariable("storeId") Long storeId) {
public R<Integer> syncToEs(@PathVariable("storeId") Long storeId) {
// 将公共的商品同步到ES
List<StoreProduct> storeProdList = this.storeProdMapper.selectList(new LambdaQueryWrapper<StoreProduct>()
.eq(StoreProduct::getDelFlag, Constants.UNDELETED).eq(StoreProduct::getStoreId, storeId));
@ -603,7 +603,7 @@ public class GtAndFhbBizController extends BaseController {
log.error("批量新增到 ES 失败", e);
fsNotice.sendMsg2DefaultChat(storeId + ",批量新增商品到 ES 失败", e.getMessage());
}
return R.ok();
}
/**