jiapeng 7 years ago
parent
commit
8e1d38892a

+ 1 - 1
src/main/java/com/ekexiu/portal/service/OrgService.java

240
	@Get
240
	@Get
241
	@Path("/qr")
241
	@Path("/qr")
242
	public List<EditOrganization> relateQuery(@JdbcConn Connection con,@Nullable String kw,@DefaultValue("3") int limit) throws SQLException{
242
	public List<EditOrganization> relateQuery(@JdbcConn Connection con,@Nullable String kw,@DefaultValue("3") int limit) throws SQLException{
243
		List<EditOrganization> ret = this.orgDao.relateQuery(con, kw, limit);
243
		List<EditOrganization> ret = this.orgDao.relateQuery(con, kw==null?"%":("%"+kw+"%"), limit);
244
		for (EditOrganization organization :ret) {
244
		for (EditOrganization organization :ret) {
245
			organization.setHasOrgLogo(this.imageService.hasOrgLogo(organization.getId()));
245
			organization.setHasOrgLogo(this.imageService.hasOrgLogo(organization.getId()));
246
		}
246
		}

+ 1 - 1
src/main/resources/project-test-dev.properties

149
com_ekexiu_portal_service_ArticleService.articlePath::java.io.File=/kexiu/webdata1/data/article
149
com_ekexiu_portal_service_ArticleService.articlePath::java.io.File=/kexiu/webdata1/data/article
150
com_ekexiu_portal_service_ArticleService.dateFormat::java.lang.String=yyyyMMdd
150
com_ekexiu_portal_service_ArticleService.dateFormat::java.lang.String=yyyyMMdd
151
#科研文章图片尺寸
151
#科研文章图片尺寸
152
com_ekexiu_portal_service_ArticleService.artMaxLen::int=70
152
com_ekexiu_portal_service_ArticleService.artMaxLen::int=200
153
#资源分享图片尺寸
153
#资源分享图片尺寸
154
com_ekexiu_portal_service_ImagesService.resImageMaxLen::int=240
154
com_ekexiu_portal_service_ImagesService.resImageMaxLen::int=240
155
#认证图片保存目录
155
#认证图片保存目录

+ 1 - 1
src/main/resources/project-test.properties

149
com_ekexiu_portal_service_ArticleService.articlePath::java.io.File=/kexiu/webdata/data/article
149
com_ekexiu_portal_service_ArticleService.articlePath::java.io.File=/kexiu/webdata/data/article
150
com_ekexiu_portal_service_ArticleService.dateFormat::java.lang.String=yyyyMMdd
150
com_ekexiu_portal_service_ArticleService.dateFormat::java.lang.String=yyyyMMdd
151
#科研文章图片尺寸
151
#科研文章图片尺寸
152
com_ekexiu_portal_service_ArticleService.artMaxLen::int=70
152
com_ekexiu_portal_service_ArticleService.artMaxLen::int=200
153
#资源分享图片尺寸
153
#资源分享图片尺寸
154
com_ekexiu_portal_service_ImagesService.resImageMaxLen::int=240
154
com_ekexiu_portal_service_ImagesService.resImageMaxLen::int=240
155
#认证图片保存目录
155
#认证图片保存目录

+ 1 - 1
src/main/resources/project.properties

149
com_ekexiu_portal_service_ArticleService.articlePath::java.io.File=/kexiu/webdata/data/article
149
com_ekexiu_portal_service_ArticleService.articlePath::java.io.File=/kexiu/webdata/data/article
150
com_ekexiu_portal_service_ArticleService.dateFormat::java.lang.String=yyyyMMdd
150
com_ekexiu_portal_service_ArticleService.dateFormat::java.lang.String=yyyyMMdd
151
#科研文章图片尺寸
151
#科研文章图片尺寸
152
com_ekexiu_portal_service_ArticleService.artMaxLen::int=70
152
com_ekexiu_portal_service_ArticleService.artMaxLen::int=200
153
#资源分享图片尺寸
153
#资源分享图片尺寸
154
com_ekexiu_portal_service_ImagesService.resImageMaxLen::int=240
154
com_ekexiu_portal_service_ImagesService.resImageMaxLen::int=240
155
#认证图片保存目录
155
#认证图片保存目录