From adf588cd4322f705cfa06d87e18a4075709df16f Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 19 三月 2024 16:49:11 +0800
Subject: [PATCH] 卡口过车数据一致性
---
ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java b/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java
index 7bd7801..b8cf58c 100644
--- a/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java
+++ b/ycl-server/src/main/java/com/ycl/platform/service/impl/CheckResultServiceImpl.java
@@ -1,5 +1,6 @@
package com.ycl.platform.service.impl;
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.ycl.exception.ServiceException;
import com.ycl.platform.domain.entity.CheckResult;
import com.ycl.platform.domain.form.ManualScoreForm;
@@ -151,4 +152,15 @@
baseMapper.updateById(checkResult);
return Result.ok();
}
+
+ @Override
+ public Result publishById(String id) {
+ CheckResult checkResult = new CheckResult();
+ checkResult.setId(Integer.valueOf(id));
+ checkResult.setPublish(1);
+ if(baseMapper.updateById(checkResult) > 0) {
+ return Result.ok("鍙戝竷鎴愬姛");
+ }
+ return Result.error("鍙戝竷澶辫触");
+ }
}
--
Gitblit v1.8.0