|
@@ -12,7 +12,7 @@
|
12
|
12
|
<select id="findAll" resultType="java.util.Map">
|
13
|
13
|
select r.resourceid,r.resourcename,r.createtime,r.suffix,u.username createname,r.resourceurl,rd.lsbid,
|
14
|
14
|
rd.directorid,r.resourceclass,r.resourcetype,r.readcount,r.downcount,r.pdfurl,r.converted,r.resourcecover
|
15
|
|
- ,r.comm,r.duration,r.resourcesize,r.mp4code,r.createid,r.belong
|
|
15
|
+ ,r.comm,r.duration,r.resourcesize,r.mp4code,r.createid,r.belong,r.schoolid
|
16
|
16
|
,r.resourcegrade,r.source,r.year,r.region,r.schoolname
|
17
|
17
|
,(select count(*) from t_resource r2 where r2.resourcepid=r.resourceid and r.resourcestate=1)sharenum
|
18
|
18
|
from t_resource r left join t_user u on u.userid=r.createid
|
|
@@ -140,6 +140,7 @@
|
140
|
140
|
<result property="lsbnum" column="lsbnum"/>
|
141
|
141
|
<result property="directornum" column="directornum"/>
|
142
|
142
|
<result property="areaall" column="areaall"/>
|
|
143
|
+ <result property="sharenum" column="sharenum"/>
|
143
|
144
|
<collection property="directors" ofType="com.xhkjedu.sstudy.vo.subjectbook.DirectorVo" javaType="java.util.List">
|
144
|
145
|
<result property="lsbid" column="lsbid"/>
|
145
|
146
|
<result property="directorid" column="directorid"/>
|
|
@@ -155,6 +156,7 @@
|
155
|
156
|
select r.*,u.username createname,rd.lsbid,rd.directorid,d.directorall as directorname
|
156
|
157
|
,sb.level,sb.subjectid,s.subjectname,v.versionname,sb.lsbname
|
157
|
158
|
,(select a.areaall from t_areazone a where a.areacode=r.region)areaall
|
|
159
|
+ ,(select count(*) from t_resource r2 where r2.resourcepid=r.resourceid and r.resourcestate=1)sharenum
|
158
|
160
|
from t_resource r left join t_user u on u.userid=r.createid
|
159
|
161
|
left join t_resource_director rd on r.resourceid = rd.resourceid
|
160
|
162
|
left join t_director d on rd.directorid = d.directorid
|