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

dao.func返回的类型能不能是object类? #675

Closed
wangyingdong opened this issue Jun 20, 2014 · 2 comments
Closed

dao.func返回的类型能不能是object类? #675

wangyingdong opened this issue Jun 20, 2014 · 2 comments
Assignees
Milestone

Comments

@wangyingdong
Copy link

dao.func(Sale.class, "sum", "Amount", Cnd.where("Status", "=", "success"))
数据库SqlServer2005查出来的结果是有小数的,但接口返回的int类型。

@wendal
Copy link
Member

wendal commented Jun 20, 2014

接口已经如此,改不了的

@wendal wendal closed this as completed Jun 20, 2014
zozoh added a commit that referenced this issue Aug 12, 2014
@zozoh zozoh reopened this Aug 12, 2014
@zozoh
Copy link
Member

zozoh commented Aug 12, 2014

添加了几个小函数,因为 func 出来的可能是浮点,顺手加上咯

@zozoh zozoh closed this as completed Aug 12, 2014
@zozoh zozoh added Dao labels Aug 12, 2014
@zozoh zozoh added this to the 1.b.51 milestone Aug 12, 2014
@zozoh zozoh self-assigned this Aug 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants
@zozoh @wendal @wangyingdong and others