Commit 8194a50a authored by tangwei's avatar tangwei

修改接口

parent 316b2127
spring.application.name=AIRPORT
spring.application.name=AIRPORT-tb
server.servlet.context-path=/jcs
server.port=11000
spring.profiles.active=dev
......@@ -8,3 +8,5 @@ spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
#mybatis-plus的日志开启配置,不能使用mybatis的,会找不到
mybatis-plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
#redis缓存失效时间单位秒
redis.cache.failure.time=10800
\ No newline at end of file
......@@ -2,11 +2,13 @@ package com.yeejoin.amos.boot.module.jcs.biz.controller;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
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.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -50,9 +52,12 @@ public class FirefightersJacketController extends BaseController {
@TycloudOperation(needAuth = true, ApiLevel = UserType.AGENCY)
@RequestMapping(value = "/save", method = RequestMethod.POST)
@ApiOperation(httpMethod = "POST", value = "新增消防人员配装记录", notes = "新增消防人员配装记录")
@Transactional
public ResponseModel saveFirefightersJacket(HttpServletRequest request,
@RequestBody FirefightersJacket firefightersJacket) {
boolean flag = iFirefightersJacketService.save(firefightersJacket);
@RequestBody List<FirefightersJacket> firefightersJacket) {
for (FirefightersJacket firefightersJacket2 : firefightersJacket) {
iFirefightersJacketService.save(firefightersJacket2);
}
return CommonResponseUtil.success(firefightersJacket);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment