| | |
| | | private final LightemitUtils lightemitUtils; |
| | | private final RealtimeServerBean realtimeServerBean; |
| | | private final PoleLightemitService poleLightemitService; |
| | | private final ClientService clientService; |
| | | |
| | | |
| | | public boolean insert(ProgramPro programPro) { |
| | |
| | | // programPro.setProgramId(poleXixunPlayer.getProgramId()); |
| | | // System.out.println(poleXixunPlayer.getProgramId()); |
| | | poleXixunPlayer.setRequestBody(json); |
| | | poleXixunPlayer.setScreenShot(programPro.getScreenShot()); |
| | | // poleXixunPlayer.setCreatTime(sdf.format(date)); |
| | | poleXixunPlayer.setCreateUserId(SecurityUtils.getClientId()); |
| | | poleXixunPlayer.setCreateUserId(SecurityUtils.getUserId()); |
| | | if(!clientService.findClientId()){ |
| | | poleXixunPlayer.setClientId(clientService.getClientId()); |
| | | } |
| | | |
| | | |
| | | return this.save(poleXixunPlayer); |
| | | } |
| | |
| | | try { |
| | | programPro = JsonUtil.convertJsonStringToObject(json, ProgramPro.class); |
| | | programPro.setProgramId(pid); |
| | | programPro.setScreenShot(byId.getScreenShot()); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |