We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
如题,在以下的示例中,如果我只需要查询 order, user 两张表中字段的信息,怎么排除 shop 表呢?还是说需要另外建一个实体类
@SearchBean( tables = "order o, shop s, user u", // 三表关联 where = "o.shop_id = s.id and o.buyer_id = u.id", // 关联关系 autoMapTo = "o" // 未被 @DbField 注解的字段都映射到 order 表 ) public class OrderVO { private long id; // 订单ID o.id private String orderNo; // 订单号 o.order_no private long amount; // 订单金额 o.amount @DbField("s.name") private String shop; // 店铺名 s.name @DbField("u.name") private String buyer; // 买家名 u.name // 省略 Getter Setter }
The text was updated successfully, but these errors were encountered:
推荐另建一个实体类
Sorry, something went wrong.
No branches or pull requests
如题,在以下的示例中,如果我只需要查询 order, user 两张表中字段的信息,怎么排除 shop 表呢?还是说需要另外建一个实体类
The text was updated successfully, but these errors were encountered: