Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

核销订单报错 #733

Closed
yejunhao opened this issue Jan 5, 2025 · 2 comments
Closed

核销订单报错 #733

yejunhao opened this issue Jan 5, 2025 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@yejunhao
Copy link

yejunhao commented Jan 5, 2025

碰到问题,请在 https://github.com/YunaiV/ruoyi-vue-pro/issues 搜索是否存在相似的 issue。

不按照模板提交的 issue,会被系统自动删除。

基本信息

  • ruoyi-vue-pro 版本:2.4.0
  • 操作系统:开发环境,win+idea
  • 数据库:mysql

你猜测可能的原因

接口:/admin-api/trade/order/page?pageNo=1&pageSize=10&deliveryType=2&pickUpStoreId=1
@TableField(typeHandler = JacksonTypeHandler.class)
private Map<Long, Integer> giveCouponTemplateCounts;
这个注解报错了

复现步骤

1.点击核销订单

报错信息

Caused by: org.apache.ibatis.executor.result.ResultMapException: Error attempting to get column 'give_coupon_template_counts' from result set. Cause: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize value of type java.util.LinkedHashMap<java.lang.Long,java.lang.Integer> from Integer value (token JsonToken.VALUE_NUMBER_INT)
at [Source: REDACTED (StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION disabled); line: 1, column: 1]
带上必要的截图
1736073802746

@YunaiV
Copy link
Owner

YunaiV commented Jan 5, 2025

maven 刷新下,然后搞一条新数据,试试看?

@YunaiV
Copy link
Owner

YunaiV commented Jan 17, 2025

已经修复。

@YunaiV YunaiV closed this as completed Jan 17, 2025
@YunaiV YunaiV self-assigned this Jan 17, 2025
@YunaiV YunaiV added question Further information is requested bug Something isn't working and removed question Further information is requested labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants