|
@@ -288,20 +288,33 @@ public class EnvDeviceServiceImpl extends ServiceImpl<EnvDeviceMapper, EnvDevice
|
|
pressureMapper.insert(pressure);
|
|
pressureMapper.insert(pressure);
|
|
|
|
|
|
|
|
|
|
- for (int i = 1; i < envDevice1.getFengJiNum() + 1; i++) {
|
|
|
|
|
|
+ for (int i = 1; i < envDevice1.getFengJiNum() + 25; i++) {
|
|
EnvDeviceFan fan = new EnvDeviceFan();
|
|
EnvDeviceFan fan = new EnvDeviceFan();
|
|
fan.setDeviceCode(envDevice1.getDeviceSortCode());
|
|
fan.setDeviceCode(envDevice1.getDeviceSortCode());
|
|
- fan.setChipCode(envDevice1.getDeviceSortCode() + "11" + i);
|
|
|
|
|
|
+ if (i < 9) {
|
|
|
|
+ fan.setChipCode(envDevice1.getDeviceSortCode() + "110" + i);
|
|
|
|
+ } else {
|
|
|
|
+ fan.setChipCode(envDevice1.getDeviceSortCode() + "11" + i);
|
|
|
|
+ }
|
|
|
|
+ if (i < 20) {
|
|
|
|
+ fan.setChipName("风机" + i);
|
|
|
|
+ } else {
|
|
|
|
+ fan.setChipName("变频风机" + i);
|
|
|
|
+ }
|
|
fan.setFarmId(envDevice1.getFarmId());
|
|
fan.setFarmId(envDevice1.getFarmId());
|
|
fan.setChipStatus(0);
|
|
fan.setChipStatus(0);
|
|
- fan.setChipName("风机" + i);
|
|
|
|
fan.setOther1(String.valueOf(i));
|
|
fan.setOther1(String.valueOf(i));
|
|
fanMapper.insert(fan);
|
|
fanMapper.insert(fan);
|
|
}
|
|
}
|
|
|
|
+
|
|
for (int i = 1; i < envDevice1.getXiaoChuangNum() + 1; i++) {
|
|
for (int i = 1; i < envDevice1.getXiaoChuangNum() + 1; i++) {
|
|
EnvDeviceFenestrule fenestrulen = new EnvDeviceFenestrule();
|
|
EnvDeviceFenestrule fenestrulen = new EnvDeviceFenestrule();
|
|
fenestrulen.setDeviceCode(envDevice1.getDeviceSortCode());
|
|
fenestrulen.setDeviceCode(envDevice1.getDeviceSortCode());
|
|
- fenestrulen.setChipCode(envDevice1.getDeviceSortCode() + "12" + i);
|
|
|
|
|
|
+ if (i < 9) {
|
|
|
|
+ fenestrulen.setChipCode(envDevice1.getDeviceSortCode() + "120" + i);
|
|
|
|
+ } else {
|
|
|
|
+ fenestrulen.setChipCode(envDevice1.getDeviceSortCode() + "12" + i);
|
|
|
|
+ }
|
|
fenestrulen.setFarmId(envDevice1.getFarmId());
|
|
fenestrulen.setFarmId(envDevice1.getFarmId());
|
|
fenestrulen.setChipStatus(0);
|
|
fenestrulen.setChipStatus(0);
|
|
fenestrulen.setChipName("小窗" + i);
|
|
fenestrulen.setChipName("小窗" + i);
|
|
@@ -311,7 +324,7 @@ public class EnvDeviceServiceImpl extends ServiceImpl<EnvDeviceMapper, EnvDevice
|
|
for (int i = 1; i < 6; i++) {
|
|
for (int i = 1; i < 6; i++) {
|
|
EnvDeviceOther other = new EnvDeviceOther();
|
|
EnvDeviceOther other = new EnvDeviceOther();
|
|
other.setDeviceCode(envDevice1.getDeviceSortCode());
|
|
other.setDeviceCode(envDevice1.getDeviceSortCode());
|
|
- other.setChipCode(envDevice1.getDeviceSortCode() + "13" + i);
|
|
|
|
|
|
+ other.setChipCode(envDevice1.getDeviceSortCode() + "130" + i);
|
|
other.setFarmId(envDevice1.getFarmId());
|
|
other.setFarmId(envDevice1.getFarmId());
|
|
if (i == 1) {
|
|
if (i == 1) {
|
|
other.setChipName("照明");
|
|
other.setChipName("照明");
|