Browse Source

参考文献完成

master
ccsens_zhengzhichuan 1 month ago
parent
commit
c661adcad7
  1. 71
      research-admin/src/main/java/com/research/web/controller/client/shs/ShsCkwxController.java
  2. 32
      research-generator/src/main/resources/mbg.xml
  3. 75
      research-system/src/main/java/com/research/system/domain/dto/ShsCkwxDto.java
  4. 117
      research-system/src/main/java/com/research/system/domain/po/ShsCkwxInfo.java
  5. 554
      research-system/src/main/java/com/research/system/domain/po/ShsCkwxInfoExample.java
  6. 68
      research-system/src/main/java/com/research/system/domain/vo/ShsCkwxVo.java
  7. 21
      research-system/src/main/java/com/research/system/persist/dao/ShsCkwxDao.java
  8. 29
      research-system/src/main/java/com/research/system/service/ShsCkwxService.java
  9. 120
      research-system/src/main/java/com/research/system/service/impl/ShsCkwxServiceImpl.java
  10. 64
      research-system/src/main/resources/mapper/dao/ShsCkwxDao.xml
  11. 236
      research-system/src/main/resources/mapper/system/ShsCkwxInfoMapper.xml

71
research-admin/src/main/java/com/research/web/controller/client/shs/ShsCkwxController.java

@ -0,0 +1,71 @@
package com.research.web.controller.client.shs;
import com.github.pagehelper.PageInfo;
import com.research.common.core.domain.BaseDto;
import com.research.common.core.domain.JsonResponse;
import com.research.system.domain.dto.CommonDto;
import com.research.system.domain.dto.ShsCkwxDto;
import com.research.system.domain.vo.ShsCkwxVo;
import com.research.system.service.ShsCkwxService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @Author zzc
* @Package com.research.web.controller.client.shs
* @Date 2025/8/16 14:40
* @description:
*/
@RestController
@RequestMapping("/literature")
@Api(tags = "参考文献相关")
@Slf4j
public class ShsCkwxController {
@Resource
private ShsCkwxService service;
@ApiOperation(value = "查询平台")
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<PageInfo<ShsCkwxVo.Result>> queryList(BaseDto<ShsCkwxDto.Query> query){
return JsonResponse.ok(new PageInfo<>(service.queryList(query.getParam(), query.getPageNum(), query.getPageSize())));
}
@ApiOperation(value = "查询平台")
@RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<Integer> add(ShsCkwxDto.Add dto){
return JsonResponse.ok(service.add(dto));
}
@ApiOperation(value = "查询平台")
@RequestMapping(value = "/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<Integer> del(CommonDto.DelDto dto){
return JsonResponse.ok(service.del(dto));
}
@ApiOperation(value = "查询平台")
@RequestMapping(value = "/classify/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<PageInfo<ShsCkwxVo.CategoryResult>> queryCategoryList(BaseDto<ShsCkwxDto.CategoryQuery> query){
return JsonResponse.ok(new PageInfo<>(service.queryCategoryList(query.getParam(), query.getPageNum(), query.getPageSize())));
}
@ApiOperation(value = "查询平台")
@RequestMapping(value = "/classify/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<Integer> addCategory(ShsCkwxDto.CategoryAdd dto){
return JsonResponse.ok(service.addCategory(dto));
}
@ApiOperation(value = "查询平台")
@RequestMapping(value = "/classify/del", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<Integer> delCategory(CommonDto.DelDto dto){
return JsonResponse.ok(service.delCategory(dto));
}
}

32
research-generator/src/main/resources/mbg.xml

@ -63,23 +63,23 @@
<!-- <table tableName="tms_tenant_config" domainObjectName="TmsTenantConfig" enableDeleteByExample="false"/>-->
<!-- <table tableName="tms_tenant_srv_relation" domainObjectName="TmsTenantSrvRelation" enableDeleteByExample="false"/>-->
<table tableName="ach_achievement" domainObjectName="AchAchievement" enableDeleteByExample="false"/>
<table tableName="ach_achievement_category" domainObjectName="AchAchievementCategory" enableDeleteByExample="false"/>
<table tableName="fud_fund_record" domainObjectName="FudFundRecord" enableDeleteByExample="false"/>
<table tableName="kts_kt_group" domainObjectName="KtsKtGroup" enableDeleteByExample="false"/>
<table tableName="kts_kt_group_member" domainObjectName="KtsKtGroupMember" enableDeleteByExample="false"/>
<table tableName="met_meeting_participant" domainObjectName="MetMeetingParticipant" enableDeleteByExample="false"/>
<table tableName="met_meeting_record" domainObjectName="MetMeetingRecord" enableDeleteByExample="false"/>
<table tableName="prj_proj_document" domainObjectName="PrjProjDocument" enableDeleteByExample="false"/>
<table tableName="prj_proj_info" domainObjectName="PrjProjInfo" enableDeleteByExample="false"/>
<table tableName="prj_proj_org" domainObjectName="PrjProjOrg" enableDeleteByExample="false"/>
<table tableName="shs_ckwx_category" domainObjectName="ShsCkwxCategory" enableDeleteByExample="false"/>
<!-- <table tableName="ach_achievement" domainObjectName="AchAchievement" enableDeleteByExample="false"/>-->
<!-- <table tableName="ach_achievement_category" domainObjectName="AchAchievementCategory" enableDeleteByExample="false"/>-->
<!-- <table tableName="fud_fund_record" domainObjectName="FudFundRecord" enableDeleteByExample="false"/>-->
<!-- <table tableName="kts_kt_group" domainObjectName="KtsKtGroup" enableDeleteByExample="false"/>-->
<!-- <table tableName="kts_kt_group_member" domainObjectName="KtsKtGroupMember" enableDeleteByExample="false"/>-->
<!-- <table tableName="met_meeting_participant" domainObjectName="MetMeetingParticipant" enableDeleteByExample="false"/>-->
<!-- <table tableName="met_meeting_record" domainObjectName="MetMeetingRecord" enableDeleteByExample="false"/>-->
<!-- <table tableName="prj_proj_document" domainObjectName="PrjProjDocument" enableDeleteByExample="false"/>-->
<!-- <table tableName="prj_proj_info" domainObjectName="PrjProjInfo" enableDeleteByExample="false"/>-->
<!-- <table tableName="prj_proj_org" domainObjectName="PrjProjOrg" enableDeleteByExample="false"/>-->
<!-- <table tableName="shs_ckwx_category" domainObjectName="ShsCkwxCategory" enableDeleteByExample="false"/>-->
<table tableName="shs_ckwx_info" domainObjectName="ShsCkwxInfo" enableDeleteByExample="false"/>
<table tableName="shs_lib_info" domainObjectName="ShsLibInfo" enableDeleteByExample="false"/>
<table tableName="shs_syff_category" domainObjectName="ShsSyffCategory" enableDeleteByExample="false"/>
<table tableName="srv_modules" domainObjectName="SrvModules" enableDeleteByExample="false"/>
<table tableName="res_platform" domainObjectName="ResPlatform" enableDeleteByExample="false"/>
<table tableName="shs_res_device" domainObjectName="ShsResDevice" enableDeleteByExample="false"/>
<!-- <table tableName="shs_lib_info" domainObjectName="ShsLibInfo" enableDeleteByExample="false"/>-->
<!-- <table tableName="shs_syff_category" domainObjectName="ShsSyffCategory" enableDeleteByExample="false"/>-->
<!-- <table tableName="srv_modules" domainObjectName="SrvModules" enableDeleteByExample="false"/>-->
<!-- <table tableName="res_platform" domainObjectName="ResPlatform" enableDeleteByExample="false"/>-->
<!-- <table tableName="shs_res_device" domainObjectName="ShsResDevice" enableDeleteByExample="false"/>-->
<!-- 有些表的字段需要指定java类型
<table schema="" tableName="">
<columnOverride column="" javaType="" />

75
research-system/src/main/java/com/research/system/domain/dto/ShsCkwxDto.java

@ -0,0 +1,75 @@
package com.research.system.domain.dto;
import com.research.system.domain.po.ShsCkwxCategory;
import com.research.system.domain.po.ShsCkwxInfo;
import lombok.Data;
/**
* @Author zzc
* @Package com.research.system.domain.dto
* @Date 2025/8/16 14:47
* @description:
*/
public class ShsCkwxDto {
@Data
public static class Query {
private String title;
private Byte categoryId;
private String keyword;
}
@Data
public static class Add {
private Long id;
private Long projId;
private Byte categoryId;
private String title;
private String authors;
private String keywords;
private String source;
private String abstracts;
private String paperLink;
private String pdfDownloadUrl;
private Long uploaderName;
private Long uploaderOrg;
}
@Data
public static class CategoryQuery {
private String categoryCode;
private String categoryName;
}
@Data
public static class CategoryAdd {
private Long id;
private Long projId;
private Long parentId;
private String categoryCode;
private String categoryName;
private Integer sort;
private String remark;
}
}

117
research-system/src/main/java/com/research/system/domain/po/ShsCkwxInfo.java

@ -8,23 +8,25 @@ public class ShsCkwxInfo implements Serializable {
private Long projId;
private Long projOrgId;
private Byte categoryId;
private Long ktGroupId;
private String title;
private Long tplId;
private String authors;
private Byte category;
private String keywords;
private Long businessId;
private String source;
private String title;
private String abstracts;
private String signUsername;
private String paperLink;
private String signTime;
private String pdfDownloadUrl;
private String tplDownloadUrl;
private Long uploaderName;
private Long uploaderOrg;
private Byte delFlag;
@ -54,76 +56,84 @@ public class ShsCkwxInfo implements Serializable {
this.projId = projId;
}
public Long getProjOrgId() {
return projOrgId;
public Byte getCategoryId() {
return categoryId;
}
public void setProjOrgId(Long projOrgId) {
this.projOrgId = projOrgId;
public void setCategoryId(Byte categoryId) {
this.categoryId = categoryId;
}
public Long getKtGroupId() {
return ktGroupId;
public String getTitle() {
return title;
}
public void setKtGroupId(Long ktGroupId) {
this.ktGroupId = ktGroupId;
public void setTitle(String title) {
this.title = title == null ? null : title.trim();
}
public Long getTplId() {
return tplId;
public String getAuthors() {
return authors;
}
public void setTplId(Long tplId) {
this.tplId = tplId;
public void setAuthors(String authors) {
this.authors = authors == null ? null : authors.trim();
}
public Byte getCategory() {
return category;
public String getKeywords() {
return keywords;
}
public void setCategory(Byte category) {
this.category = category;
public void setKeywords(String keywords) {
this.keywords = keywords == null ? null : keywords.trim();
}
public Long getBusinessId() {
return businessId;
public String getSource() {
return source;
}
public void setBusinessId(Long businessId) {
this.businessId = businessId;
public void setSource(String source) {
this.source = source == null ? null : source.trim();
}
public String getTitle() {
return title;
public String getAbstracts() {
return abstracts;
}
public void setTitle(String title) {
this.title = title == null ? null : title.trim();
public void setAbstracts(String abstracts) {
this.abstracts = abstracts == null ? null : abstracts.trim();
}
public String getPaperLink() {
return paperLink;
}
public void setPaperLink(String paperLink) {
this.paperLink = paperLink == null ? null : paperLink.trim();
}
public String getSignUsername() {
return signUsername;
public String getPdfDownloadUrl() {
return pdfDownloadUrl;
}
public void setSignUsername(String signUsername) {
this.signUsername = signUsername == null ? null : signUsername.trim();
public void setPdfDownloadUrl(String pdfDownloadUrl) {
this.pdfDownloadUrl = pdfDownloadUrl == null ? null : pdfDownloadUrl.trim();
}
public String getSignTime() {
return signTime;
public Long getUploaderName() {
return uploaderName;
}
public void setSignTime(String signTime) {
this.signTime = signTime == null ? null : signTime.trim();
public void setUploaderName(Long uploaderName) {
this.uploaderName = uploaderName;
}
public String getTplDownloadUrl() {
return tplDownloadUrl;
public Long getUploaderOrg() {
return uploaderOrg;
}
public void setTplDownloadUrl(String tplDownloadUrl) {
this.tplDownloadUrl = tplDownloadUrl == null ? null : tplDownloadUrl.trim();
public void setUploaderOrg(Long uploaderOrg) {
this.uploaderOrg = uploaderOrg;
}
public Byte getDelFlag() {
@ -174,15 +184,16 @@ public class ShsCkwxInfo implements Serializable {
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", projId=").append(projId);
sb.append(", projOrgId=").append(projOrgId);
sb.append(", ktGroupId=").append(ktGroupId);
sb.append(", tplId=").append(tplId);
sb.append(", category=").append(category);
sb.append(", businessId=").append(businessId);
sb.append(", categoryId=").append(categoryId);
sb.append(", title=").append(title);
sb.append(", signUsername=").append(signUsername);
sb.append(", signTime=").append(signTime);
sb.append(", tplDownloadUrl=").append(tplDownloadUrl);
sb.append(", authors=").append(authors);
sb.append(", keywords=").append(keywords);
sb.append(", source=").append(source);
sb.append(", abstracts=").append(abstracts);
sb.append(", paperLink=").append(paperLink);
sb.append(", pdfDownloadUrl=").append(pdfDownloadUrl);
sb.append(", uploaderName=").append(uploaderName);
sb.append(", uploaderOrg=").append(uploaderOrg);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);

554
research-system/src/main/java/com/research/system/domain/po/ShsCkwxInfoExample.java

@ -225,583 +225,673 @@ public class ShsCkwxInfoExample {
return (Criteria) this;
}
public Criteria andProjOrgIdIsNull() {
addCriterion("proj_org_id is null");
public Criteria andCategoryIdIsNull() {
addCriterion("category_id is null");
return (Criteria) this;
}
public Criteria andProjOrgIdIsNotNull() {
addCriterion("proj_org_id is not null");
public Criteria andCategoryIdIsNotNull() {
addCriterion("category_id is not null");
return (Criteria) this;
}
public Criteria andProjOrgIdEqualTo(Long value) {
addCriterion("proj_org_id =", value, "projOrgId");
public Criteria andCategoryIdEqualTo(Byte value) {
addCriterion("category_id =", value, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdNotEqualTo(Long value) {
addCriterion("proj_org_id <>", value, "projOrgId");
public Criteria andCategoryIdNotEqualTo(Byte value) {
addCriterion("category_id <>", value, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdGreaterThan(Long value) {
addCriterion("proj_org_id >", value, "projOrgId");
public Criteria andCategoryIdGreaterThan(Byte value) {
addCriterion("category_id >", value, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdGreaterThanOrEqualTo(Long value) {
addCriterion("proj_org_id >=", value, "projOrgId");
public Criteria andCategoryIdGreaterThanOrEqualTo(Byte value) {
addCriterion("category_id >=", value, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdLessThan(Long value) {
addCriterion("proj_org_id <", value, "projOrgId");
public Criteria andCategoryIdLessThan(Byte value) {
addCriterion("category_id <", value, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdLessThanOrEqualTo(Long value) {
addCriterion("proj_org_id <=", value, "projOrgId");
public Criteria andCategoryIdLessThanOrEqualTo(Byte value) {
addCriterion("category_id <=", value, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdIn(List<Long> values) {
addCriterion("proj_org_id in", values, "projOrgId");
public Criteria andCategoryIdIn(List<Byte> values) {
addCriterion("category_id in", values, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdNotIn(List<Long> values) {
addCriterion("proj_org_id not in", values, "projOrgId");
public Criteria andCategoryIdNotIn(List<Byte> values) {
addCriterion("category_id not in", values, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdBetween(Long value1, Long value2) {
addCriterion("proj_org_id between", value1, value2, "projOrgId");
public Criteria andCategoryIdBetween(Byte value1, Byte value2) {
addCriterion("category_id between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andProjOrgIdNotBetween(Long value1, Long value2) {
addCriterion("proj_org_id not between", value1, value2, "projOrgId");
public Criteria andCategoryIdNotBetween(Byte value1, Byte value2) {
addCriterion("category_id not between", value1, value2, "categoryId");
return (Criteria) this;
}
public Criteria andKtGroupIdIsNull() {
addCriterion("kt_group_id is null");
public Criteria andTitleIsNull() {
addCriterion("title is null");
return (Criteria) this;
}
public Criteria andKtGroupIdIsNotNull() {
addCriterion("kt_group_id is not null");
public Criteria andTitleIsNotNull() {
addCriterion("title is not null");
return (Criteria) this;
}
public Criteria andKtGroupIdEqualTo(Long value) {
addCriterion("kt_group_id =", value, "ktGroupId");
public Criteria andTitleEqualTo(String value) {
addCriterion("title =", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdNotEqualTo(Long value) {
addCriterion("kt_group_id <>", value, "ktGroupId");
public Criteria andTitleNotEqualTo(String value) {
addCriterion("title <>", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdGreaterThan(Long value) {
addCriterion("kt_group_id >", value, "ktGroupId");
public Criteria andTitleGreaterThan(String value) {
addCriterion("title >", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdGreaterThanOrEqualTo(Long value) {
addCriterion("kt_group_id >=", value, "ktGroupId");
public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("title >=", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdLessThan(Long value) {
addCriterion("kt_group_id <", value, "ktGroupId");
public Criteria andTitleLessThan(String value) {
addCriterion("title <", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdLessThanOrEqualTo(Long value) {
addCriterion("kt_group_id <=", value, "ktGroupId");
public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("title <=", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdIn(List<Long> values) {
addCriterion("kt_group_id in", values, "ktGroupId");
public Criteria andTitleLike(String value) {
addCriterion("title like", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdNotIn(List<Long> values) {
addCriterion("kt_group_id not in", values, "ktGroupId");
public Criteria andTitleNotLike(String value) {
addCriterion("title not like", value, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdBetween(Long value1, Long value2) {
addCriterion("kt_group_id between", value1, value2, "ktGroupId");
public Criteria andTitleIn(List<String> values) {
addCriterion("title in", values, "title");
return (Criteria) this;
}
public Criteria andKtGroupIdNotBetween(Long value1, Long value2) {
addCriterion("kt_group_id not between", value1, value2, "ktGroupId");
public Criteria andTitleNotIn(List<String> values) {
addCriterion("title not in", values, "title");
return (Criteria) this;
}
public Criteria andTplIdIsNull() {
addCriterion("tpl_id is null");
public Criteria andTitleBetween(String value1, String value2) {
addCriterion("title between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTplIdIsNotNull() {
addCriterion("tpl_id is not null");
public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("title not between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTplIdEqualTo(Long value) {
addCriterion("tpl_id =", value, "tplId");
public Criteria andAuthorsIsNull() {
addCriterion("authors is null");
return (Criteria) this;
}
public Criteria andTplIdNotEqualTo(Long value) {
addCriterion("tpl_id <>", value, "tplId");
public Criteria andAuthorsIsNotNull() {
addCriterion("authors is not null");
return (Criteria) this;
}
public Criteria andTplIdGreaterThan(Long value) {
addCriterion("tpl_id >", value, "tplId");
public Criteria andAuthorsEqualTo(String value) {
addCriterion("authors =", value, "authors");
return (Criteria) this;
}
public Criteria andTplIdGreaterThanOrEqualTo(Long value) {
addCriterion("tpl_id >=", value, "tplId");
public Criteria andAuthorsNotEqualTo(String value) {
addCriterion("authors <>", value, "authors");
return (Criteria) this;
}
public Criteria andTplIdLessThan(Long value) {
addCriterion("tpl_id <", value, "tplId");
public Criteria andAuthorsGreaterThan(String value) {
addCriterion("authors >", value, "authors");
return (Criteria) this;
}
public Criteria andTplIdLessThanOrEqualTo(Long value) {
addCriterion("tpl_id <=", value, "tplId");
public Criteria andAuthorsGreaterThanOrEqualTo(String value) {
addCriterion("authors >=", value, "authors");
return (Criteria) this;
}
public Criteria andTplIdIn(List<Long> values) {
addCriterion("tpl_id in", values, "tplId");
public Criteria andAuthorsLessThan(String value) {
addCriterion("authors <", value, "authors");
return (Criteria) this;
}
public Criteria andTplIdNotIn(List<Long> values) {
addCriterion("tpl_id not in", values, "tplId");
public Criteria andAuthorsLessThanOrEqualTo(String value) {
addCriterion("authors <=", value, "authors");
return (Criteria) this;
}
public Criteria andTplIdBetween(Long value1, Long value2) {
addCriterion("tpl_id between", value1, value2, "tplId");
public Criteria andAuthorsLike(String value) {
addCriterion("authors like", value, "authors");
return (Criteria) this;
}
public Criteria andTplIdNotBetween(Long value1, Long value2) {
addCriterion("tpl_id not between", value1, value2, "tplId");
public Criteria andAuthorsNotLike(String value) {
addCriterion("authors not like", value, "authors");
return (Criteria) this;
}
public Criteria andCategoryIsNull() {
addCriterion("category is null");
public Criteria andAuthorsIn(List<String> values) {
addCriterion("authors in", values, "authors");
return (Criteria) this;
}
public Criteria andCategoryIsNotNull() {
addCriterion("category is not null");
public Criteria andAuthorsNotIn(List<String> values) {
addCriterion("authors not in", values, "authors");
return (Criteria) this;
}
public Criteria andCategoryEqualTo(Byte value) {
addCriterion("category =", value, "category");
public Criteria andAuthorsBetween(String value1, String value2) {
addCriterion("authors between", value1, value2, "authors");
return (Criteria) this;
}
public Criteria andCategoryNotEqualTo(Byte value) {
addCriterion("category <>", value, "category");
public Criteria andAuthorsNotBetween(String value1, String value2) {
addCriterion("authors not between", value1, value2, "authors");
return (Criteria) this;
}
public Criteria andCategoryGreaterThan(Byte value) {
addCriterion("category >", value, "category");
public Criteria andKeywordsIsNull() {
addCriterion("keywords is null");
return (Criteria) this;
}
public Criteria andCategoryGreaterThanOrEqualTo(Byte value) {
addCriterion("category >=", value, "category");
public Criteria andKeywordsIsNotNull() {
addCriterion("keywords is not null");
return (Criteria) this;
}
public Criteria andCategoryLessThan(Byte value) {
addCriterion("category <", value, "category");
public Criteria andKeywordsEqualTo(String value) {
addCriterion("keywords =", value, "keywords");
return (Criteria) this;
}
public Criteria andCategoryLessThanOrEqualTo(Byte value) {
addCriterion("category <=", value, "category");
public Criteria andKeywordsNotEqualTo(String value) {
addCriterion("keywords <>", value, "keywords");
return (Criteria) this;
}
public Criteria andCategoryIn(List<Byte> values) {
addCriterion("category in", values, "category");
public Criteria andKeywordsGreaterThan(String value) {
addCriterion("keywords >", value, "keywords");
return (Criteria) this;
}
public Criteria andCategoryNotIn(List<Byte> values) {
addCriterion("category not in", values, "category");
public Criteria andKeywordsGreaterThanOrEqualTo(String value) {
addCriterion("keywords >=", value, "keywords");
return (Criteria) this;
}
public Criteria andCategoryBetween(Byte value1, Byte value2) {
addCriterion("category between", value1, value2, "category");
public Criteria andKeywordsLessThan(String value) {
addCriterion("keywords <", value, "keywords");
return (Criteria) this;
}
public Criteria andCategoryNotBetween(Byte value1, Byte value2) {
addCriterion("category not between", value1, value2, "category");
public Criteria andKeywordsLessThanOrEqualTo(String value) {
addCriterion("keywords <=", value, "keywords");
return (Criteria) this;
}
public Criteria andBusinessIdIsNull() {
addCriterion("business_id is null");
public Criteria andKeywordsLike(String value) {
addCriterion("keywords like", value, "keywords");
return (Criteria) this;
}
public Criteria andBusinessIdIsNotNull() {
addCriterion("business_id is not null");
public Criteria andKeywordsNotLike(String value) {
addCriterion("keywords not like", value, "keywords");
return (Criteria) this;
}
public Criteria andBusinessIdEqualTo(Long value) {
addCriterion("business_id =", value, "businessId");
public Criteria andKeywordsIn(List<String> values) {
addCriterion("keywords in", values, "keywords");
return (Criteria) this;
}
public Criteria andBusinessIdNotEqualTo(Long value) {
addCriterion("business_id <>", value, "businessId");
public Criteria andKeywordsNotIn(List<String> values) {
addCriterion("keywords not in", values, "keywords");
return (Criteria) this;
}
public Criteria andBusinessIdGreaterThan(Long value) {
addCriterion("business_id >", value, "businessId");
public Criteria andKeywordsBetween(String value1, String value2) {
addCriterion("keywords between", value1, value2, "keywords");
return (Criteria) this;
}
public Criteria andBusinessIdGreaterThanOrEqualTo(Long value) {
addCriterion("business_id >=", value, "businessId");
public Criteria andKeywordsNotBetween(String value1, String value2) {
addCriterion("keywords not between", value1, value2, "keywords");
return (Criteria) this;
}
public Criteria andBusinessIdLessThan(Long value) {
addCriterion("business_id <", value, "businessId");
public Criteria andSourceIsNull() {
addCriterion("source is null");
return (Criteria) this;
}
public Criteria andBusinessIdLessThanOrEqualTo(Long value) {
addCriterion("business_id <=", value, "businessId");
public Criteria andSourceIsNotNull() {
addCriterion("source is not null");
return (Criteria) this;
}
public Criteria andBusinessIdIn(List<Long> values) {
addCriterion("business_id in", values, "businessId");
public Criteria andSourceEqualTo(String value) {
addCriterion("source =", value, "source");
return (Criteria) this;
}
public Criteria andBusinessIdNotIn(List<Long> values) {
addCriterion("business_id not in", values, "businessId");
public Criteria andSourceNotEqualTo(String value) {
addCriterion("source <>", value, "source");
return (Criteria) this;
}
public Criteria andBusinessIdBetween(Long value1, Long value2) {
addCriterion("business_id between", value1, value2, "businessId");
public Criteria andSourceGreaterThan(String value) {
addCriterion("source >", value, "source");
return (Criteria) this;
}
public Criteria andBusinessIdNotBetween(Long value1, Long value2) {
addCriterion("business_id not between", value1, value2, "businessId");
public Criteria andSourceGreaterThanOrEqualTo(String value) {
addCriterion("source >=", value, "source");
return (Criteria) this;
}
public Criteria andTitleIsNull() {
addCriterion("title is null");
public Criteria andSourceLessThan(String value) {
addCriterion("source <", value, "source");
return (Criteria) this;
}
public Criteria andTitleIsNotNull() {
addCriterion("title is not null");
public Criteria andSourceLessThanOrEqualTo(String value) {
addCriterion("source <=", value, "source");
return (Criteria) this;
}
public Criteria andTitleEqualTo(String value) {
addCriterion("title =", value, "title");
public Criteria andSourceLike(String value) {
addCriterion("source like", value, "source");
return (Criteria) this;
}
public Criteria andTitleNotEqualTo(String value) {
addCriterion("title <>", value, "title");
public Criteria andSourceNotLike(String value) {
addCriterion("source not like", value, "source");
return (Criteria) this;
}
public Criteria andTitleGreaterThan(String value) {
addCriterion("title >", value, "title");
public Criteria andSourceIn(List<String> values) {
addCriterion("source in", values, "source");
return (Criteria) this;
}
public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("title >=", value, "title");
public Criteria andSourceNotIn(List<String> values) {
addCriterion("source not in", values, "source");
return (Criteria) this;
}
public Criteria andTitleLessThan(String value) {
addCriterion("title <", value, "title");
public Criteria andSourceBetween(String value1, String value2) {
addCriterion("source between", value1, value2, "source");
return (Criteria) this;
}
public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("title <=", value, "title");
public Criteria andSourceNotBetween(String value1, String value2) {
addCriterion("source not between", value1, value2, "source");
return (Criteria) this;
}
public Criteria andTitleLike(String value) {
addCriterion("title like", value, "title");
public Criteria andAbstractsIsNull() {
addCriterion("abstracts is null");
return (Criteria) this;
}
public Criteria andTitleNotLike(String value) {
addCriterion("title not like", value, "title");
public Criteria andAbstractsIsNotNull() {
addCriterion("abstracts is not null");
return (Criteria) this;
}
public Criteria andTitleIn(List<String> values) {
addCriterion("title in", values, "title");
public Criteria andAbstractsEqualTo(String value) {
addCriterion("abstracts =", value, "abstracts");
return (Criteria) this;
}
public Criteria andTitleNotIn(List<String> values) {
addCriterion("title not in", values, "title");
public Criteria andAbstractsNotEqualTo(String value) {
addCriterion("abstracts <>", value, "abstracts");
return (Criteria) this;
}
public Criteria andTitleBetween(String value1, String value2) {
addCriterion("title between", value1, value2, "title");
public Criteria andAbstractsGreaterThan(String value) {
addCriterion("abstracts >", value, "abstracts");
return (Criteria) this;
}
public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("title not between", value1, value2, "title");
public Criteria andAbstractsGreaterThanOrEqualTo(String value) {
addCriterion("abstracts >=", value, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsLessThan(String value) {
addCriterion("abstracts <", value, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsLessThanOrEqualTo(String value) {
addCriterion("abstracts <=", value, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsLike(String value) {
addCriterion("abstracts like", value, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsNotLike(String value) {
addCriterion("abstracts not like", value, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsIn(List<String> values) {
addCriterion("abstracts in", values, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsNotIn(List<String> values) {
addCriterion("abstracts not in", values, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsBetween(String value1, String value2) {
addCriterion("abstracts between", value1, value2, "abstracts");
return (Criteria) this;
}
public Criteria andAbstractsNotBetween(String value1, String value2) {
addCriterion("abstracts not between", value1, value2, "abstracts");
return (Criteria) this;
}
public Criteria andPaperLinkIsNull() {
addCriterion("paper_link is null");
return (Criteria) this;
}
public Criteria andPaperLinkIsNotNull() {
addCriterion("paper_link is not null");
return (Criteria) this;
}
public Criteria andPaperLinkEqualTo(String value) {
addCriterion("paper_link =", value, "paperLink");
return (Criteria) this;
}
public Criteria andPaperLinkNotEqualTo(String value) {
addCriterion("paper_link <>", value, "paperLink");
return (Criteria) this;
}
public Criteria andPaperLinkGreaterThan(String value) {
addCriterion("paper_link >", value, "paperLink");
return (Criteria) this;
}
public Criteria andPaperLinkGreaterThanOrEqualTo(String value) {
addCriterion("paper_link >=", value, "paperLink");
return (Criteria) this;
}
public Criteria andPaperLinkLessThan(String value) {
addCriterion("paper_link <", value, "paperLink");
return (Criteria) this;
}
public Criteria andPaperLinkLessThanOrEqualTo(String value) {
addCriterion("paper_link <=", value, "paperLink");
return (Criteria) this;
}
public Criteria andPaperLinkLike(String value) {
addCriterion("paper_link like", value, "paperLink");
return (Criteria) this;
}
public Criteria andPaperLinkNotLike(String value) {
addCriterion("paper_link not like", value, "paperLink");
return (Criteria) this;
}
public Criteria andSignUsernameIsNull() {
addCriterion("sign_username is null");
public Criteria andPaperLinkIn(List<String> values) {
addCriterion("paper_link in", values, "paperLink");
return (Criteria) this;
}
public Criteria andSignUsernameIsNotNull() {
addCriterion("sign_username is not null");
public Criteria andPaperLinkNotIn(List<String> values) {
addCriterion("paper_link not in", values, "paperLink");
return (Criteria) this;
}
public Criteria andSignUsernameEqualTo(String value) {
addCriterion("sign_username =", value, "signUsername");
public Criteria andPaperLinkBetween(String value1, String value2) {
addCriterion("paper_link between", value1, value2, "paperLink");
return (Criteria) this;
}
public Criteria andSignUsernameNotEqualTo(String value) {
addCriterion("sign_username <>", value, "signUsername");
public Criteria andPaperLinkNotBetween(String value1, String value2) {
addCriterion("paper_link not between", value1, value2, "paperLink");
return (Criteria) this;
}
public Criteria andSignUsernameGreaterThan(String value) {
addCriterion("sign_username >", value, "signUsername");
public Criteria andPdfDownloadUrlIsNull() {
addCriterion("pdf_download_url is null");
return (Criteria) this;
}
public Criteria andSignUsernameGreaterThanOrEqualTo(String value) {
addCriterion("sign_username >=", value, "signUsername");
public Criteria andPdfDownloadUrlIsNotNull() {
addCriterion("pdf_download_url is not null");
return (Criteria) this;
}
public Criteria andSignUsernameLessThan(String value) {
addCriterion("sign_username <", value, "signUsername");
public Criteria andPdfDownloadUrlEqualTo(String value) {
addCriterion("pdf_download_url =", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignUsernameLessThanOrEqualTo(String value) {
addCriterion("sign_username <=", value, "signUsername");
public Criteria andPdfDownloadUrlNotEqualTo(String value) {
addCriterion("pdf_download_url <>", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignUsernameLike(String value) {
addCriterion("sign_username like", value, "signUsername");
public Criteria andPdfDownloadUrlGreaterThan(String value) {
addCriterion("pdf_download_url >", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignUsernameNotLike(String value) {
addCriterion("sign_username not like", value, "signUsername");
public Criteria andPdfDownloadUrlGreaterThanOrEqualTo(String value) {
addCriterion("pdf_download_url >=", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignUsernameIn(List<String> values) {
addCriterion("sign_username in", values, "signUsername");
public Criteria andPdfDownloadUrlLessThan(String value) {
addCriterion("pdf_download_url <", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignUsernameNotIn(List<String> values) {
addCriterion("sign_username not in", values, "signUsername");
public Criteria andPdfDownloadUrlLessThanOrEqualTo(String value) {
addCriterion("pdf_download_url <=", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignUsernameBetween(String value1, String value2) {
addCriterion("sign_username between", value1, value2, "signUsername");
public Criteria andPdfDownloadUrlLike(String value) {
addCriterion("pdf_download_url like", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignUsernameNotBetween(String value1, String value2) {
addCriterion("sign_username not between", value1, value2, "signUsername");
public Criteria andPdfDownloadUrlNotLike(String value) {
addCriterion("pdf_download_url not like", value, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignTimeIsNull() {
addCriterion("sign_time is null");
public Criteria andPdfDownloadUrlIn(List<String> values) {
addCriterion("pdf_download_url in", values, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignTimeIsNotNull() {
addCriterion("sign_time is not null");
public Criteria andPdfDownloadUrlNotIn(List<String> values) {
addCriterion("pdf_download_url not in", values, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignTimeEqualTo(String value) {
addCriterion("sign_time =", value, "signTime");
public Criteria andPdfDownloadUrlBetween(String value1, String value2) {
addCriterion("pdf_download_url between", value1, value2, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignTimeNotEqualTo(String value) {
addCriterion("sign_time <>", value, "signTime");
public Criteria andPdfDownloadUrlNotBetween(String value1, String value2) {
addCriterion("pdf_download_url not between", value1, value2, "pdfDownloadUrl");
return (Criteria) this;
}
public Criteria andSignTimeGreaterThan(String value) {
addCriterion("sign_time >", value, "signTime");
public Criteria andUploaderNameIsNull() {
addCriterion("uploader_name is null");
return (Criteria) this;
}
public Criteria andSignTimeGreaterThanOrEqualTo(String value) {
addCriterion("sign_time >=", value, "signTime");
public Criteria andUploaderNameIsNotNull() {
addCriterion("uploader_name is not null");
return (Criteria) this;
}
public Criteria andSignTimeLessThan(String value) {
addCriterion("sign_time <", value, "signTime");
public Criteria andUploaderNameEqualTo(Long value) {
addCriterion("uploader_name =", value, "uploaderName");
return (Criteria) this;
}
public Criteria andSignTimeLessThanOrEqualTo(String value) {
addCriterion("sign_time <=", value, "signTime");
public Criteria andUploaderNameNotEqualTo(Long value) {
addCriterion("uploader_name <>", value, "uploaderName");
return (Criteria) this;
}
public Criteria andSignTimeLike(String value) {
addCriterion("sign_time like", value, "signTime");
public Criteria andUploaderNameGreaterThan(Long value) {
addCriterion("uploader_name >", value, "uploaderName");
return (Criteria) this;
}
public Criteria andSignTimeNotLike(String value) {
addCriterion("sign_time not like", value, "signTime");
public Criteria andUploaderNameGreaterThanOrEqualTo(Long value) {
addCriterion("uploader_name >=", value, "uploaderName");
return (Criteria) this;
}
public Criteria andSignTimeIn(List<String> values) {
addCriterion("sign_time in", values, "signTime");
public Criteria andUploaderNameLessThan(Long value) {
addCriterion("uploader_name <", value, "uploaderName");
return (Criteria) this;
}
public Criteria andSignTimeNotIn(List<String> values) {
addCriterion("sign_time not in", values, "signTime");
public Criteria andUploaderNameLessThanOrEqualTo(Long value) {
addCriterion("uploader_name <=", value, "uploaderName");
return (Criteria) this;
}
public Criteria andSignTimeBetween(String value1, String value2) {
addCriterion("sign_time between", value1, value2, "signTime");
public Criteria andUploaderNameIn(List<Long> values) {
addCriterion("uploader_name in", values, "uploaderName");
return (Criteria) this;
}
public Criteria andSignTimeNotBetween(String value1, String value2) {
addCriterion("sign_time not between", value1, value2, "signTime");
public Criteria andUploaderNameNotIn(List<Long> values) {
addCriterion("uploader_name not in", values, "uploaderName");
return (Criteria) this;
}
public Criteria andTplDownloadUrlIsNull() {
addCriterion("tpl_download_url is null");
public Criteria andUploaderNameBetween(Long value1, Long value2) {
addCriterion("uploader_name between", value1, value2, "uploaderName");
return (Criteria) this;
}
public Criteria andTplDownloadUrlIsNotNull() {
addCriterion("tpl_download_url is not null");
public Criteria andUploaderNameNotBetween(Long value1, Long value2) {
addCriterion("uploader_name not between", value1, value2, "uploaderName");
return (Criteria) this;
}
public Criteria andTplDownloadUrlEqualTo(String value) {
addCriterion("tpl_download_url =", value, "tplDownloadUrl");
public Criteria andUploaderOrgIsNull() {
addCriterion("uploader_org is null");
return (Criteria) this;
}
public Criteria andTplDownloadUrlNotEqualTo(String value) {
addCriterion("tpl_download_url <>", value, "tplDownloadUrl");
public Criteria andUploaderOrgIsNotNull() {
addCriterion("uploader_org is not null");
return (Criteria) this;
}
public Criteria andTplDownloadUrlGreaterThan(String value) {
addCriterion("tpl_download_url >", value, "tplDownloadUrl");
public Criteria andUploaderOrgEqualTo(Long value) {
addCriterion("uploader_org =", value, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlGreaterThanOrEqualTo(String value) {
addCriterion("tpl_download_url >=", value, "tplDownloadUrl");
public Criteria andUploaderOrgNotEqualTo(Long value) {
addCriterion("uploader_org <>", value, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlLessThan(String value) {
addCriterion("tpl_download_url <", value, "tplDownloadUrl");
public Criteria andUploaderOrgGreaterThan(Long value) {
addCriterion("uploader_org >", value, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlLessThanOrEqualTo(String value) {
addCriterion("tpl_download_url <=", value, "tplDownloadUrl");
public Criteria andUploaderOrgGreaterThanOrEqualTo(Long value) {
addCriterion("uploader_org >=", value, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlLike(String value) {
addCriterion("tpl_download_url like", value, "tplDownloadUrl");
public Criteria andUploaderOrgLessThan(Long value) {
addCriterion("uploader_org <", value, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlNotLike(String value) {
addCriterion("tpl_download_url not like", value, "tplDownloadUrl");
public Criteria andUploaderOrgLessThanOrEqualTo(Long value) {
addCriterion("uploader_org <=", value, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlIn(List<String> values) {
addCriterion("tpl_download_url in", values, "tplDownloadUrl");
public Criteria andUploaderOrgIn(List<Long> values) {
addCriterion("uploader_org in", values, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlNotIn(List<String> values) {
addCriterion("tpl_download_url not in", values, "tplDownloadUrl");
public Criteria andUploaderOrgNotIn(List<Long> values) {
addCriterion("uploader_org not in", values, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlBetween(String value1, String value2) {
addCriterion("tpl_download_url between", value1, value2, "tplDownloadUrl");
public Criteria andUploaderOrgBetween(Long value1, Long value2) {
addCriterion("uploader_org between", value1, value2, "uploaderOrg");
return (Criteria) this;
}
public Criteria andTplDownloadUrlNotBetween(String value1, String value2) {
addCriterion("tpl_download_url not between", value1, value2, "tplDownloadUrl");
public Criteria andUploaderOrgNotBetween(Long value1, Long value2) {
addCriterion("uploader_org not between", value1, value2, "uploaderOrg");
return (Criteria) this;
}

68
research-system/src/main/java/com/research/system/domain/vo/ShsCkwxVo.java

@ -0,0 +1,68 @@
package com.research.system.domain.vo;
import lombok.Data;
import java.util.Date;
/**
* @Author zzc
* @Package com.research.system.domain.vo
* @Date 2025/8/16 14:50
* @description:
*/
public class ShsCkwxVo {
@Data
public static class Result {
private Long id;
private Long projId;
private Byte categoryId;
private String title;
private String authors;
private String keywords;
private String source;
private String abstracts;
private String paperLink;
private String pdfDownloadUrl;
private Long uploaderName;
private Long uploaderOrg;
private String createBy;
private Date createTime;
private String categoryName;
}
@Data
public static class CategoryResult {
private Long id;
private Long projId;
private Long parentId;
private String categoryCode;
private String categoryName;
private Integer sort;
private String remark;
private String createBy;
private Date createTime;
}
}

21
research-system/src/main/java/com/research/system/persist/dao/ShsCkwxDao.java

@ -0,0 +1,21 @@
package com.research.system.persist.dao;
import com.research.system.domain.dto.ShsCkwxDto;
import com.research.system.domain.vo.ShsCkwxVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @Author zzc
* @Package com.research.system.persist.dao
* @Date 2025/8/11 14:31
* @description:
*/
public interface ShsCkwxDao {
List<ShsCkwxVo.Result> queryList(@Param("dto") ShsCkwxDto.Query dto, @Param("projId") Long projId);
List<ShsCkwxVo.CategoryResult> queryCategoryList(@Param("dto") ShsCkwxDto.CategoryQuery dto, @Param("projId") Long projId);
}

29
research-system/src/main/java/com/research/system/service/ShsCkwxService.java

@ -0,0 +1,29 @@
package com.research.system.service;
import com.research.system.domain.dto.CommonDto;
import com.research.system.domain.dto.ShsCkwxDto;
import com.research.system.domain.vo.ShsCkwxVo;
import java.util.List;
/**
* @Author zzc
* @Package com.research.system.service
* @Date 2025/8/16 14:47
* @description:
*/
public interface ShsCkwxService {
List<ShsCkwxVo.Result> queryList(ShsCkwxDto.Query query, Integer pageNum, Integer pageSize);
Integer add(ShsCkwxDto.Add dto);
Integer del(CommonDto.DelDto dto);
List<ShsCkwxVo.CategoryResult> queryCategoryList(ShsCkwxDto.CategoryQuery query, Integer pageNum, Integer pageSize);
Integer addCategory(ShsCkwxDto.CategoryAdd dto);
Integer delCategory(CommonDto.DelDto dto);
}

120
research-system/src/main/java/com/research/system/service/impl/ShsCkwxServiceImpl.java

@ -0,0 +1,120 @@
package com.research.system.service.impl;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.util.IdUtil;
import com.github.pagehelper.PageHelper;
import com.research.common.exception.base.BaseException;
import com.research.common.utils.SecurityUtils;
import com.research.system.domain.dto.CommonDto;
import com.research.system.domain.dto.ShsCkwxDto;
import com.research.system.domain.po.*;
import com.research.system.domain.vo.ShsCkwxVo;
import com.research.system.persist.dao.ShsCkwxDao;
import com.research.system.persist.mapper.ShsCkwxCategoryMapper;
import com.research.system.persist.mapper.ShsCkwxInfoMapper;
import com.research.system.service.ClientPrjProjInfoService;
import com.research.system.service.ShsCkwxService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
/**
* @Author zzc
* @Package com.research.system.service.impl
* @Date 2025/8/16 14:53
* @description:
*/
@Service
public class ShsCkwxServiceImpl implements ShsCkwxService {
@Resource
private ShsCkwxCategoryMapper shsCkwxCategoryMapper;
@Resource
private ShsCkwxInfoMapper shsCkwxInfoMapper;
@Resource
private ClientPrjProjInfoService clientPrjProjInfoService;
@Resource
private ShsCkwxDao shsCkwxDao;
@Override
public List<ShsCkwxVo.Result> queryList(ShsCkwxDto.Query query, Integer pageNum, Integer pageSize) {
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId());
if (proInfoByTenantId == null) {
throw new BaseException("未查询到项目");
}
PageHelper.startPage(pageNum, pageSize);
return shsCkwxDao.queryList(query, proInfoByTenantId.getId());
}
@Override
public Integer add(ShsCkwxDto.Add dto) {
ShsCkwxInfo shsCkwxInfo = BeanUtil.copyProperties(dto, ShsCkwxInfo.class);
if (dto.getId() == null) {
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId());
if (proInfoByTenantId == null) {
throw new BaseException("未查询到项目");
}
shsCkwxInfo.setId(IdUtil.getSnowflakeNextId());
shsCkwxInfo.setCreateBy(SecurityUtils.getUsername());
shsCkwxInfo.setCreateTime(new Date());
shsCkwxInfo.setProjId(proInfoByTenantId.getId());
shsCkwxInfo.setDelFlag((byte) 0);
return shsCkwxInfoMapper.insertSelective(shsCkwxInfo);
} else {
shsCkwxInfo.setUpdateBy(SecurityUtils.getUsername());
shsCkwxInfo.setUpdateTime(new Date());
return shsCkwxInfoMapper.updateByPrimaryKeySelective(shsCkwxInfo);
}
}
@Override
public Integer del(CommonDto.DelDto dto) {
ShsCkwxInfo shsCkwxInfo = new ShsCkwxInfo();
shsCkwxInfo.setDelFlag((byte) 1);
ShsCkwxInfoExample shsCkwxInfoExample = new ShsCkwxInfoExample();
shsCkwxInfoExample.createCriteria().andIdIn(dto.getIdList());
return shsCkwxInfoMapper.updateByExampleSelective(shsCkwxInfo, shsCkwxInfoExample);
}
@Override
public List<ShsCkwxVo.CategoryResult> queryCategoryList(ShsCkwxDto.CategoryQuery query, Integer pageNum, Integer pageSize) {
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId());
if (proInfoByTenantId == null) {
throw new BaseException("未查询到项目");
}
PageHelper.startPage(pageNum, pageSize);
return shsCkwxDao.queryCategoryList(query, proInfoByTenantId.getId());
}
@Override
public Integer addCategory(ShsCkwxDto.CategoryAdd dto) {
ShsCkwxCategory shsCkwxInfo = BeanUtil.copyProperties(dto, ShsCkwxCategory.class);
if (dto.getId() == null) {
PrjProjInfo proInfoByTenantId = clientPrjProjInfoService.getProInfoByTenantId(SecurityUtils.getTenantId());
if (proInfoByTenantId == null) {
throw new BaseException("未查询到项目");
}
shsCkwxInfo.setId(IdUtil.getSnowflakeNextId());
shsCkwxInfo.setCreateBy(SecurityUtils.getUsername());
shsCkwxInfo.setCreateTime(new Date());
shsCkwxInfo.setProjId(proInfoByTenantId.getId());
shsCkwxInfo.setDelFlag((byte) 0);
return shsCkwxCategoryMapper.insertSelective(shsCkwxInfo);
} else {
shsCkwxInfo.setUpdateBy(SecurityUtils.getUsername());
shsCkwxInfo.setUpdateTime(new Date());
return shsCkwxCategoryMapper.updateByPrimaryKeySelective(shsCkwxInfo);
}
}
@Override
public Integer delCategory(CommonDto.DelDto dto) {
ShsCkwxCategory shsCkwxCategory = new ShsCkwxCategory();
shsCkwxCategory.setDelFlag((byte) 1);
ShsCkwxCategoryExample example = new ShsCkwxCategoryExample();
example.createCriteria().andIdIn(dto.getIdList());
return shsCkwxCategoryMapper.updateByExampleSelective(shsCkwxCategory, example);
}
}

64
research-system/src/main/resources/mapper/dao/ShsCkwxDao.xml

@ -0,0 +1,64 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.research.system.persist.dao.ShsCkwxDao">
<select id="queryList" resultType="com.research.system.domain.vo.ShsCkwxVo$Result">
select
s.id,
s.proj_id as projId,
s.category_id as categoryId,
s.title,
s.authors,
s.keywords,
s.source,
s.abstracts,
s.paper_link as paperLink,
s.pdf_download_url as pdfDownloadUrl,
s.uploader_name as uploaderName,
s.uploader_org as uploaderOrg,
s.create_by as createBy,
s.create_time as createTime,
c.category_name as categoryName
from
shs_ckwx_info s
left join shs_ckwx_category c on s.category_id = c.id
where
s.del_flag = 0
<if test="dto.categoryId != null">
and s.category_id = #{dto.categoryId}
</if>
<if test="dto.title != null">
and s.title like concat('%',#{dto.title},'%')
</if>
<if test="dto.keyword != null">
and (s.title like concat('%',#{dto.keyword},'%')
or s.authors like concat('%',#{dto.keyword},'%')
or s.keywords like concat('%',#{dto.keyword},'%')
)
</if>
order by s.id desc
</select>
<select id="queryCategoryList" resultType="com.research.system.domain.vo.ShsCkwxVo$CategoryResult">
select
id,
proj_id as projId,
parent_id as parentId,
category_code as categoryCode,
category_name as categoryName,
sort,
remark,
create_by as createBy,
create_time as createTime
from
shs_ckwx_category
where
del_flag = 0
<if test="dto.categoryCode != null">
and category_code like concat('%',#{dto.categoryCode},'%')
</if>
<if test="dto.categoryName != null">
and category_name like concat('%',#{dto.categoryName},'%')
</if>
</select>
</mapper>

236
research-system/src/main/resources/mapper/system/ShsCkwxInfoMapper.xml

@ -4,15 +4,16 @@
<resultMap id="BaseResultMap" type="com.research.system.domain.po.ShsCkwxInfo">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="proj_id" jdbcType="BIGINT" property="projId" />
<result column="proj_org_id" jdbcType="BIGINT" property="projOrgId" />
<result column="kt_group_id" jdbcType="BIGINT" property="ktGroupId" />
<result column="tpl_id" jdbcType="BIGINT" property="tplId" />
<result column="category" jdbcType="TINYINT" property="category" />
<result column="business_id" jdbcType="BIGINT" property="businessId" />
<result column="category_id" jdbcType="TINYINT" property="categoryId" />
<result column="title" jdbcType="VARCHAR" property="title" />
<result column="sign_username" jdbcType="VARCHAR" property="signUsername" />
<result column="sign_time" jdbcType="VARCHAR" property="signTime" />
<result column="tpl_download_url" jdbcType="VARCHAR" property="tplDownloadUrl" />
<result column="authors" jdbcType="VARCHAR" property="authors" />
<result column="keywords" jdbcType="VARCHAR" property="keywords" />
<result column="source" jdbcType="VARCHAR" property="source" />
<result column="abstracts" jdbcType="VARCHAR" property="abstracts" />
<result column="paper_link" jdbcType="VARCHAR" property="paperLink" />
<result column="pdf_download_url" jdbcType="VARCHAR" property="pdfDownloadUrl" />
<result column="uploader_name" jdbcType="BIGINT" property="uploaderName" />
<result column="uploader_org" jdbcType="BIGINT" property="uploaderOrg" />
<result column="del_flag" jdbcType="TINYINT" property="delFlag" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
@ -78,8 +79,9 @@
</where>
</sql>
<sql id="Base_Column_List">
id, proj_id, proj_org_id, kt_group_id, tpl_id, category, business_id, title, sign_username,
sign_time, tpl_download_url, del_flag, create_by, create_time, update_by, update_time
id, proj_id, category_id, title, authors, keywords, source, abstracts, paper_link,
pdf_download_url, uploader_name, uploader_org, del_flag, create_by, create_time,
update_by, update_time
</sql>
<select id="selectByExample" parameterType="com.research.system.domain.po.ShsCkwxInfoExample" resultMap="BaseResultMap">
select
@ -106,18 +108,18 @@
where id = #{id,jdbcType=BIGINT}
</delete>
<insert id="insert" parameterType="com.research.system.domain.po.ShsCkwxInfo">
insert into shs_ckwx_info (id, proj_id, proj_org_id,
kt_group_id, tpl_id, category,
business_id, title, sign_username,
sign_time, tpl_download_url, del_flag,
create_by, create_time, update_by,
update_time)
values (#{id,jdbcType=BIGINT}, #{projId,jdbcType=BIGINT}, #{projOrgId,jdbcType=BIGINT},
#{ktGroupId,jdbcType=BIGINT}, #{tplId,jdbcType=BIGINT}, #{category,jdbcType=TINYINT},
#{businessId,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{signUsername,jdbcType=VARCHAR},
#{signTime,jdbcType=VARCHAR}, #{tplDownloadUrl,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT},
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP})
insert into shs_ckwx_info (id, proj_id, category_id,
title, authors, keywords,
source, abstracts, paper_link,
pdf_download_url, uploader_name, uploader_org,
del_flag, create_by, create_time,
update_by, update_time)
values (#{id,jdbcType=BIGINT}, #{projId,jdbcType=BIGINT}, #{categoryId,jdbcType=TINYINT},
#{title,jdbcType=VARCHAR}, #{authors,jdbcType=VARCHAR}, #{keywords,jdbcType=VARCHAR},
#{source,jdbcType=VARCHAR}, #{abstracts,jdbcType=VARCHAR}, #{paperLink,jdbcType=VARCHAR},
#{pdfDownloadUrl,jdbcType=VARCHAR}, #{uploaderName,jdbcType=BIGINT}, #{uploaderOrg,jdbcType=BIGINT},
#{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="com.research.system.domain.po.ShsCkwxInfo">
insert into shs_ckwx_info
@ -128,32 +130,35 @@
<if test="projId != null">
proj_id,
</if>
<if test="projOrgId != null">
proj_org_id,
<if test="categoryId != null">
category_id,
</if>
<if test="ktGroupId != null">
kt_group_id,
<if test="title != null">
title,
</if>
<if test="tplId != null">
tpl_id,
<if test="authors != null">
authors,
</if>
<if test="category != null">
category,
<if test="keywords != null">
keywords,
</if>
<if test="businessId != null">
business_id,
<if test="source != null">
source,
</if>
<if test="title != null">
title,
<if test="abstracts != null">
abstracts,
</if>
<if test="paperLink != null">
paper_link,
</if>
<if test="signUsername != null">
sign_username,
<if test="pdfDownloadUrl != null">
pdf_download_url,
</if>
<if test="signTime != null">
sign_time,
<if test="uploaderName != null">
uploader_name,
</if>
<if test="tplDownloadUrl != null">
tpl_download_url,
<if test="uploaderOrg != null">
uploader_org,
</if>
<if test="delFlag != null">
del_flag,
@ -178,32 +183,35 @@
<if test="projId != null">
#{projId,jdbcType=BIGINT},
</if>
<if test="projOrgId != null">
#{projOrgId,jdbcType=BIGINT},
<if test="categoryId != null">
#{categoryId,jdbcType=TINYINT},
</if>
<if test="ktGroupId != null">
#{ktGroupId,jdbcType=BIGINT},
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
<if test="tplId != null">
#{tplId,jdbcType=BIGINT},
<if test="authors != null">
#{authors,jdbcType=VARCHAR},
</if>
<if test="category != null">
#{category,jdbcType=TINYINT},
<if test="keywords != null">
#{keywords,jdbcType=VARCHAR},
</if>
<if test="businessId != null">
#{businessId,jdbcType=BIGINT},
<if test="source != null">
#{source,jdbcType=VARCHAR},
</if>
<if test="title != null">
#{title,jdbcType=VARCHAR},
<if test="abstracts != null">
#{abstracts,jdbcType=VARCHAR},
</if>
<if test="paperLink != null">
#{paperLink,jdbcType=VARCHAR},
</if>
<if test="signUsername != null">
#{signUsername,jdbcType=VARCHAR},
<if test="pdfDownloadUrl != null">
#{pdfDownloadUrl,jdbcType=VARCHAR},
</if>
<if test="signTime != null">
#{signTime,jdbcType=VARCHAR},
<if test="uploaderName != null">
#{uploaderName,jdbcType=BIGINT},
</if>
<if test="tplDownloadUrl != null">
#{tplDownloadUrl,jdbcType=VARCHAR},
<if test="uploaderOrg != null">
#{uploaderOrg,jdbcType=BIGINT},
</if>
<if test="delFlag != null">
#{delFlag,jdbcType=TINYINT},
@ -237,32 +245,35 @@
<if test="record.projId != null">
proj_id = #{record.projId,jdbcType=BIGINT},
</if>
<if test="record.projOrgId != null">
proj_org_id = #{record.projOrgId,jdbcType=BIGINT},
<if test="record.categoryId != null">
category_id = #{record.categoryId,jdbcType=TINYINT},
</if>
<if test="record.ktGroupId != null">
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
</if>
<if test="record.tplId != null">
tpl_id = #{record.tplId,jdbcType=BIGINT},
<if test="record.authors != null">
authors = #{record.authors,jdbcType=VARCHAR},
</if>
<if test="record.category != null">
category = #{record.category,jdbcType=TINYINT},
<if test="record.keywords != null">
keywords = #{record.keywords,jdbcType=VARCHAR},
</if>
<if test="record.businessId != null">
business_id = #{record.businessId,jdbcType=BIGINT},
<if test="record.source != null">
source = #{record.source,jdbcType=VARCHAR},
</if>
<if test="record.title != null">
title = #{record.title,jdbcType=VARCHAR},
<if test="record.abstracts != null">
abstracts = #{record.abstracts,jdbcType=VARCHAR},
</if>
<if test="record.paperLink != null">
paper_link = #{record.paperLink,jdbcType=VARCHAR},
</if>
<if test="record.signUsername != null">
sign_username = #{record.signUsername,jdbcType=VARCHAR},
<if test="record.pdfDownloadUrl != null">
pdf_download_url = #{record.pdfDownloadUrl,jdbcType=VARCHAR},
</if>
<if test="record.signTime != null">
sign_time = #{record.signTime,jdbcType=VARCHAR},
<if test="record.uploaderName != null">
uploader_name = #{record.uploaderName,jdbcType=BIGINT},
</if>
<if test="record.tplDownloadUrl != null">
tpl_download_url = #{record.tplDownloadUrl,jdbcType=VARCHAR},
<if test="record.uploaderOrg != null">
uploader_org = #{record.uploaderOrg,jdbcType=BIGINT},
</if>
<if test="record.delFlag != null">
del_flag = #{record.delFlag,jdbcType=TINYINT},
@ -288,15 +299,16 @@
update shs_ckwx_info
set id = #{record.id,jdbcType=BIGINT},
proj_id = #{record.projId,jdbcType=BIGINT},
proj_org_id = #{record.projOrgId,jdbcType=BIGINT},
kt_group_id = #{record.ktGroupId,jdbcType=BIGINT},
tpl_id = #{record.tplId,jdbcType=BIGINT},
category = #{record.category,jdbcType=TINYINT},
business_id = #{record.businessId,jdbcType=BIGINT},
category_id = #{record.categoryId,jdbcType=TINYINT},
title = #{record.title,jdbcType=VARCHAR},
sign_username = #{record.signUsername,jdbcType=VARCHAR},
sign_time = #{record.signTime,jdbcType=VARCHAR},
tpl_download_url = #{record.tplDownloadUrl,jdbcType=VARCHAR},
authors = #{record.authors,jdbcType=VARCHAR},
keywords = #{record.keywords,jdbcType=VARCHAR},
source = #{record.source,jdbcType=VARCHAR},
abstracts = #{record.abstracts,jdbcType=VARCHAR},
paper_link = #{record.paperLink,jdbcType=VARCHAR},
pdf_download_url = #{record.pdfDownloadUrl,jdbcType=VARCHAR},
uploader_name = #{record.uploaderName,jdbcType=BIGINT},
uploader_org = #{record.uploaderOrg,jdbcType=BIGINT},
del_flag = #{record.delFlag,jdbcType=TINYINT},
create_by = #{record.createBy,jdbcType=VARCHAR},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
@ -312,32 +324,35 @@
<if test="projId != null">
proj_id = #{projId,jdbcType=BIGINT},
</if>
<if test="projOrgId != null">
proj_org_id = #{projOrgId,jdbcType=BIGINT},
<if test="categoryId != null">
category_id = #{categoryId,jdbcType=TINYINT},
</if>
<if test="ktGroupId != null">
kt_group_id = #{ktGroupId,jdbcType=BIGINT},
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
<if test="tplId != null">
tpl_id = #{tplId,jdbcType=BIGINT},
<if test="authors != null">
authors = #{authors,jdbcType=VARCHAR},
</if>
<if test="category != null">
category = #{category,jdbcType=TINYINT},
<if test="keywords != null">
keywords = #{keywords,jdbcType=VARCHAR},
</if>
<if test="businessId != null">
business_id = #{businessId,jdbcType=BIGINT},
<if test="source != null">
source = #{source,jdbcType=VARCHAR},
</if>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
<if test="abstracts != null">
abstracts = #{abstracts,jdbcType=VARCHAR},
</if>
<if test="paperLink != null">
paper_link = #{paperLink,jdbcType=VARCHAR},
</if>
<if test="signUsername != null">
sign_username = #{signUsername,jdbcType=VARCHAR},
<if test="pdfDownloadUrl != null">
pdf_download_url = #{pdfDownloadUrl,jdbcType=VARCHAR},
</if>
<if test="signTime != null">
sign_time = #{signTime,jdbcType=VARCHAR},
<if test="uploaderName != null">
uploader_name = #{uploaderName,jdbcType=BIGINT},
</if>
<if test="tplDownloadUrl != null">
tpl_download_url = #{tplDownloadUrl,jdbcType=VARCHAR},
<if test="uploaderOrg != null">
uploader_org = #{uploaderOrg,jdbcType=BIGINT},
</if>
<if test="delFlag != null">
del_flag = #{delFlag,jdbcType=TINYINT},
@ -360,15 +375,16 @@
<update id="updateByPrimaryKey" parameterType="com.research.system.domain.po.ShsCkwxInfo">
update shs_ckwx_info
set proj_id = #{projId,jdbcType=BIGINT},
proj_org_id = #{projOrgId,jdbcType=BIGINT},
kt_group_id = #{ktGroupId,jdbcType=BIGINT},
tpl_id = #{tplId,jdbcType=BIGINT},
category = #{category,jdbcType=TINYINT},
business_id = #{businessId,jdbcType=BIGINT},
category_id = #{categoryId,jdbcType=TINYINT},
title = #{title,jdbcType=VARCHAR},
sign_username = #{signUsername,jdbcType=VARCHAR},
sign_time = #{signTime,jdbcType=VARCHAR},
tpl_download_url = #{tplDownloadUrl,jdbcType=VARCHAR},
authors = #{authors,jdbcType=VARCHAR},
keywords = #{keywords,jdbcType=VARCHAR},
source = #{source,jdbcType=VARCHAR},
abstracts = #{abstracts,jdbcType=VARCHAR},
paper_link = #{paperLink,jdbcType=VARCHAR},
pdf_download_url = #{pdfDownloadUrl,jdbcType=VARCHAR},
uploader_name = #{uploaderName,jdbcType=BIGINT},
uploader_org = #{uploaderOrg,jdbcType=BIGINT},
del_flag = #{delFlag,jdbcType=TINYINT},
create_by = #{createBy,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},

Loading…
Cancel
Save