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
43309bbe
Commit
43309bbe
authored
Jan 02, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查看我的投稿接口
parent
9e4dacf8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
89 additions
and
61 deletions
+89
-61
cloud-site-service/src/main/java/com/yizhi/site/application/SiteApplication.java
+0
-7
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/InformationMapper.java
+2
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/InformationServiceImpl.java
+66
-46
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
+21
-8
No files found.
cloud-site-service/src/main/java/com/yizhi/site/application/SiteApplication.java
View file @
43309bbe
package
com
.
yizhi
.
site
.
application
;
package
com
.
yizhi
.
site
.
application
;
import
com.yizhi.core.application.security.config.SpringSecurityConfig
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
;
import
org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.ComponentScan
;
import
org.springframework.context.annotation.DependsOn
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
@EnableTransactionManagement
@EnableTransactionManagement
...
@@ -18,9 +15,5 @@ public class SiteApplication {
...
@@ -18,9 +15,5 @@ public class SiteApplication {
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
SiteApplication
.
class
,
args
);
SpringApplication
.
run
(
SiteApplication
.
class
,
args
);
}
}
@Bean
public
SpringSecurityConfig
springSecurityConfig
(){
return
new
SpringSecurityConfig
();
}
}
}
cloud-site-service/src/main/java/com/yizhi/site/application/mapper/InformationMapper.java
View file @
43309bbe
...
@@ -25,6 +25,8 @@ public interface InformationMapper extends BaseMapper<Information> {
...
@@ -25,6 +25,8 @@ public interface InformationMapper extends BaseMapper<Information> {
List
<
Information
>
informationTwoList
(
InfomationParamVO
vo
,
Page
<
Information
>
page
);
List
<
Information
>
informationTwoList
(
InfomationParamVO
vo
,
Page
<
Information
>
page
);
List
<
Information
>
informationThreeList
(
InfomationParamVO
vo
,
Page
<
Information
>
page
);
List
<
AnnouncementVO
>
selectAnnouncement
(
Page
<
AnnouncementVO
>
page
,
Map
<
String
,
Object
>
map
);
List
<
AnnouncementVO
>
selectAnnouncement
(
Page
<
AnnouncementVO
>
page
,
Map
<
String
,
Object
>
map
);
List
<
InformationStudentVO
>
informationPageList
(
@Param
(
"typeName"
)
String
typeName
,
@Param
(
"siteId"
)
Long
siteId
,
@Param
(
"typeOne"
)
Long
typeOne
,
Page
<
InformationStudentVO
>
page
);
List
<
InformationStudentVO
>
informationPageList
(
@Param
(
"typeName"
)
String
typeName
,
@Param
(
"siteId"
)
Long
siteId
,
@Param
(
"typeOne"
)
Long
typeOne
,
Page
<
InformationStudentVO
>
page
);
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/InformationServiceImpl.java
View file @
43309bbe
This diff is collapsed.
Click to expand it.
cloud-site-service/src/main/resources/mapper/InformationMapper.xml
View file @
43309bbe
...
@@ -52,22 +52,16 @@
...
@@ -52,22 +52,16 @@
<if
test=
"end != null"
>
<if
test=
"end != null"
>
and #{end} >= a.release_time
and #{end} >= a.release_time
</if>
</if>
<if
test=
"null != typeTwoId"
>
and a.type_two = #{typeTwoId}
</if>
<if
test=
"null != typeThreeId"
>
and a.type_three = #{typeThreeId}
</if>
<if
test=
"null != state"
>
<if
test=
"null != state"
>
and a.state = #{state}
and a.state = #{state}
</if>
</if>
order by a.is_top desc, a.create_time desc
order by a.is_top desc, a.create_time desc
</select>
</select>
<select
id=
"informationT
wo
List"
resultType=
"com.yizhi.site.application.domain.Information"
>
<select
id=
"informationT
hree
List"
resultType=
"com.yizhi.site.application.domain.Information"
>
<!-- select a.* from information a left join data_classification b on a.type_two=b.id
<!-- select a.* from information a left join data_classification b on a.type_two=b.id
where 1=1 and a.site_id=#{siteId} and b.site_id=#{siteId} and b.name=#{name} -->
where 1=1 and a.site_id=#{siteId} and b.site_id=#{siteId} and b.name=#{name} -->
select a.* from information a where 1=1 and a.site_id=#{siteId} and a.type_t
wo
=#{typeId}
select a.* from information a where 1=1 and a.site_id=#{siteId} and a.type_t
hree
=#{typeId}
<if
test=
"fileName != null and fileName != ''"
>
<if
test=
"fileName != null and fileName != ''"
>
and (a.file_name like CONCAT('%', '${fileName}', '%' ) or a.key_words like CONCAT('%', '${fileName}', '%' ) )
and (a.file_name like CONCAT('%', '${fileName}', '%' ) or a.key_words like CONCAT('%', '${fileName}', '%' ) )
</if>
</if>
...
@@ -83,6 +77,25 @@
...
@@ -83,6 +77,25 @@
order by a.is_top desc, a.create_time desc
order by a.is_top desc, a.create_time desc
</select>
</select>
<select
id=
"informationTwoList"
resultType=
"com.yizhi.site.application.domain.Information"
>
<!-- select a.* from information a left join data_classification b on a.type_two=b.id
where 1=1 and a.site_id=#{siteId} and b.site_id=#{siteId} and b.name=#{name} -->
select a.* from information a where 1=1 and a.site_id=#{siteId} and a.type_two=#{typeId}
<if
test=
"fileName != null and fileName != ''"
>
and (a.file_name like CONCAT('%', '${fileName}', '%' ) or a.key_words like CONCAT('%', '${fileName}', '%' ) )
</if>
<!-- <if test="keyWords != null and keyWords != ''">-->
<!-- and a.key_words like CONCAT('%', '${keyWords}', '%' )-->
<!-- </if>-->
<if
test=
"start != null"
>
and a.release_time >= #{start}
</if>
<if
test=
"end != null"
>
and #{end} >= a.release_time
</if>
order by a.is_top desc, a.create_time desc
</select>
<select
id=
"informationPageList"
resultType=
"com.yizhi.site.application.vo.site.InformationStudentVO"
>
<select
id=
"informationPageList"
resultType=
"com.yizhi.site.application.vo.site.InformationStudentVO"
>
SELECT
SELECT
...
...
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