提交 d020375b 作者: 925993793@qq.com

研究中心-列表默认不展示复合专题

上级 f1403add
...@@ -33,14 +33,14 @@ public interface SubjectMapper extends BaseMapper<Subject> { ...@@ -33,14 +33,14 @@ public interface SubjectMapper extends BaseMapper<Subject> {
Page<SubjectPage> pageList(@Param("subjectCondition") SubjectCondition subjectCondition, Page<SubjectPage> page); Page<SubjectPage> pageList(@Param("subjectCondition") SubjectCondition subjectCondition, Page<SubjectPage> page);
/** /**
*专题分页列表-新 * 专题分页列表-新
* *
* @param subjectCondition 查询条件 * @param subjectCondition 查询条件
* @param page 分页参数 * @param page 分页参数
* @author lkg * @author lkg
* @date 2025/3/25 * @date 2025/3/25
*/ */
Page<SubjectPageVO> pageList_new(Page<SubjectPageVO> page,@Param("subjectCondition") SubjectCondition subjectCondition,@Param("userId") String userId); Page<SubjectPageVO> pageList_new(Page<SubjectPageVO> page, @Param("subjectCondition") SubjectCondition subjectCondition, @Param("userId") String userId);
/** /**
* 专题详情(包含专题分类、专题项目) * 专题详情(包含专题分类、专题项目)
...@@ -50,6 +50,7 @@ public interface SubjectMapper extends BaseMapper<Subject> { ...@@ -50,6 +50,7 @@ public interface SubjectMapper extends BaseMapper<Subject> {
* @date 2025/3/25 * @date 2025/3/25
*/ */
SubjectPage getInfo(@Param("subjectId") String subjectId); SubjectPage getInfo(@Param("subjectId") String subjectId);
/** /**
* 专题分页列表(个人)-研究中心 * 专题分页列表(个人)-研究中心
* *
...@@ -68,7 +69,7 @@ public interface SubjectMapper extends BaseMapper<Subject> { ...@@ -68,7 +69,7 @@ public interface SubjectMapper extends BaseMapper<Subject> {
* @author lkg * @author lkg
* @date 2025/1/14 * @date 2025/1/14
*/ */
Page<SubjectPage> researchCenterFacePageList(@Param("subjectCondition") SubjectCondition subjectCondition, Page<SubjectPage> page,@Param("sql") String sql,@Param("username") String username); Page<SubjectPage> researchCenterFacePageList(@Param("subjectCondition") SubjectCondition subjectCondition, Page<SubjectPage> page, @Param("sql") String sql, @Param("username") String username);
/** /**
* 当前用户可见的专题分页列表(公开和个人非公开)-研究中心 * 当前用户可见的专题分页列表(公开和个人非公开)-研究中心
...@@ -76,11 +77,12 @@ public interface SubjectMapper extends BaseMapper<Subject> { ...@@ -76,11 +77,12 @@ public interface SubjectMapper extends BaseMapper<Subject> {
* @param username 用户名称 * @param username 用户名称
* @param type 分类(1-个人;2-公开;3-个人+公开) * @param type 分类(1-个人;2-公开;3-个人+公开)
* @param subjectName 专题名称 * @param subjectName 专题名称
* @param subjectType 专题类别(1:通用专题;3:研究中心主题专题[复合专题])
* @param page 分页参数 * @param page 分页参数
* @author lkg * @author lkg
* @date 2025/2/8 * @date 2025/2/8
*/ */
Page<Node> visibleList(@Param("username") String username, @Param("type") Integer type, @Param("subjectName") String subjectName, Page<String> page,@Param("environment") String environment,@Param("sql") String sql); Page<Node> visibleList(@Param("username") String username, @Param("type") Integer type, @Param("subjectName") String subjectName, @Param("subjectType") Integer subjectType, Page<String> page, @Param("environment") String environment, @Param("sql") String sql);
/** /**
* 获取专题详情(包含样例文章信息) * 获取专题详情(包含样例文章信息)
...@@ -120,7 +122,7 @@ public interface SubjectMapper extends BaseMapper<Subject> { ...@@ -120,7 +122,7 @@ public interface SubjectMapper extends BaseMapper<Subject> {
*/ */
int ynBelowExcludeGroup(@Param("subjectId") String subjectId, @Param("sourceId") String sourceId); int ynBelowExcludeGroup(@Param("subjectId") String subjectId, @Param("sourceId") String sourceId);
List<String> getBindSubjectIds(@Param("id")String id); List<String> getBindSubjectIds(@Param("id") String id);
String getMinCreateTime(@Param("subjectIdList") List<String> subjectIdList); String getMinCreateTime(@Param("subjectIdList") List<String> subjectIdList);
} }
...@@ -193,6 +193,9 @@ ...@@ -193,6 +193,9 @@
<if test="subjectCondition.username!=null and subjectCondition.username != ''"> <if test="subjectCondition.username!=null and subjectCondition.username != ''">
and d.create_by = #{subjectCondition.username} and d.create_by = #{subjectCondition.username}
</if> </if>
<if test="subjectCondition.subjectType != null">
and d.subject_type = #{subjectCondition.subjectType}
</if>
order by d.create_time desc order by d.create_time desc
</select> </select>
<select id="researchCenterFacePageList" resultType="com.zzsn.event.vo.SubjectPage"> <select id="researchCenterFacePageList" resultType="com.zzsn.event.vo.SubjectPage">
...@@ -236,6 +239,9 @@ ...@@ -236,6 +239,9 @@
<if test="subjectCondition.status!=null"> <if test="subjectCondition.status!=null">
and d.status = #{subjectCondition.status} and d.status = #{subjectCondition.status}
</if> </if>
<if test="subjectCondition.subjectType!=null">
and d.subject_type = #{subjectCondition.subjectType}
</if>
order by d.create_time desc order by d.create_time desc
</select> </select>
...@@ -286,6 +292,9 @@ ...@@ -286,6 +292,9 @@
<if test="subjectName != null and subjectName != ''"> <if test="subjectName != null and subjectName != ''">
and subject_name like concat('%',#{subjectName},'%') and subject_name like concat('%',#{subjectName},'%')
</if> </if>
<if test="subjectType!=null">
and subject_type = #{subjectType}
</if>
<if test="environment != null and environment != ''"> <if test="environment != null and environment != ''">
and environment = #{environment} and environment = #{environment}
</if> </if>
......
...@@ -76,12 +76,13 @@ public interface SubjectService extends IService<Subject> { ...@@ -76,12 +76,13 @@ public interface SubjectService extends IService<Subject> {
* @param username 用户名称 * @param username 用户名称
* @param type 分类(1-个人;2-公开;3-个人+公开) * @param type 分类(1-个人;2-公开;3-个人+公开)
* @param subjectName 专题名称 * @param subjectName 专题名称
* @param subjectName 专题类别(1:通用专题;3:研究中心主题专题[复合专题])
* @param pageNo 当前页 * @param pageNo 当前页
* @param pageSize 每页返回条数 * @param pageSize 每页返回条数
* @author lkg * @author lkg
* @date 2025/2/8 * @date 2025/2/8
*/ */
Page<Node> visiblePageList(String username, Integer type, String subjectName, Integer pageNo, Integer pageSize, String environment,HttpServletRequest request,String flagCode); Page<Node> visiblePageList(String username, Integer type, String subjectName, Integer subjectType, Integer pageNo, Integer pageSize, String environment,HttpServletRequest request,String flagCode);
/** /**
* 获取专题详情(包含样例文章信息) * 获取专题详情(包含样例文章信息)
......
...@@ -291,7 +291,7 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl ...@@ -291,7 +291,7 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl
} }
@Override @Override
public Page<Node> visiblePageList(String username, Integer type, String subjectName, Integer pageNo, Integer pageSize, String environment,HttpServletRequest request,String flagCode) { public Page<Node> visiblePageList(String username, Integer type, String subjectName,Integer subjectType, Integer pageNo, Integer pageSize, String environment,HttpServletRequest request,String flagCode) {
Page<String> page = new Page<>(pageNo, pageSize); Page<String> page = new Page<>(pageNo, pageSize);
String sql = ""; String sql = "";
if(StringUtils.isNotBlank(flagCode)){ if(StringUtils.isNotBlank(flagCode)){
...@@ -309,7 +309,7 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl ...@@ -309,7 +309,7 @@ public class SubjectServiceImpl extends ServiceImpl<SubjectMapper, Subject> impl
log.info("visiblePageList sql:{}",sql); log.info("visiblePageList sql:{}",sql);
} }
log.info("visiblePageList username:{},type:{},subjectName:{},environment:{},sql:{}",username,type,subjectName,environment,sql); log.info("visiblePageList username:{},type:{},subjectName:{},environment:{},sql:{}",username,type,subjectName,environment,sql);
return baseMapper.visibleList(username, type, subjectName, page,environment,sql); return baseMapper.visibleList(username, type, subjectName,subjectType, page,environment,sql);
} }
@Override @Override
......
...@@ -45,4 +45,7 @@ public class SubjectCondition { ...@@ -45,4 +45,7 @@ public class SubjectCondition {
private String column; private String column;
/**排序方式*/ /**排序方式*/
private String order; private String order;
/*专题类别(1:通用专题;3:研究中心主题专题[复合专题])*/
private Integer subjectType = 1;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论