| | |
| | | |
| | | import cn.flightfeather.supervision.SupervisionApplication |
| | | import cn.flightfeather.supervision.domain.ds1.entity.Scense |
| | | import cn.flightfeather.supervision.domain.ds1.repository.SceneRep |
| | | import cn.flightfeather.supervision.domain.ds1.repository.UserInfoSVRep |
| | | import cn.flightfeather.supervision.lightshare.service.ScenseService |
| | | import org.junit.Test |
| | | import org.junit.runner.RunWith |
| | |
| | | |
| | | @Autowired |
| | | lateinit var scenseService: ScenseService |
| | | |
| | | @Autowired |
| | | lateinit var sceneRep: SceneRep |
| | | |
| | | @Autowired |
| | | lateinit var userInfoSVRep: UserInfoSVRep |
| | | |
| | | @Test |
| | | fun getSceneType() { |
| | |
| | | val r = scenseService.search(s) |
| | | println(r) |
| | | } |
| | | |
| | | @Test |
| | | fun createTZUserInfo() { |
| | | val sId = listOf( |
| | | "9jqhywmfvpgvxrT2" |
| | | ) |
| | | sId.forEach { |
| | | val scene = sceneRep.findScene(sceneId = it) ?: return@forEach |
| | | val userInfo = userInfoSVRep.findUser(it) ?: return@forEach |
| | | scenseService.createTZUserInfo(userInfo, scene) |
| | | } |
| | | } |
| | | } |