Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
张雷
/
skboot-zhongye
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
构建
提交
问题看板
文件
提交
网络
比较
分支
标签
f1ad7e99
由
康伟
编写于
2024-09-18 14:49:30 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge remote-tracking branch 'origin/master'
2 个父辈
36e0ce87
82687c6c
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
64 行增加
和
12 行删除
sk-module-biz/src/main/java/com/skua/modules/document/controller/DocumentManageController.java
sk-module-biz/src/main/java/com/skua/modules/material/mapper/xml/MaterialInfoMapper.xml
sk-module-biz/src/main/java/com/skua/modules/material/service/impl/MaterialInfoServiceImpl.java
sk-module-datafill/src/main/java/com/skua/modules/report/controller/ReportDataController.java
sk-module-biz/src/main/java/com/skua/modules/document/controller/DocumentManageController.java
查看文件 @
f1ad7e9
...
...
@@ -79,6 +79,28 @@ public class DocumentManageController {
return
result
;
}
/**
* 分页列表查询
* @param documentManageVO
* @param pageNo
* @param pageSize
* @return
*/
@AutoLog
(
value
=
"智慧图书馆-分页列表查询"
)
@ApiOperation
(
value
=
"智慧图书馆-分页列表查询"
,
notes
=
"智慧图书馆-分页列表查询"
)
@GetMapping
(
value
=
"/educationList"
)
public
Result
<
IPage
<
DocumentManageVO
>>
queryPageEducationdataList
(
DocumentManageVO
documentManageVO
,
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"10"
)
Integer
pageSize
)
{
documentManageVO
.
setDocuType
(
"education"
);
Result
<
IPage
<
DocumentManageVO
>>
result
=
new
Result
<
IPage
<
DocumentManageVO
>>();
Page
<
DocumentManageVO
>
pageList
=
new
Page
<
DocumentManageVO
>(
pageNo
,
pageSize
);
pageList
=
documentManageService
.
queryCustomPageList
(
pageList
,
documentManageVO
);
//自定义查询
result
.
setSuccess
(
true
);
result
.
setResult
(
pageList
);
return
result
;
}
@AutoLog
(
value
=
"智慧图书馆-分页列表查询"
)
@ApiOperation
(
value
=
"智慧图书馆-分页列表查询"
,
notes
=
"智慧图书馆-分页列表查询"
)
@GetMapping
(
value
=
"/contractList"
)
...
...
sk-module-biz/src/main/java/com/skua/modules/material/mapper/xml/MaterialInfoMapper.xml
查看文件 @
f1ad7e9
...
...
@@ -62,5 +62,11 @@
<if
test=
"materialInfo.rulesType!=null and materialInfo.rulesType!=''"
>
and rules_type like CONCAT(CONCAT('%', #{materialInfo.rulesType}),'%')
</if>
<if
test=
"materialInfo.lawsType!=null and materialInfo.lawsType!=''"
>
and laws_type like CONCAT(CONCAT('%', #{materialInfo.lawsType}),'%')
</if>
<if
test=
"materialInfo.standardsType!=null and materialInfo.standardsType!=''"
>
and standards_type like CONCAT(CONCAT('%', #{materialInfo.standardsType}),'%')
</if>
</select>
</mapper>
...
...
sk-module-biz/src/main/java/com/skua/modules/material/service/impl/MaterialInfoServiceImpl.java
查看文件 @
f1ad7e9
...
...
@@ -33,22 +33,46 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
String
dictCode
=
"rules_type"
;
//标准规范:bzgf 法律法规:flfg 公司制度章程:gzzd
if
(
"gzzd"
.
equals
(
facInfo
.
getFacInformationtype
())){
dictCode
=
"rules_type"
;
List
<
Map
<
String
,
Object
>>
typeList
=
baseMapper
.
getAnalysis
(
dictCode
);
for
(
Map
<
String
,
Object
>
map
:
typeList
)
{
String
type
=
map
.
get
(
"id"
).
toString
();
int
count
=
0
;
for
(
MaterialInfo
materialInfo:
list
){
if
(
materialInfo
.
getRulesType
().
contains
(
type
)){
count
++;
}
}
map
.
put
(
"count"
,
count
);
tList
.
add
(
map
);
}
}
else
if
(
"bzgf"
.
equals
(
facInfo
.
getFacInformationtype
())){
dictCode
=
"standards_type"
;
List
<
Map
<
String
,
Object
>>
typeList
=
baseMapper
.
getAnalysis
(
dictCode
);
for
(
Map
<
String
,
Object
>
map
:
typeList
)
{
String
type
=
map
.
get
(
"id"
).
toString
();
int
count
=
0
;
for
(
MaterialInfo
materialInfo:
list
){
if
(
materialInfo
.
getStandardsType
().
contains
(
type
)){
count
++;
}
}
map
.
put
(
"count"
,
count
);
tList
.
add
(
map
);
}
}
else
if
(
"flfg"
.
equals
(
facInfo
.
getFacInformationtype
())){
dictCode
=
"laws_type"
;
}
List
<
Map
<
String
,
Object
>>
typeList
=
baseMapper
.
getAnalysis
(
dictCode
);
for
(
Map
<
String
,
Object
>
map
:
typeList
)
{
String
type
=
map
.
get
(
"id"
).
toString
()
;
int
count
=
0
;
for
(
MaterialInfo
materialInfo:
list
){
if
(
materialInfo
.
getRulesType
().
contains
(
type
)){
count
++;
List
<
Map
<
String
,
Object
>>
typeList
=
baseMapper
.
getAnalysis
(
dictCode
);
for
(
Map
<
String
,
Object
>
map
:
typeList
)
{
String
type
=
map
.
get
(
"id"
).
toString
();
int
count
=
0
;
for
(
MaterialInfo
materialInfo:
list
){
if
(
materialInfo
.
getLawsType
().
contains
(
type
)
){
count
++;
}
}
map
.
put
(
"count"
,
count
);
tList
.
add
(
map
);
}
map
.
put
(
"count"
,
count
);
tList
.
add
(
map
);
}
return
tList
;
}
...
...
sk-module-datafill/src/main/java/com/skua/modules/report/controller/ReportDataController.java
查看文件 @
f1ad7e9
...
...
@@ -154,8 +154,8 @@ public class ReportDataController {
return
Result
.
ok
(
valueMap
);
}
@AutoLog
(
value
=
"运营周报展示"
)
@ApiOperation
(
value
=
"运营周报
展示"
,
notes
=
"运营周报
展示"
)
@AutoLog
(
value
=
"运营周报
word
展示"
)
@ApiOperation
(
value
=
"运营周报
word展示"
,
notes
=
"运营周报word
展示"
)
@GetMapping
(
value
=
"/reportWeekShow"
)
public
Result
<
Map
<
String
,
Object
>>
reportWeekShow
(
HttpServletRequest
req
)
{
Result
<
Map
<
String
,
Object
>>
result
=
new
Result
<>();
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论