Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
fc3f5288
Commit
fc3f5288
authored
Jan 13, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询查询所有
parent
11ba99cc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
17 deletions
+36
-17
cloud-site-api/src/main/java/com/yizhi/site/application/vo/site/InfomationParamVO.java
+2
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/DataClassificationServiceImpl.java
+6
-3
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/SystemMailboxServiceImpl.java
+12
-10
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
+16
-4
No files found.
cloud-site-api/src/main/java/com/yizhi/site/application/vo/site/InfomationParamVO.java
View file @
fc3f5288
...
...
@@ -31,6 +31,8 @@ public class InfomationParamVO extends ContextVO {
@ApiModelProperty
(
value
=
"发布时间的终点"
)
private
Date
end
;
private
Long
isTop
;
private
Long
siteId
;
@ApiModelProperty
(
value
=
"状态 0 删除 1 未发布 2 发布"
)
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/DataClassificationServiceImpl.java
View file @
fc3f5288
...
...
@@ -122,12 +122,13 @@ public class DataClassificationServiceImpl extends ServiceImpl<DataClassificatio
}*/
}
else
{
Map
<
String
,
Object
>
map
=
null
;
for
(
ClassificationVO
vo
:
list
){
for
(
ClassificationVO
vo
:
list
)
{
if
(
vo
.
getId
()
!=
0L
)
{
EntityWrapper
<
DataClassification
>
wrapper
=
new
EntityWrapper
<>();
wrapper
.
eq
(
"state"
,
1
);
wrapper
.
eq
(
"parent_id"
,
vo
.
getId
());
List
<
DataClassification
>
selectByMap
=
dataClassificationService
.
selectList
(
wrapper
);
List
<
DataClassificationVo
>
selectVoByMap
=
new
ArrayList
<>();
List
<
DataClassificationVo
>
selectVoByMap
=
new
ArrayList
<>();
if
(
CollectionUtil
.
isNotEmpty
(
selectByMap
))
{
for
(
DataClassification
d
:
selectByMap
)
{
DataClassificationVo
entityVo
=
new
DataClassificationVo
();
...
...
@@ -146,13 +147,15 @@ public class DataClassificationServiceImpl extends ServiceImpl<DataClassificatio
BeanUtils
.
copyProperties
(
child
,
entityChild
);
childClassifyNews
.
add
(
entityChild
);
}
entityVo
.
setChildClassifyNews
(
childClassifyNews
);;
entityVo
.
setChildClassifyNews
(
childClassifyNews
);
;
}
}
}
vo
.
setData
(
selectVoByMap
);
}
}
}
return
list
;
}
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/SystemMailboxServiceImpl.java
View file @
fc3f5288
...
...
@@ -69,19 +69,21 @@ public class SystemMailboxServiceImpl extends ServiceImpl<SystemMailboxMapper,Sy
systemMailBoxVo
.
setUpdateById
(
res
.
getAccountId
());
systemMailBoxVo
.
setUpdateByName
(
res
.
getAccountName
());
systemMailBoxVo
.
setUpdateTime
(
new
Date
());
Long
id
=
systemMailBoxVo
.
getId
();
systemMailBox
.
setDeleted
(
DeletedEnum
.
NO
.
getValue
());
BeanUtils
.
copyProperties
(
systemMailBoxVo
,
systemMailBox
);
Long
id
=
systemMailBox
.
getId
();
if
(
id
==
null
||
id
==
0L
)
{
id
=
idGenerator
.
generate
();
systemMailBoxVo
.
setId
(
id
);
systemMailBoxVo
.
setSubmitTime
(
new
Date
());
systemMailBoxVo
.
setState
(
SiteConstant
.
TWO
);
systemMailBoxVo
.
setCreateById
(
res
.
getAccountId
());
systemMailBoxVo
.
setCreateByName
(
res
.
getAccountName
());
systemMailBoxVo
.
setCreateTime
(
new
Date
());
}
BeanUtils
.
copyProperties
(
systemMailBoxVo
,
systemMailBox
);
systemMailBox
.
setDeleted
(
DeletedEnum
.
NO
.
getValue
());
systemMailBox
.
setId
(
id
);
systemMailBox
.
setSubmitTime
(
new
Date
());
systemMailBox
.
setState
(
SiteConstant
.
TWO
);
systemMailBox
.
setCreateById
(
res
.
getAccountId
());
systemMailBox
.
setCreateByName
(
res
.
getAccountName
());
systemMailBox
.
setCreateTime
(
new
Date
());
this
.
insert
(
systemMailBox
);
}
else
{
this
.
updateById
(
systemMailBox
);
}
return
id
;
}
...
...
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
View file @
fc3f5288
...
...
@@ -55,7 +55,10 @@
<if
test=
"null != state"
>
and a.state = #{state}
</if>
order by a.is_top desc, a.create_time desc
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
order by a.is_top desc, a.update_time desc
</select>
<select
id=
"informationThreeList"
resultType=
"com.yizhi.site.application.domain.Information"
>
...
...
@@ -74,7 +77,10 @@
<if
test=
"end != null"
>
and #{end} >= a.release_time
</if>
order by a.is_top desc, a.create_time desc
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
order by a.is_top desc, a.update_time desc
</select>
<select
id=
"informationTwoList"
resultType=
"com.yizhi.site.application.domain.Information"
>
...
...
@@ -93,7 +99,10 @@
<if
test=
"end != null"
>
and #{end} >= a.release_time
</if>
order by a.is_top desc, a.create_time desc
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
order by a.is_top desc, a.update_time desc
</select>
<select
id=
"informationAllList"
resultType=
"com.yizhi.site.application.domain.Information"
>
...
...
@@ -112,7 +121,10 @@
<if
test=
"end != null"
>
and #{end} >= a.release_time
</if>
order by a.is_top desc, a.create_time desc
<if
test=
"isTop != null"
>
and a.is_top = #{isTop}
</if>
order by a.is_top desc, a.update_time desc
</select>
<select
id=
"informationPageList"
resultType=
"com.yizhi.site.application.vo.site.InformationStudentVO"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment