From be78a0589b47fdda7a941eaef18688ef5168a048 Mon Sep 17 00:00:00 2001 From: sxu <602087911@qq.com> Date: Sat, 1 Mar 2025 10:13:22 +0800 Subject: [PATCH] fix ClassCastException --- .../core/account/v3/service/impl/AccInfoServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/account/v3/service/impl/AccInfoServiceImpl.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/account/v3/service/impl/AccInfoServiceImpl.java index 0187b738..1f6e2afd 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/account/v3/service/impl/AccInfoServiceImpl.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/account/v3/service/impl/AccInfoServiceImpl.java @@ -97,7 +97,7 @@ public class AccInfoServiceImpl extends ServiceImpl impl @Override public AccInfoVO getAccInfoVoByCustId(Long custId) { log.info("获取账户(钱包)信息,入参={}", custId); - AccInfoVO accInfoVO = ((AccInfoMapper)this.baseMapper).getAccInfoVOByCustId(custId); + AccInfoVO accInfoVO = (AccInfoVO) ((AccInfoMapper)this.baseMapper).getAccInfoVOByCustId(custId); if (ObjectUtil.isNull(accInfoVO)) { throw new ServiceException("账户不存在"); } else {