|
@@ -27,7 +27,7 @@ import java.util.*;
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
- * 前端控制器
|
|
|
|
|
|
+ * 前端控制器
|
|
* </p>
|
|
* </p>
|
|
*
|
|
*
|
|
* @author wuhs
|
|
* @author wuhs
|
|
@@ -70,7 +70,7 @@ public class TLocationCheckController {
|
|
|
|
|
|
@ApiOperation(value = "根据ip校验clientId设备位置")
|
|
@ApiOperation(value = "根据ip校验clientId设备位置")
|
|
@PostMapping("/ipCheck")
|
|
@PostMapping("/ipCheck")
|
|
- public ResponseModel<?> ipCheck(@RequestParam String clientId, @RequestParam String ip) throws IOException {
|
|
|
|
|
|
+ public ResponseModel<?> ipCheck(@RequestParam String clientId, @RequestParam String ip) {
|
|
if (StringUtils.isBlank(clientId) || StringUtils.isBlank(ip)) {
|
|
if (StringUtils.isBlank(clientId) || StringUtils.isBlank(ip)) {
|
|
return R.fail("参数不能为空");
|
|
return R.fail("参数不能为空");
|
|
}
|
|
}
|
|
@@ -167,7 +167,7 @@ public class TLocationCheckController {
|
|
return R.fail("设备唯一码不能为空");
|
|
return R.fail("设备唯一码不能为空");
|
|
}
|
|
}
|
|
LambdaQueryWrapper<TLocationCheck> wrapper = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<TLocationCheck> wrapper = Wrappers.lambdaQuery();
|
|
- wrapper.eq(TLocationCheck::getClientId,clientId);
|
|
|
|
|
|
+ wrapper.eq(TLocationCheck::getClientId, clientId);
|
|
List<TLocationCheck> checks = locationCheckService.list(wrapper);
|
|
List<TLocationCheck> checks = locationCheckService.list(wrapper);
|
|
if (checks.size() > 0) {
|
|
if (checks.size() > 0) {
|
|
return R.fail("此设备信息已录入");
|
|
return R.fail("此设备信息已录入");
|