|
@@ -316,6 +316,7 @@
|
|
|
inner join sys_user u on u.id=m.create_by
|
|
inner join sys_user u on u.id=m.create_by
|
|
|
where m.deleted = 0 and m.org_id=#{request.orgId} and m.is_open = 1
|
|
where m.deleted = 0 and m.org_id=#{request.orgId} and m.is_open = 1
|
|
|
<include refid="pageRequest"/>
|
|
<include refid="pageRequest"/>
|
|
|
|
|
+ order by m.update_time desc
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectPageData2" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
<select id="selectPageData2" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
|
select
|
|
select
|
|
@@ -326,6 +327,7 @@
|
|
|
where m.deleted = 0 and m.org_id=#{request.curOrgId} and m.is_open = 1
|
|
where m.deleted = 0 and m.org_id=#{request.curOrgId} and m.is_open = 1
|
|
|
<include refid="pageRequest"/>
|
|
<include refid="pageRequest"/>
|
|
|
or(m.deleted = 0 and m.create_by=#{request.userId} <include refid="pageRequest"/>)
|
|
or(m.deleted = 0 and m.create_by=#{request.userId} <include refid="pageRequest"/>)
|
|
|
|
|
+ order by m.update_time desc
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectPageData3" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
<select id="selectPageData3" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
|
select
|
|
select
|
|
@@ -336,6 +338,7 @@
|
|
|
where( m.deleted = 0 and m.org_id=#{request.curOrgId} and m.is_open = 1 <include refid="pageRequest"/>)
|
|
where( m.deleted = 0 and m.org_id=#{request.curOrgId} and m.is_open = 1 <include refid="pageRequest"/>)
|
|
|
or(m.deleted = 0 and m.create_by=#{request.userId} <include refid="pageRequest"/>)
|
|
or(m.deleted = 0 and m.create_by=#{request.userId} <include refid="pageRequest"/>)
|
|
|
or(m.deleted = 0 and m.org_path like concat(#{request.orgPath},'%') and m.is_open = 1<include refid="pageRequest"/>)
|
|
or(m.deleted = 0 and m.org_path like concat(#{request.orgPath},'%') and m.is_open = 1<include refid="pageRequest"/>)
|
|
|
|
|
+ order by m.update_time desc
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectPageData4" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
<select id="selectPageData4" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
|
select
|
|
select
|
|
@@ -350,6 +353,7 @@
|
|
|
or(m.deleted = 0 and m.org_id in <foreach collection="request.orgIdList" item="item" open="(" separator="," close=")">
|
|
or(m.deleted = 0 and m.org_id in <foreach collection="request.orgIdList" item="item" open="(" separator="," close=")">
|
|
|
#{item}
|
|
#{item}
|
|
|
</foreach> and m.is_open = 1<include refid="pageRequest"/>)
|
|
</foreach> and m.is_open = 1<include refid="pageRequest"/>)
|
|
|
|
|
+ order by m.update_time desc
|
|
|
</select>
|
|
</select>
|
|
|
<select id="selectPageData5" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
<select id="selectPageData5" resultType="com.xunmei.common.core.domain.edu.vo.SysLearningMaterialsPageVo">
|
|
|
select
|
|
select
|
|
@@ -360,5 +364,6 @@
|
|
|
where m.deleted = 0 and
|
|
where m.deleted = 0 and
|
|
|
m.org_path like concat(#{request.orgPath},'%') and m.is_open = 1
|
|
m.org_path like concat(#{request.orgPath},'%') and m.is_open = 1
|
|
|
<include refid="pageRequest"/>
|
|
<include refid="pageRequest"/>
|
|
|
|
|
+ order by m.update_time desc
|
|
|
</select>
|
|
</select>
|
|
|
-</mapper>
|
|
|
|
|
|
|
+</mapper>
|