2021与蓝度共同重构项目,服务端
liuhaonan
2022-03-15 58ef959cca3a0a21c421efe9c16645aaeed3c4de
ximon-admin/src/main/java/com/sandu/ximon/admin/service/XiXunPlayerService.java
@@ -33,6 +33,7 @@
    private final LightemitUtils lightemitUtils;
    private final RealtimeServerBean realtimeServerBean;
    private final PoleLightemitService poleLightemitService;
    private final ClientService clientService;
    public boolean insert(ProgramPro programPro) {
@@ -46,8 +47,13 @@
//        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);
    }
@@ -70,6 +76,7 @@
        try {
            programPro = JsonUtil.convertJsonStringToObject(json, ProgramPro.class);
            programPro.setProgramId(pid);
            programPro.setScreenShot(byId.getScreenShot());
        } catch (Exception e) {
            e.printStackTrace();
        }