Commit 367f0119 by zzrdark

1.fix 系列号修改不成功

parent 574e7177
spring: spring:
profiles: profiles:
active: prod active: dev
application: application:
name: cneeds-server-datashow name: cneeds-server-datashow
server: server:
......
...@@ -215,7 +215,7 @@ public class DeviceInfoController { ...@@ -215,7 +215,7 @@ public class DeviceInfoController {
if (devicesDto.getImeis() != null && devicesDto.getImeis().size() != 0) { if (devicesDto.getImeis() != null && devicesDto.getImeis().size() != 0) {
devicesDto.getImeis().forEach(str -> { devicesDto.getImeis().forEach(str -> {
DeviceInfoEntity queryDeviceByImei = deviceInfoService.queryDeviceByImei(str); DeviceInfoEntity queryDeviceByImei = deviceInfoService.queryDeviceByImei(str);
if (queryDeviceByImei == null){ if (queryDeviceByImei != null){
DeviceInfoEntity deviceInfoEntity = new DeviceInfoEntity(); DeviceInfoEntity deviceInfoEntity = new DeviceInfoEntity();
deviceInfoEntity.setImei(str); deviceInfoEntity.setImei(str);
deviceInfoEntity.setSeriesId(devicesDto.getSeriesId()); deviceInfoEntity.setSeriesId(devicesDto.getSeriesId());
......
spring: spring:
profiles: profiles:
active: prod active: dev
application: application:
name: cneeds-server-device name: cneeds-server-device
......
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