liujie
2026-06-09 642330d06db0dc17fbcc3aae3ac7600f291d500d
xp-robotaxi-account-boot/src/main/java/com/xiaopeng/account/controller/XpOperationsUserNotificationController.java
@@ -5,6 +5,9 @@
import com.xiaopeng.api.model.account.XpOperationsUserNotification;
import com.xiaopeng.common.core.domain.R;
import com.xiaopeng.common.core.web.page.PageInfo;
import com.xiaopeng.common.log.annotation.AdminOperationLog;
import com.xiaopeng.common.log.enums.AdminBusinessType;
import com.xiaopeng.common.log.enums.AdminOperationType;
import com.xiaopeng.common.security.service.TokenService;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
@@ -68,6 +71,12 @@
    @GetMapping("/maintenance-app/api/v1/notification/read")
    @ApiOperation(value = "操作已读", tags = "运维APP-消息通知")
    @AdminOperationLog(
            businessType = AdminBusinessType.OPERATIONS_USER_NOTIFICATION_MANAGEMENT,
            operationType = AdminOperationType.EDIT,
            contentExpression = "'操作通知已读,notificationId=' + #p0",
            appendRequestData = false
    )
    public R<?> readNotification(@RequestParam Long notificationId){
        notificationService.lambdaUpdate().set(XpOperationsUserNotification::getReadStatus, 1).eq(XpOperationsUserNotification::getId, notificationId).update();
        return R.ok();
@@ -75,6 +84,12 @@
    @PostMapping(value = "/logan/inner/v1/notification/addBatch")
    @ApiOperation(value = "批量添加通知", tags = {"内部接口"})
    @AdminOperationLog(
            businessType = AdminBusinessType.OPERATIONS_USER_NOTIFICATION_MANAGEMENT,
            operationType = AdminOperationType.ADD,
            content = "批量添加运维人员消息通知",
            appendRequestData = true
    )
    public R<?> addNotificationBatch(@RequestBody List<XpOperationsUserNotification> notifications) {
        notificationService.addNotificationBatch(notifications);
        return R.ok();