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
2264d609
Commit
2264d609
authored
Feb 13, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
bff61c61
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
88 additions
and
5 deletions
+88
-5
ReviewService.java
src/main/java/com/egolm/film/api/service/ReviewService.java
+2
-0
ReviewServiceImpl.java
...va/com/egolm/film/api/service/impl/ReviewServiceImpl.java
+16
-0
AdminReviewController.java
...a/com/egolm/film/api/web/admin/AdminReviewController.java
+16
-1
Fc_review.java
src/main/java/com/egolm/film/bean/Fc_review.java
+3
-3
Fc_user_film.java
src/main/java/com/egolm/film/bean/Fc_user_film.java
+50
-0
DBUtil.java
src/main/java/com/egolm/film/util/DBUtil.java
+1
-1
No files found.
src/main/java/com/egolm/film/api/service/ReviewService.java
View file @
2264d609
...
...
@@ -115,5 +115,7 @@ public interface ReviewService {
List
<
Map
<
String
,
Object
>>
queryExhibitionList
(
String
keyword
,
Integer
enroll_type_id
,
Integer
film_type_name
,
Integer
film_type_name_short
,
String
film_country
,
Integer
from_round
,
Page
page
);
void
allotShowFilmUser
(
Integer
review_id
,
Integer
[]
user_id
);
}
\ No newline at end of file
src/main/java/com/egolm/film/api/service/impl/ReviewServiceImpl.java
View file @
2264d609
package
com
.
egolm
.
film
.
api
.
service
.
impl
;
import
java.util.ArrayList
;
import
java.util.Collection
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
@@ -24,6 +25,7 @@ import com.egolm.film.bean.Fc_review_history;
import
com.egolm.film.bean.Fc_review_record
;
import
com.egolm.film.bean.Fc_review_record_ext
;
import
com.egolm.film.bean.Fc_user
;
import
com.egolm.film.bean.Fc_user_film
;
import
com.egolm.film.config.XRException
;
import
com.egolm.film.util.SqlWhere
;
...
...
@@ -576,4 +578,18 @@ public class ReviewServiceImpl implements ReviewService {
return
jdbcTemplate
.
limit
(
sql
,
page
,
where
.
getObjectArray
());
}
@Override
@Transactional
public
void
allotShowFilmUser
(
Integer
review_id
,
Integer
[]
user_id
)
{
this
.
jdbcTemplate
.
executeUpdate
(
"delete * from fc_user_film where review_id = ?"
,
review_id
);
List
<
Fc_user_film
>
ufs
=
new
ArrayList
<
Fc_user_film
>();
for
(
Integer
uid
:
user_id
)
{
Fc_user_film
uf
=
new
Fc_user_film
();
uf
.
setReview_id
(
review_id
);
uf
.
setUser_id
(
uid
);
ufs
.
add
(
uf
);
}
this
.
jdbcTemplate
.
batchSave
(
ufs
);
}
}
\ No newline at end of file
src/main/java/com/egolm/film/api/web/admin/AdminReviewController.java
View file @
2264d609
...
...
@@ -269,7 +269,7 @@ public class AdminReviewController {
@ApiOperation
(
"分配审片评委"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_id"
,
value
=
"审片主表ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_round"
,
value
=
"分配评委的审片环节"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_round"
,
value
=
"分配评委的审片环节
, 分配看片评委时为0或不传此参数
"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"is_cancel"
,
value
=
"是否取消分配 true|false 或 1|0"
,
allowMultiple
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"user_id"
,
value
=
"审片评委ID"
,
allowMultiple
=
true
),
})
...
...
@@ -316,6 +316,21 @@ public class AdminReviewController {
return
Rjx
.
jsonOk
();
}
@ResponseBody
@Transactional
@PostMapping
(
"allot_show_user"
)
@ApiOperation
(
"分配看片评委"
)
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"review_id"
,
value
=
"审片主表ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"int"
,
required
=
true
,
name
=
"user_id"
,
value
=
"审片评委ID"
,
allowMultiple
=
true
),
})
public
Object
allot_show_user
(
Integer
review_id
,
Integer
[]
user_id
)
{
reviewService
.
allotShowFilmUser
(
review_id
,
user_id
);
return
Rjx
.
jsonOk
();
}
@ResponseBody
@PostMapping
(
"allot_list"
)
@ApiOperation
(
"查询审片评委"
)
...
...
src/main/java/com/egolm/film/bean/Fc_review.java
View file @
2264d609
...
...
@@ -29,13 +29,13 @@ public class Fc_review implements java.io.Serializable {
@Column
(
columnDefinition
=
"int(11) COMMENT '评委分配状态 0未分配评委 1已分配评委评选中'"
)
private
Integer
allot_state
;
@Column
(
columnDefinition
=
"int(11) COMMENT '审片结论 0未评选 1
通过 2
否决 3参赛 4参赛备选 5参展'"
)
@Column
(
columnDefinition
=
"int(11) COMMENT '审片结论 0未评选 1
已通过 2已
否决 3参赛 4参赛备选 5参展'"
)
private
Integer
review_state
;
@Column
(
columnDefinition
=
"int(11) COMMENT '评选状态 0未评选 1有争议 2
管理员分配 3审片
完成'"
)
@Column
(
columnDefinition
=
"int(11) COMMENT '评选状态 0未评选 1有争议 2
待晋级 3
完成'"
)
private
Integer
opt_state
;
@Column
(
columnDefinition
=
"int(11) COMMENT '
0原始 2二选 3三选
'"
)
@Column
(
columnDefinition
=
"int(11) COMMENT '
流程来源 0原始 2二选 3三选 5选片委员会
'"
)
private
Integer
from_round
;
@Column
(
columnDefinition
=
"datetime COMMENT '推送时间'"
)
...
...
src/main/java/com/egolm/film/bean/Fc_user_film.java
0 → 100644
View file @
2264d609
package
com
.
egolm
.
film
.
bean
;
import
javax.persistence.Entity
;
import
javax.persistence.Column
;
import
javax.persistence.Id
;
@Entity
(
name
=
"fc_user_film"
)
public
class
Fc_user_film
implements
java
.
io
.
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@Id
@Column
(
columnDefinition
=
"int(11)"
)
private
Integer
id
;
@Column
(
columnDefinition
=
"int(11)"
)
private
Integer
user_id
;
@Column
(
columnDefinition
=
"int(11)"
)
private
Integer
review_id
;
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Integer
getId
()
{
return
id
;
}
public
void
setUser_id
(
Integer
user_id
)
{
this
.
user_id
=
user_id
;
}
public
Integer
getUser_id
()
{
return
user_id
;
}
public
void
setReview_id
(
Integer
review_id
)
{
this
.
review_id
=
review_id
;
}
public
Integer
getReview_id
()
{
return
review_id
;
}
}
src/main/java/com/egolm/film/util/DBUtil.java
View file @
2264d609
...
...
@@ -11,7 +11,7 @@ public class DBUtil {
"D:\\eclipse-workspace\\egolm.com\\default\\siff-film-api\\src\\main\\java"
,
"com.egolm.film.bean"
,
"曲欣亮"
,
"10.10.0.111"
,
"
film_new
"
,
"
mv
"
,
"root"
,
"egolm#2018"
);
mysqlTo
.
execute
();
...
...
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