| | |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | linf.setLockName(lockInf.getLockName()+(i+1)); |
| | | linf.setLockType(lockInf.getLockType()); |
| | | linf.setLockState(-1); |
| | | if(lockInf.getLockAddress()!=null){ |
| | | linf.setLockAddress(lockInf.getLockAddress()); |
| | | }else{ |
| | | linf.setLockAddress(""); |
| | | } |
| | | linf.setLockPath(""); |
| | | linf.setLatitude(lockInf.getLatitude()); |
| | | linf.setLongitude(lockInf.getLongitude()); |
| | |
| | | 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); |