From 7f9435bb4a074b4964f290c4d6905e0e233a19ec Mon Sep 17 00:00:00 2001
From: Junjie <fallin.jie@qq.com>
Date: 星期五, 21 十一月 2025 12:56:18 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java | 20 ++------------------
1 files changed, 2 insertions(+), 18 deletions(-)
diff --git a/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java
index 7a6bac4..7068887 100644
--- a/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/BasCrnpServiceImpl.java
@@ -1,28 +1,12 @@
package com.zy.asrs.service.impl;
-import com.baomidou.mybatisplus.service.impl.ServiceImpl;
-import com.core.common.Cools;
-import com.core.exception.CoolException;
-import com.zy.asrs.entity.BasCrnp;
import com.zy.asrs.mapper.BasCrnpMapper;
+import com.zy.asrs.entity.BasCrnp;
import com.zy.asrs.service.BasCrnpService;
+import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
@Service("basCrnpService")
public class BasCrnpServiceImpl extends ServiceImpl<BasCrnpMapper, BasCrnp> implements BasCrnpService {
- @Override
- public BasCrnp checkSiteStatus(Integer crnId) {
- BasCrnp crnp = this.selectById(crnId);
- if (Cools.isEmpty(crnp)) {
- throw new CoolException(crnId + "鍙峰爢鍨涙満涓嶅瓨鍦�");
- }
- if ("N".equals(crnp.getInEnable())) {
- throw new CoolException(crnId + "鍫嗗灈鏈轰笉鍙叆");
- }
- if ("N".equals(crnp.getOutEnable())) {
- throw new CoolException(crnId + "鍫嗗灈鏈轰笉鍙嚭");
- }
- return crnp;
- }
}
--
Gitblit v1.9.1