Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nrgl
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
注册表
注册表
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
svn
nrgl
Commits
034e23b8
提交
034e23b8
authored
4月 16, 2019
作者:
renjiancai
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
上级
999ba2a8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
28 行增加
和
32 行删除
+28
-32
QueryAuthorLibraryForm.java
...orm/resource/bg/authorLibrary/QueryAuthorLibraryForm.java
+6
-2
AuthorLibraryController.java
.../bg/controller/authorLibrary/AuthorLibraryController.java
+0
-26
AuthorLibraryServiceImpl.java
...ce/bg/service/authorLibrary/AuthorLibraryServiceImpl.java
+19
-2
ClauseLibraryServiceImpl.java
...ce/bg/service/clauseLibrary/ClauseLibraryServiceImpl.java
+3
-2
没有找到文件。
com.zrqx.core/src/main/java/com/zrqx/core/form/resource/bg/authorLibrary/QueryAuthorLibraryForm.java
浏览文件 @
034e23b8
package
com
.
zrqx
.
core
.
form
.
resource
.
bg
.
authorLibrary
;
import
java.util.List
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@Data
@ApiModel
(
value
=
"QueryAuthorLibraryForm"
,
description
=
"作者库"
)
public
class
QueryAuthorLibraryForm
{
@ApiModelProperty
(
"类别Code"
)
private
String
diytypeCode
;
@ApiModelProperty
(
value
=
"自定义分类id"
)
private
List
<
String
>
diyTypeId
;
@ApiModelProperty
(
"自定义分类code"
)
private
String
diyTypeCode
;
@ApiModelProperty
(
"姓名"
)
private
String
name
;
@ApiModelProperty
(
"机构名"
)
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/controller/authorLibrary/AuthorLibraryController.java
浏览文件 @
034e23b8
...
...
@@ -56,32 +56,6 @@ public class AuthorLibraryController {
@ApiOperation
(
value
=
"查询专家库"
,
notes
=
"按条件分页查询专家库"
)
@GetMapping
(
ResourceRequestPath
.
PAGE
)
public
CallBack
<
PageInfo
<
AuthorLibraryListVO
>>
getPageList
(
QueryAuthorLibraryForm
entity
,
PageParam
pageParam
)
{
if
(
null
!=
entity
)
{
pageParam
.
setOrderBy
(
"createTime desc"
);
if
(
StringUtils
.
isNotBlank
(
entity
.
getDiytypeCode
()))
{
entity
.
setDiytypeCode
(
entity
.
getDiytypeCode
()
+
"%"
);
}
else
{
entity
.
setDiytypeCode
(
null
);
}
if
(
StringUtils
.
isNotBlank
(
entity
.
getName
()))
{
entity
.
setName
(
"%"
+
entity
.
getName
()
+
"%"
);
}
else
{
entity
.
setName
(
null
);
}
if
(
entity
.
getCreateTime
()!=
null
&&
entity
.
getCreateTime
()!=
""
){
if
(
entity
.
getCreateTime
().
equals
(
"desc"
)){
pageParam
.
setOrderBy
(
"createTime desc "
);
}
if
(
entity
.
getCreateTime
().
equals
(
"asc"
)){
pageParam
.
setOrderBy
(
"createTime asc "
);
}
}
if
(
StringUtils
.
isNotBlank
(
entity
.
getInstitutionName
()))
{
entity
.
setInstitutionName
(
"%"
+
entity
.
getInstitutionName
()
+
"%"
);
}
else
{
entity
.
setInstitutionName
(
null
);
}
}
return
CallBack
.
success
(
authorService
.
queryQueryAuthorLibraryList
(
entity
,
pageParam
));
}
@ApiOperation
(
value
=
"按照专家名模糊查询"
,
notes
=
"按照专家名模糊查询"
)
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/authorLibrary/AuthorLibraryServiceImpl.java
浏览文件 @
034e23b8
...
...
@@ -4,6 +4,7 @@ import java.util.ArrayList;
import
java.util.Date
;
import
java.util.List
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
...
...
@@ -49,7 +50,23 @@ public class AuthorLibraryServiceImpl extends BaseServiceImpl<AuthorLibrary, Int
*/
@Override
public
PageInfo
<
AuthorLibraryListVO
>
queryQueryAuthorLibraryList
(
QueryAuthorLibraryForm
entity
,
PageParam
pageParam
)
{
PageHelper
.
startPage
(
pageParam
.
getPageNum
(),
pageParam
.
getPageSize
(),
pageParam
.
getOrderBy
());
if
(
StringUtils
.
isNotBlank
(
entity
.
getName
()))
{
entity
.
setName
(
"%"
+
entity
.
getName
()
+
"%"
);
}
else
{
entity
.
setName
(
null
);
}
if
(
entity
.
getCreateTime
()!=
null
&&
entity
.
getCreateTime
()!=
""
){
if
(
entity
.
getCreateTime
().
equals
(
"desc"
)){
pageParam
.
setOrderBy
(
"createTime desc "
);
}
if
(
entity
.
getCreateTime
().
equals
(
"asc"
)){
pageParam
.
setOrderBy
(
"createTime asc "
);
}
}
startPage
(
pageParam
);
List
<
AuthorLibraryListVO
>
list
=
authorMapper
.
queryAuthorLibraryByConditions
(
entity
);
/*PageHelper.startPage(pageParam.getPageNum(), pageParam.getPageSize(), pageParam.getOrderBy());
List<AuthorLibraryListVO> list = authorMapper.queryAuthorLibraryByConditions(entity);
list.forEach(i -> {
if(i != null){
...
...
@@ -67,7 +84,7 @@ public class AuthorLibraryServiceImpl extends BaseServiceImpl<AuthorLibrary, Int
i.setDiyTypeIds(diyTypeIds);
i.setDiyTypeCodes(diyTypeCodes);
}
});
});
*/
return
new
PageInfo
<
AuthorLibraryListVO
>(
list
);
}
...
...
com.zrqx.resource/src/main/java/com/zrqx/resource/bg/service/clauseLibrary/ClauseLibraryServiceImpl.java
浏览文件 @
034e23b8
...
...
@@ -230,9 +230,10 @@ public class ClauseLibraryServiceImpl extends BaseServiceImpl<ClauseLibrary, Int
@Override
public
PageInfo
<
ResourceRelationListVo
>
pageByTitleAndDiyType
(
QueryResourceForPoPForm
form
,
PageParam
pageParam
)
{
if
(
pageParam
!=
null
&&
StringUtils
.
isNotBlank
(
pageParam
.
getOrderBy
()))
{
/*
if (pageParam != null && StringUtils.isNotBlank(pageParam.getOrderBy())) {
pageParam.setOrderBy("uploadTime desc");
}
}*/
pageParam
.
setOrderBy
(
"uploadTime desc"
);
startPage
(
pageParam
);
List
<
ResourceRelationListVo
>
list
=
mapper
.
queryByTileAndDiyType
(
form
);
return
new
PageInfo
<
ResourceRelationListVo
>(
list
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论