提交代码

master
rong.liu 2 years ago
parent c8ded0f143
commit c80c212572
  1. 3
      src/main/java/com/huoran/iasf/common/shiro/ShiroConfig.java
  2. 13
      src/main/java/com/huoran/iasf/entity/SysContent.java
  3. 24
      src/main/java/com/huoran/iasf/mapper/xml/SysContentMapper.xml
  4. 8
      src/main/java/com/huoran/iasf/service/impl/SysContentServiceImpl.java
  5. 12
      src/main/java/com/huoran/iasf/vo/req/PageContentReqVO.java
  6. 2
      src/main/java/com/huoran/iasf/vo/resp/PageContentRespVO.java

@ -25,7 +25,7 @@ import java.util.Map;
* @date 2022年7月28日*/
@Configuration
//@Configuration
@EnableConfigurationProperties(FileUploadProperties.class)
public class ShiroConfig {
@ -180,6 +180,5 @@ public class ShiroConfig {
return authorizationAttributeSourceAdvisor;
}
}

@ -159,4 +159,17 @@ public class SysContent implements Serializable {
@ApiModelProperty(value = "文章附件")
@TableField(exist = false)
List<SysContentFile> fileList;
@ApiModelProperty(value = "刊物名称")
private String periodicalName;
@ApiModelProperty(value = "卷")
private String reel;
@ApiModelProperty(value = "文献号")
private String documentNumber;
@ApiModelProperty(value = "文章关键字")
private String articleKeyWord;
}

@ -36,7 +36,29 @@
CONCAT('%',#{req.column},'%')
</if>
ORDER BY c.create_time desc
<if test="req.templateStatus ==1">
AND c.template_status = #{req.templateStatus}
</if>
<if test="req.modifiedTimeSort ==0">
ORDER BY c.update_time desc
</if>
<if test="req.modifiedTimeSort ==1">
ORDER BY c.update_time asc
</if>
<if test="req.publicationTimeSort ==0">
ORDER BY c.release_time desc
</if>
<if test="req.publicationTimeSort ==1">
ORDER BY c.release_time asc
</if>
</select>

@ -57,6 +57,14 @@ public class SysContentServiceImpl extends ServiceImpl<SysContentMapper, SysCont
@Override
public R articlePaginationList(PageContentReqVO reqVO) {
Page<PageContentRespVO> page = new Page<PageContentRespVO>(reqVO.getPageNum(), reqVO.getPageSize());
if (reqVO.getModifiedTimeSort() == null && reqVO.getPublicationTimeSort() == null) {
reqVO.setPublicationTimeSort(0);
}
if (reqVO.getTemplateStatus() == null) {
//模板状态(0禁用;1启用)
reqVO.setTemplateStatus(0);
}
IPage<PageContentRespVO> pageList = baseMapper.articlePaginationList(page, reqVO);
return R.success(pageList);
}

@ -47,6 +47,16 @@ public class PageContentReqVO extends PageReqVO {
@ApiModelProperty(value = "召开类型(1.即将召开 2.已经召开)")
private Integer convokeType;
private Integer convokeType;
@ApiModelProperty(value = "修改时间排序(0默认倒序 1升序)")
private Integer modifiedTimeSort;
@ApiModelProperty(value = "发布时间排序(0默认倒序 1升序)")
private Integer publicationTimeSort;
@ApiModelProperty(value = "模板状态(0禁用;1启用)")
private Integer templateStatus;
}

@ -96,7 +96,7 @@ public class PageContentRespVO {
private Integer isDisable;
@ApiModelProperty(value = "是否禁用(0默认,0启用 1禁用)")
@ApiModelProperty(value = "标签名称")
private String labelName;

Loading…
Cancel
Save