Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
member-api
Commits
5620df01
Commit
5620df01
authored
Dec 06, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
8ee8f0ac
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
93 additions
and
0 deletions
+93
-0
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+7
-0
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+20
-0
CommonApiController.java
...main/java/com/egolm/film/api/web/CommonApiController.java
+11
-0
Enum_doubtful.java
src/main/java/com/egolm/film/bean/Enum_doubtful.java
+55
-0
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
0 → 100644
View file @
5620df01
package
com
.
egolm
.
film
.
api
.
service
;
public
interface
ReviewService
{
Object
queryDoubtfulList
();
}
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
0 → 100644
View file @
5620df01
package
com
.
egolm
.
film
.
api
.
service
.
impl
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.film.api.service.ReviewService
;
@Service
public
class
ReviewServiceImpl
implements
ReviewService
{
@Autowired
JdbcTemplate
jdbcTemplate
;
@Override
public
Object
queryDoubtfulList
()
{
return
jdbcTemplate
.
queryForList
(
"select * from enum_doubtful"
);
}
}
src/main/java/com/egolm/film/api/web/CommonApiController.java
View file @
5620df01
...
@@ -10,6 +10,7 @@ import com.egolm.common.bean.Rjx;
...
@@ -10,6 +10,7 @@ import com.egolm.common.bean.Rjx;
import
com.egolm.film.api.service.CountryService
;
import
com.egolm.film.api.service.CountryService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.FilmService
;
import
com.egolm.film.api.service.LanguageService
;
import
com.egolm.film.api.service.LanguageService
;
import
com.egolm.film.api.service.ReviewService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -25,6 +26,9 @@ public class CommonApiController {
...
@@ -25,6 +26,9 @@ public class CommonApiController {
@Autowired
@Autowired
private
LanguageService
languageService
;
private
LanguageService
languageService
;
@Autowired
private
ReviewService
reviewService
;
@Autowired
@Autowired
private
FilmService
filmService
;
private
FilmService
filmService
;
...
@@ -57,4 +61,11 @@ public class CommonApiController {
...
@@ -57,4 +61,11 @@ public class CommonApiController {
return
Rjx
.
jsonOk
().
setData
(
filmService
.
queryTypeList
());
return
Rjx
.
jsonOk
().
setData
(
filmService
.
queryTypeList
());
}
}
@ResponseBody
@PostMapping
(
"getDoubtfulList"
)
@ApiOperation
(
"获取疑点列表"
)
public
Object
getDoubtfulList
()
{
return
Rjx
.
jsonOk
().
setData
(
reviewService
.
queryDoubtfulList
());
}
}
}
src/main/java/com/egolm/film/bean/Enum_doubtful.java
0 → 100644
View file @
5620df01
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Id
;
/**
* @author 曲欣亮
*/
@Entity
(
name
=
"enum_doubtful"
)
public
class
Enum_doubtful
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@Id
private
Integer
id
;
private
String
doubtful_name
;
/**
* 无参数构造方法
*/
public
Enum_doubtful
()
{
super
();
}
/**
* 全参数构造方法
* @param id
* @param doubtful_name
*/
public
Enum_doubtful
(
Integer
id
,
String
doubtful_name
)
{
this
.
id
=
id
;
this
.
doubtful_name
=
doubtful_name
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setDoubtful_name
(
String
doubtful_name
)
{
this
.
doubtful_name
=
doubtful_name
;
}
public
String
getDoubtful_name
()
{
return
doubtful_name
;
}
}
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