From 752e00503f672ddfe2066afb6c235721a3a912b5 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期二, 19 十一月 2024 10:25:55 +0800
Subject: [PATCH] 2024.11.19 各项修正

---
 src/main/kotlin/cn/flightfeather/supervision/domain/repository/PracticalOperationRep.kt |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/domain/repository/PracticalOperationRep.kt b/src/main/kotlin/cn/flightfeather/supervision/domain/repository/PracticalOperationRep.kt
index f50322b..9412311 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/domain/repository/PracticalOperationRep.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/domain/repository/PracticalOperationRep.kt
@@ -1,6 +1,6 @@
 package cn.flightfeather.supervision.domain.repository
 
-import cn.flightfeather.supervision.common.exception.ResponseErrorException
+import cn.flightfeather.supervision.common.exception.BizException
 import cn.flightfeather.supervision.domain.entity.PracticalOperation
 import cn.flightfeather.supervision.domain.entity.PracticalOperationRecord
 import cn.flightfeather.supervision.domain.mapper.PracticalOperationMapper
@@ -45,14 +45,14 @@
      * @param stateId 浜嬪姟鐨勭粨鏋滅姸鎬乮d锛堟牴鎹瘡涓簨鍔$殑瀹氫箟鍐冲畾锛�
      */
     fun executeOperation(userId: String, operationId: Int, stateId: String): PracticalOperationRecord? {
-        val userInfo = userInfoRep.getUser(userId) ?: throw ResponseErrorException("鐢ㄦ埛涓嶅瓨鍦紝鏃犳硶鎿嶄綔")
+        val userInfo = userInfoRep.getUser(userId) ?: throw BizException("鐢ㄦ埛涓嶅瓨鍦紝鏃犳硶鎿嶄綔")
         val operation =
-            practicalOperationMapper.selectByPrimaryKey(operationId) ?: throw ResponseErrorException("璇ュ疄鎿嶄簨鍔′笉瀛樺湪")
+            practicalOperationMapper.selectByPrimaryKey(operationId) ?: throw BizException("璇ュ疄鎿嶄簨鍔′笉瀛樺湪")
         val stateRangeIds = operation.poStateRangeId.split(";")
         val stateRangeNames = operation.poStateRange.split(";")
-        if (stateRangeIds.size != stateRangeNames.size) throw ResponseErrorException("浜嬪姟鎵ц缁撴灉鐨勫彲閫夌姸鎬侀厤缃敊璇紒")
+        if (stateRangeIds.size != stateRangeNames.size) throw BizException("浜嬪姟鎵ц缁撴灉鐨勫彲閫夌姸鎬侀厤缃敊璇紒")
         val index = stateRangeIds.indexOf(stateId)
-        if (index == -1) throw ResponseErrorException("浜嬪姟鎵ц鐨勭姸鎬佹棤鏁�")
+        if (index == -1) throw BizException("浜嬪姟鎵ц鐨勭姸鎬佹棤鏁�")
         val record = PracticalOperationRecord().apply {
             poId = operationId
             poTitle = operation.poTitle

--
Gitblit v1.9.3