Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
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
曲欣亮
sentinel
Commits
8b975eb0
Commit
8b975eb0
authored
Apr 26, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2f79a86a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
CinemaController.java
...n/java/com/egolm/film/api/web/admin/CinemaController.java
+7
-1
No files found.
src/main/java/com/egolm/film/api/web/admin/CinemaController.java
View file @
8b975eb0
...
...
@@ -10,6 +10,7 @@ import java.util.TreeMap;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.dao.DuplicateKeyException
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
...
@@ -28,6 +29,7 @@ import com.egolm.film.bean.Fc_cinema;
import
com.egolm.film.bean.Fc_cinema_showtime
;
import
com.egolm.film.bean.model.Fc_cinema_model
;
import
com.egolm.film.bean.model.Fc_cinema_showtime_model
;
import
com.egolm.film.config.XRException
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiImplicitParam
;
...
...
@@ -145,7 +147,11 @@ public class CinemaController {
list
.
add
(
showtime
);
}
}
try
{
common
.
batchSave
(
list
);
}
catch
(
DuplicateKeyException
e
)
{
throw
new
XRException
(
"新建场次时间已存在"
);
}
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