Browse Source

审批功能联调

dev-opt-cp
ddmte32 11 months ago
parent
commit
c002faa11d
3 changed files with 27 additions and 21 deletions
  1. +11
    -11
      ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/RemoteInfoPublishService.java
  2. +10
    -10
      ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteInfoPublishFallbackFactory.java
  3. +6
    -0
      ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/SysNotificationServiceImpl.java

+ 11
- 11
ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/RemoteInfoPublishService.java View File

@@ -32,15 +32,15 @@ public interface RemoteInfoPublishService
* @param newSysNotificationParamsVo 系统通知
* @return 结果
*/
// @PutMapping("/gns/notification/{platform}")
// public R<LoginUser> updateSysInfo(@PathVariable String platform,@RequestBody NewSysNotificationSendVo newSysNotificationParamsVo);
//
// /**
// * 改变系统消息状态
// *
// * @param newSysNotificationParamsVo 系统通知
// * @return 结果
// */
// @DeleteMapping("/gns/notification/{platform}")
// public R<LoginUser> deleteSysInfo(@PathVariable String platform,@RequestBody NewSysNotificationSendVo newSysNotificationParamsVo);
@PutMapping("/gns/notification/{platform}")
public R<LoginUser> updateSysInfo(@PathVariable("platform") String platform,@RequestBody NewSysNotificationSendVo newSysNotificationParamsVo);
/**
* 改变系统消息状态
*
* @param newSysNotificationParamsVo 系统通知
* @return 结果
*/
@DeleteMapping("/gns/notification/{platform}")
public R<LoginUser> deleteSysInfo(@PathVariable("platform") String platform,@RequestBody NewSysNotificationSendVo newSysNotificationParamsVo);
}

+ 10
- 10
ruoyi-api/ruoyi-api-system/src/main/java/com/ruoyi/system/api/factory/RemoteInfoPublishFallbackFactory.java View File

@@ -33,16 +33,16 @@ public class RemoteInfoPublishFallbackFactory implements FallbackFactory<RemoteI
{
return R.fail("推送系统消息:" + throwable.getMessage());
}
//
// @Override
// public R<LoginUser> updateSysInfo(String platform,NewSysNotificationSendVo newSysNotificationParamsVo) {
// return R.fail("更新系统消息:" + throwable.getMessage());
// }
//
// @Override
// public R<LoginUser> deleteSysInfo(String platform,NewSysNotificationSendVo newSysNotificationParamsVo) {
// return R.fail("删除系统消息:" + throwable.getMessage());
// }
@Override
public R<LoginUser> updateSysInfo(String platform,NewSysNotificationSendVo newSysNotificationParamsVo) {
return R.fail("更新系统消息:" + throwable.getMessage());
}
@Override
public R<LoginUser> deleteSysInfo(String platform,NewSysNotificationSendVo newSysNotificationParamsVo) {
return R.fail("删除系统消息:" + throwable.getMessage());
}
};
}
}

+ 6
- 0
ruoyi-modules/management-platform/src/main/java/com/ruoyi/platform/service/impl/SysNotificationServiceImpl.java View File

@@ -2,14 +2,20 @@ package com.ruoyi.platform.service.impl;

import com.ruoyi.platform.domain.ApprovalRequest;
import com.ruoyi.platform.service.SysNotificationService;
import com.ruoyi.system.api.RemoteInfoPublishService;
import com.ruoyi.system.api.model.LoginUser;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class SysNotificationServiceImpl implements SysNotificationService {

@Resource
private RemoteInfoPublishService remoteInfoPublishService;

@Override
public void readAll(LoginUser loginUser) {



Loading…
Cancel
Save