dibo-software / diboot

写的更少, 性能更好 -> 为开发人员打造的低代码开发平台。mybatis-plus关联查询,关联无SQL,性能高10倍,前后端代码本地可视化生成,flowable工作流,spring cloud微服务等全方位赋能!

Home Page:https://www.diboot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BindCount bug

wang1784594241 opened this issue · comments

实体设置了统计字段

@TableField(exist = false)
@BindCount(entity = Dept.class, condition = "this.id=parent_id")
@ApiModelProperty("社区小区数量")
private Long childrenCount = 0L;

全局配置了数字为null返回-1,结果发现某页有一条统计大于0的数据时本该统计为0的列统计值都是-1。断点跟踪发现是ResultAssembler 101行 beanWrapper.setPropertyValue(setterFieldName, matchedValues); matchedValues值是list,类型不匹配导致赋值覆盖为null了

commented

谢谢反馈,已收录,后续会排查确认。

commented

已重构BindCount的实现方案,留意下个版本发布公告。