From d3e363c454df3cc457f1cf8b46d18cae3bc14eb5 Mon Sep 17 00:00:00 2001
From: liurunyu <lry9898@163.com>
Date: 星期日, 27 四月 2025 14:06:53 +0800
Subject: [PATCH] 虚拟卡占用状态设置拦截器修改

---
 pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/VirtualCardInUseInterceptor.java |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/VirtualCardInUseInterceptor.java b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/VirtualCardInUseInterceptor.java
index 75c46e1..e9caab5 100644
--- a/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/VirtualCardInUseInterceptor.java
+++ b/pipIrr-platform/pipIrr-global/src/main/java/com/dy/pipIrrGlobal/config/VirtualCardInUseInterceptor.java
@@ -42,11 +42,11 @@
         if (entity instanceof SeVirtualCard) {
             MappedStatement mappedStatement = (MappedStatement) invocation.getArgs()[MAPPED_STATEMENT_INDEX];
             SqlCommandType commandType = mappedStatement.getSqlCommandType();
-            if (commandType.equals(SqlCommandType.INSERT)) {
+            if (commandType.equals(SqlCommandType.UPDATE)) {
                 Class<?> entityClass = entity.getClass();
                 Method setInUse = null;
                 try {
-                    setInUse = entityClass.getMethod(BASE_FIELD_SET_PRIMARY_KEY_FUNTION_SETINUSE, Long.class);
+                    setInUse = entityClass.getMethod(BASE_FIELD_SET_PRIMARY_KEY_FUNTION_SETINUSE, Byte.class);
                 } catch (Exception e) {
                     //褰揺ntityClass娌℃湁setInUse鏂规硶鏃讹紝浼氭姏鍑哄紓甯�
                 }

--
Gitblit v1.8.0