//package com.tykj.dev.device.sendback.util;
//
//import com.tykj.dev.device.library.repository.DeviceLibraryDao;
//import com.tykj.dev.device.library.subject.domin.DeviceLibrary;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.boot.CommandLineRunner;
//import org.springframework.stereotype.Service;
//
//import javax.swing.event.MenuKeyListener;
//
///**
// * @author zjm
// * @version 1.0.0
// * @ClassName test.java
// * @Description TODO
// * @createTime 2021年01月30日 14:18:00
// */
//@Service
//@Slf4j
//public class test implements CommandLineRunner {
//    @Autowired
//    DeviceLibraryDao deviceLibraryDao;
//    @Override
//    public void run(String... args) throws Exception {
//       log.info("开始模拟数据");
//      DeviceLibrary deviceLibrary= deviceLibraryDao.findById(13702).get();
//      for (int i=1;i<20000;i++) {
//          deviceLibrary.setId(null);
//          deviceLibraryDao.save(deviceLibrary);
//      }
//    }
//}
