1
0

新增客户

This commit is contained in:
2025-07-07 10:56:14 +08:00
parent 2a06c18f35
commit 952077da92
8 changed files with 78 additions and 4 deletions

View File

@ -17,6 +17,12 @@
</description>
<dependencies>
<!-- <dependency> -->
<!-- <groupId>com.fuyuanshen</groupId> -->
<!-- <artifactId>fys-app</artifactId> -->
<!-- </dependency> -->
<!-- 通用工具-->
<dependency>
<groupId>com.fuyuanshen</groupId>

View File

@ -387,11 +387,18 @@ public class DeviceServiceImpl extends ServiceImpl<DeviceMapper, Device> impleme
List<Device> deviceChain = getDeviceChain(id);
deviceChain.forEach((device) -> {
device.setDeviceStatus(DeviceStatusEnum.INVALID.getCode());
// device.setCustomerId(null);
// device.setCustomerName("");
deviceMapper.updateById(device);
});
});
ids.forEach((id) -> {
Device device = new Device();
device.setId(id);
device.setCustomerId(null);
device.setCustomerName("");
deviceMapper.updateById(device);
});
}