Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
8194a50a
Commit
8194a50a
authored
Jun 22, 2021
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
316b2127
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
application.properties
...boot-jcs-system/src/main/resources/application.properties
+4
-1
FirefightersJacketController.java
...dule/jcs/biz/controller/FirefightersJacketController.java
+7
-2
No files found.
amos-boot-jcs-system/src/main/resources/application.properties
View file @
8194a50a
spring.application.name
=
AIRPORT
spring.application.name
=
AIRPORT
-tb
server.servlet.context-path
=
/jcs
server.servlet.context-path
=
/jcs
server.port
=
11000
server.port
=
11000
spring.profiles.active
=
dev
spring.profiles.active
=
dev
...
@@ -8,3 +8,5 @@ spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
...
@@ -8,3 +8,5 @@ spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
#mybatis-plus的日志开启配置,不能使用mybatis的,会找不到
#mybatis-plus的日志开启配置,不能使用mybatis的,会找不到
mybatis-plus.configuration.log-impl
=
org.apache.ibatis.logging.stdout.StdOutImpl
mybatis-plus.configuration.log-impl
=
org.apache.ibatis.logging.stdout.StdOutImpl
#redis缓存失效时间单位秒
redis.cache.failure.time
=
10800
\ No newline at end of file
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/controller/FirefightersJacketController.java
View file @
8194a50a
...
@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
...
@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
import
java.util.Arrays
;
import
java.util.Arrays
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -50,9 +52,12 @@ public class FirefightersJacketController extends BaseController {
...
@@ -50,9 +52,12 @@ public class FirefightersJacketController extends BaseController {
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
needAuth
=
true
,
ApiLevel
=
UserType
.
AGENCY
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/save"
,
method
=
RequestMethod
.
POST
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增消防人员配装记录"
,
notes
=
"新增消防人员配装记录"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增消防人员配装记录"
,
notes
=
"新增消防人员配装记录"
)
@Transactional
public
ResponseModel
saveFirefightersJacket
(
HttpServletRequest
request
,
public
ResponseModel
saveFirefightersJacket
(
HttpServletRequest
request
,
@RequestBody
FirefightersJacket
firefightersJacket
)
{
@RequestBody
List
<
FirefightersJacket
>
firefightersJacket
)
{
boolean
flag
=
iFirefightersJacketService
.
save
(
firefightersJacket
);
for
(
FirefightersJacket
firefightersJacket2
:
firefightersJacket
)
{
iFirefightersJacketService
.
save
(
firefightersJacket2
);
}
return
CommonResponseUtil
.
success
(
firefightersJacket
);
return
CommonResponseUtil
.
success
(
firefightersJacket
);
}
}
...
...
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