whyclxw
2025-01-19 1bad96e94164e9252bb723e1e2e0ccff31744842
添加锁
1个文件已修改
9 ■■■■ 已修改文件
src/main/java/com/whyc/service/LockInfService.java 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/service/LockInfService.java
@@ -17,6 +17,7 @@
import org.springframework.stereotype.Service;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
@@ -45,7 +46,11 @@
            linf.setLockName(lockInf.getLockName()+(i+1));
            linf.setLockType(lockInf.getLockType());
            linf.setLockState(-1);
            linf.setLockAddress(lockInf.getLockAddress());
            if(lockInf.getLockAddress()!=null){
                linf.setLockAddress(lockInf.getLockAddress());
            }else{
                linf.setLockAddress("");
            }
            linf.setLockPath("");
            linf.setLatitude(lockInf.getLatitude());
            linf.setLongitude(lockInf.getLongitude());
@@ -53,6 +58,8 @@
            linf.setScreenBoxType(lockInf.getScreenBoxType());
            linf.setScreenBoxProduct(lockInf.getScreenBoxProduct());
            linf.setScreenFlag(lockInf.getScreenFlag());
            linf.setLockOnline(0);
            linf.setLastUpdateTime(new Date());
            list.add(linf);
        }
        mapper.insertBatchSomeColumn(list);