|
|
@@ -11,7 +11,7 @@
|
|
|
<result column="sex" property="sex"/>
|
|
|
<result column="ctime" property="ctime"/>
|
|
|
<result column="content" property="content" />
|
|
|
- <collection column="userid" property="books" ofType="com.zheng.cms.dao.model.Book">
|
|
|
+ <collection column="userid" property="books" ofType="com.zheng.cms.dao.model.CmsBook">
|
|
|
<id column="b_id" property="id"/>
|
|
|
<result column="userid" property="userid"/>
|
|
|
<result column="name" property="name"/>
|
|
|
@@ -24,9 +24,9 @@
|
|
|
u.id u_id,u.username,u.password,u.nickname,u.sex,u.ctime,u.content,
|
|
|
b.id b_id,b.userid,b.name
|
|
|
from
|
|
|
- user u
|
|
|
+ cms_user u
|
|
|
left join
|
|
|
- book b
|
|
|
+ cms_book b
|
|
|
on
|
|
|
u.id=b.userid
|
|
|
where
|