Commit 64104c0b authored by KeYong's avatar KeYong

Merge branch 'developer' of 172.16.10.76:moa/amos-boot-biz into developer

parents b5cff5a5 33efc059
...@@ -135,6 +135,10 @@ public class AlertCalledController extends BaseController { ...@@ -135,6 +135,10 @@ public class AlertCalledController extends BaseController {
@Autowired @Autowired
TzsAuthService tzsAuthService; TzsAuthService tzsAuthService;
@Autowired
private ElevatorServiceImpl iElevatorService;
/** /**
* 新增警情接警填报记录 * 新增警情接警填报记录
* *
...@@ -144,10 +148,17 @@ public class AlertCalledController extends BaseController { ...@@ -144,10 +148,17 @@ public class AlertCalledController extends BaseController {
@PostMapping(value = "/save") @PostMapping(value = "/save")
@ApiOperation(httpMethod = "POST", value = "新增警情接警填报记录", notes = "新增警情接警填报记录") @ApiOperation(httpMethod = "POST", value = "新增警情接警填报记录", notes = "新增警情接警填报记录")
public ResponseModel<AlertCalledDto> save(@RequestBody AlertCalledObjsDto alertCalledObjsDto) { public ResponseModel<AlertCalledDto> save(@RequestBody AlertCalledObjsDto alertCalledObjsDto) {
if (ValidationUtil.isEmpty(alertCalledObjsDto) if (ValidationUtil.isEmpty(alertCalledObjsDto)) {
|| ValidationUtil.isEmpty(alertCalledObjsDto.getAlertCalledDto())) {
throw new BadRequest("参数校验失败."); throw new BadRequest("参数校验失败.");
} }
LambdaQueryWrapper<Elevator> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.eq(Elevator::getRescueCode,alertCalledObjsDto.getAlertCalledDto().getDeviceId());
Elevator elevator = iElevatorService.getOne(queryWrapper);
if(elevator == null) {
throw new BadRequest("未找到相关电梯.");
}
ReginParams reginParams = getSelectedOrgInfo(); ReginParams reginParams = getSelectedOrgInfo();
alertCalledObjsDto = iAlertCalledService.createAlertCalled(alertCalledObjsDto, reginParams.getUserModel()); alertCalledObjsDto = iAlertCalledService.createAlertCalled(alertCalledObjsDto, reginParams.getUserModel());
......
spring.application.name=TZS-kfm spring.application.name=TZS
server.servlet.context-path=/tzs server.servlet.context-path=/tzs
server.port=11000 server.port=11000
spring.profiles.active=jd spring.profiles.active=jd
......
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