Ver código fonte

commit: is start or last\next page

lihao16 1 ano atrás
pai
commit
bf4945a674

+ 3 - 2
inspur-admin/src/main/java/com/inspur/web/controller/partywork/RemoteControlController.java

@@ -23,8 +23,9 @@ public class RemoteControlController extends BaseController {
     @GetMapping("/file/play")
     public AjaxResult filePlay(@RequestParam("id") Long id ,
                                @RequestParam("index") Integer index,
-                               @RequestParam("deviceId") Integer deviceId) {
-        return remoteControlService.filePlay(id,index,deviceId);
+                               @RequestParam("deviceId") Integer deviceId,
+                               @RequestParam("isStart") Integer isStart)    {
+        return remoteControlService.filePlay(id,index,deviceId,isStart);
     }
 
     @GetMapping("/file/play/end")

+ 2 - 1
inspur-party/src/main/java/com/inspur/service/partywork/IRemoteControlService.java

@@ -18,9 +18,10 @@ public interface IRemoteControlService {
      * @param id
      * @param index
      * @param deviceId
+     * @param isStart
      * @return
      */
-    public AjaxResult filePlay(Long id, Integer index,Integer deviceId);
+    public AjaxResult filePlay(Long id, Integer index,Integer deviceId,Integer isStart);
 
     /**
      * 会议学习资料链接

+ 2 - 1
inspur-party/src/main/java/com/inspur/service/partywork/impl/RemoteControlServiceImpl.java

@@ -59,7 +59,7 @@ public class RemoteControlServiceImpl implements IRemoteControlService {
     private PartyMeetingImageMapper partyMeetingImageMapper;
 
     @Override
-    public AjaxResult filePlay(Long id, Integer currentPage, Integer deviceId) {
+    public AjaxResult filePlay(Long id, Integer currentPage, Integer deviceId, Integer isStart) {
         // 当前操作用户
         Integer index = currentPage - 1;
         List<PartyMeetingFollow> imageList = partyMeetingFollowMapper.selectPartyMeetingFollowByFId(id,2);
@@ -68,6 +68,7 @@ public class RemoteControlServiceImpl implements IRemoteControlService {
         nettyMessage.setIndex(index);
         nettyMessage.setMeetingId(imageList.get(index).getMeetingId());
         nettyMessage.setImageUrl(imageUrl);
+        nettyMessage.setIsStart(isStart);
         String reqParam = JSON.toJSONString(nettyMessage);
         PushMessage pushMessage = new PushMessage();
         pushMessage.setMessageType(PushMessageType.CONTROL_FILE_START.getValue());

+ 3 - 0
inspur-pc/src/main/java/com/inspur/netty/message/push/FileControl.java

@@ -15,4 +15,7 @@ public class FileControl {
 
     private String imageUrl;
 
+    /** 0:开始 1-上、下一页 */
+    private Integer isStart;
+
 }