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
f92ee338
Commit
f92ee338
authored
Dec 06, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
5620df01
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
32 additions
and
38 deletions
+32
-38
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+9
-1
UserReviewService.java
...in/java/com/egolm/film/api/service/UserReviewService.java
+0
-13
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+0
-20
UserReviewServiceImpl.java
...om/egolm/film/api/service/impl/UserReviewServiceImpl.java
+7
-2
UserReviewController.java
...ava/com/egolm/film/api/web/user/UserReviewController.java
+16
-2
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
f92ee338
package
com
.
egolm
.
film
.
api
.
service
;
package
com
.
egolm
.
film
.
api
.
service
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
com.egolm.common.jdbc.Page
;
public
interface
ReviewService
{
public
interface
ReviewService
{
Object
queryDoubtfulList
();
Object
queryDoubtfulList
();
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
push_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
);
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/UserReviewService.java
deleted
100644 → 0
View file @
5620df01
package
com
.
egolm
.
film
.
api
.
service
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
com.egolm.common.jdbc.Page
;
public
interface
UserReviewService
{
List
<
Map
<
String
,
Object
>>
queryReviewList
(
boolean
is_review
,
Integer
user_id
,
Date
push_date
,
Integer
film_type_id
,
Integer
enroll_type_id
,
String
keyword
,
Page
page
);
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
deleted
100644 → 0
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/service/impl/UserReviewServiceImpl.java
View file @
f92ee338
...
@@ -11,11 +11,11 @@ import com.egolm.common.DateUtil;
...
@@ -11,11 +11,11 @@ import com.egolm.common.DateUtil;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.JdbcTemplate
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.
User
ReviewService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.util.SqlWhere
;
import
com.egolm.film.util.SqlWhere
;
@Service
@Service
public
class
UserReviewServiceImpl
implements
User
ReviewService
{
public
class
UserReviewServiceImpl
implements
ReviewService
{
@Autowired
@Autowired
JdbcTemplate
jdbcTemplate
;
JdbcTemplate
jdbcTemplate
;
...
@@ -54,6 +54,11 @@ public class UserReviewServiceImpl implements UserReviewService {
...
@@ -54,6 +54,11 @@ public class UserReviewServiceImpl implements UserReviewService {
+
StringUtil
.
join
(
" and "
,
" and "
,
""
,
""
,
where
.
getStringList
());
+
StringUtil
.
join
(
" and "
,
" and "
,
""
,
""
,
where
.
getStringList
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectList
());
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectList
());
}
}
@Override
public
Object
queryDoubtfulList
()
{
return
jdbcTemplate
.
queryForList
(
"select * from enum_doubtful"
);
}
}
}
src/main/java/com/egolm/film/api/web/user/UserReviewController.java
View file @
f92ee338
...
@@ -5,6 +5,7 @@ import java.util.List;
...
@@ -5,6 +5,7 @@ import java.util.List;
import
java.util.Map
;
import
java.util.Map
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -12,7 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
...
@@ -12,7 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.common.jdbc.Page
;
import
com.egolm.film.api.service.
User
ReviewService
;
import
com.egolm.film.api.service.ReviewService
;
import
com.egolm.film.api.service.UserTokenService
;
import
com.egolm.film.api.service.UserTokenService
;
import
com.egolm.film.model.LoginToken
;
import
com.egolm.film.model.LoginToken
;
...
@@ -30,7 +31,7 @@ public class UserReviewController {
...
@@ -30,7 +31,7 @@ public class UserReviewController {
private
UserTokenService
tokenService
;
private
UserTokenService
tokenService
;
@Autowired
@Autowired
private
User
ReviewService
service
;
private
ReviewService
service
;
@ResponseBody
@ResponseBody
@PostMapping
(
"review_list"
)
@PostMapping
(
"review_list"
)
...
@@ -54,4 +55,17 @@ public class UserReviewController {
...
@@ -54,4 +55,17 @@ public class UserReviewController {
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
return
Rjx
.
jsonOk
().
setData
(
list
).
setPage
(
page
);
}
}
@ResponseBody
@PostMapping
(
"doubtful_save"
)
@ApiOperation
(
"保存疑点记录"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"film_id"
,
value
=
"影片ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"enroll_type_id"
,
value
=
"申报奖项ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
false
,
name
=
"doubtful_type_id"
,
value
=
"疑点类型ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"doubtful_text"
,
value
=
"疑点描述"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"date"
,
required
=
false
,
name
=
"play_time"
,
value
=
"播放时间{yyyy-MM-dd HH:mm:ss}"
),
})
public
Object
saveDoubtful
(
Integer
film_id
,
Integer
enroll_type_id
,
Integer
doubtful_type_id
,
String
doubtful_text
,
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
Date
play_time
)
{
return
Rjx
.
jsonOk
();
}
}
}
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