|
@@ -208,7 +208,7 @@ public class DeviceService {
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
long id = new IdWorker(NumberConstant.ONE).nextId();
|
|
long id = new IdWorker(NumberConstant.ONE).nextId();
|
|
|
device.setId(id);
|
|
device.setId(id);
|
|
|
- String newStr = deviceAdd.getSnCodeFullname().replace("-", "").toLowerCase();
|
|
|
|
|
|
|
+ String newStr = deviceAdd.getSnCodeFullName().replace("-", "").toLowerCase();
|
|
|
device.setSnCode(newStr);
|
|
device.setSnCode(newStr);
|
|
|
device.setCreateBy(Long.parseLong(headerData.getCreateBy()));
|
|
device.setCreateBy(Long.parseLong(headerData.getCreateBy()));
|
|
|
device.setCreateTime(now);
|
|
device.setCreateTime(now);
|