mybatis 解析Integer为0的属性,解析成空字符串

当status或者hourStatus为0时

mybatis 解析Integer为0的属性,解析成空字符串 你会发现sql上根本没有status、hour_status字段

原因是当type为Integer类型,并且type值为0时,该if判断为false。当type为0时,Mybatis会解析成''  空字符串。

修改为

mybatis 解析Integer为0的属性,解析成空字符串

问题解决 

相关文章:

  • 2022-12-23
  • 2022-03-09
  • 2021-09-11
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2021-12-21
  • 2021-10-15
  • 2021-08-13
  • 2021-09-13
相关资源
相似解决方案