Merge branch 'feature/REQ-1634' into 'dev'
+修改待办 See merge request universal/infrastructure/backend/msg-center-plat!98
This commit is contained in:
commit
57c50b436d
@ -114,4 +114,9 @@ public class PendingMessageNewController implements PendingMessageClient {
|
||||
public CommonResponse<Boolean> revokeById(RevokePendingMessageByIdRequest param) {
|
||||
return CommonResponse.success(pendingMessageNewService.revokeById(param));
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResponse<Boolean> updateById(RevokePendingMessageByIdRequest param) {
|
||||
return CommonResponse.success(pendingMessageNewService.updateById(param));
|
||||
}
|
||||
}
|
||||
|
||||
@ -145,4 +145,12 @@ public interface PendingMessageNewService {
|
||||
* @return 成功返回 {@code true} 失败返回 {@code false}
|
||||
*/
|
||||
Boolean revokeById(RevokePendingMessageByIdRequest param);
|
||||
|
||||
/**
|
||||
* 通过ID编辑代办bizParam
|
||||
*
|
||||
* @param param
|
||||
* @return 成功返回 {@code true} 失败返回 {@code false}
|
||||
*/
|
||||
Boolean updateById(RevokePendingMessageByIdRequest param);
|
||||
}
|
||||
|
||||
@ -405,6 +405,16 @@ public class PendingMessageNewServiceImpl implements PendingMessageNewService {
|
||||
.update();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Boolean updateById(RevokePendingMessageByIdRequest param) {
|
||||
log.info("the [{}] record is RevokePendingMessageByIdRequest.", param);
|
||||
return pendingMessageRecordDao.lambdaUpdate()
|
||||
.set(PendingMessageRecord::getBizExtParam, param.getBizParam())
|
||||
.eq(PendingMessageRecord::getId, param.getId())
|
||||
.eq(PendingMessageRecord::getIsDelete, TableIsDeleteEnum.NORMAL.value)
|
||||
.update();
|
||||
}
|
||||
|
||||
private PendingMessageDTO convert(PendingMessageRecord pendingMessageRecord, List<MessageTemplateDTO> messageTemplates) {
|
||||
PendingMessageDTO pendingMessage = PendingMessageDTO.from(pendingMessageRecord);
|
||||
// 对应模板的路由策略
|
||||
|
||||
@ -161,4 +161,13 @@ public interface PendingMessageClient {
|
||||
*/
|
||||
@PostMapping(value = "/pending-message/revokeById", produces = {MediaType.APPLICATION_JSON_VALUE})
|
||||
CommonResponse<Boolean> revokeById(RevokePendingMessageByIdRequest param);
|
||||
|
||||
/**
|
||||
* 通过ID撤销代办
|
||||
*
|
||||
* @param param
|
||||
* @return 成功返回 {@code true} 失败返回 {@code false}
|
||||
*/
|
||||
@PostMapping(value = "/pending-message/update/byId", produces = {MediaType.APPLICATION_JSON_VALUE})
|
||||
CommonResponse<Boolean> updateById(RevokePendingMessageByIdRequest param);
|
||||
}
|
||||
@ -109,4 +109,10 @@ public class PendingMessageClientFallback implements PendingMessageClient {
|
||||
log.error("fall back while revoking pending message by ID. param:[{}]", param);
|
||||
return CommonResponse.error("fall back while revoking pending message by ID");
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommonResponse<Boolean> updateById(RevokePendingMessageByIdRequest param) {
|
||||
log.error("fall back while revoking pending message update by ID. param:[{}]", param);
|
||||
return CommonResponse.error("fall back while revoking pending message update by ID");
|
||||
}
|
||||
}
|
||||
|
||||
@ -21,5 +21,10 @@ public class RevokePendingMessageByIdRequest {
|
||||
*/
|
||||
@NotNull(message = "消息ID不能为空")
|
||||
private Long id;
|
||||
/**
|
||||
* 关联业务主键
|
||||
*/
|
||||
@NotNull(message = "bizParam不能为空")
|
||||
private String bizParam;
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user