1、formular :是用来使用聚合函数的sql语句查询数据库的数据,将数据保存在求和字段 比如 totalPrice中
格式:使用()括起来
使用sql语句
使用别名
比如:<property name ="totalPrice" formular="(select sum(c.getName()) from b_customer c)"></property>
1、formular :是用来使用聚合函数的sql语句查询数据库的数据,将数据保存在求和字段 比如 totalPrice中
格式:使用()括起来
使用sql语句
使用别名
比如:<property name ="totalPrice" formular="(select sum(c.getName()) from b_customer c)"></property>