This commit is contained in:
@@ -33,8 +33,7 @@ public class FileInternalControlHandler implements RequestHandler {
|
||||
@Override
|
||||
public BaseResponse handle(BaseRequest request) throws Exception {
|
||||
try {
|
||||
FileEntityRequest fileRequest = objectMapper.convertValue(
|
||||
request.getMessageBody(), FileEntityRequest.class);
|
||||
FileEntityRequest fileRequest = objectMapper.convertValue(request.getMessageBody(), FileEntityRequest.class);
|
||||
|
||||
String action = fileRequest.getAction();
|
||||
switch (action) {
|
||||
@@ -89,7 +88,7 @@ public class FileInternalControlHandler implements RequestHandler {
|
||||
try {
|
||||
String appealId = fileRequest.getAppealId();
|
||||
Boolean approve = fileRequest.getApprove();
|
||||
String comment = fileRequest.getComment();
|
||||
String comment = fileRequest.getComment() == null ? "": fileRequest.getComment();
|
||||
|
||||
if (appealId == null || approve == null) {
|
||||
return new BaseResponse(request.getMsgId(),
|
||||
|
||||
Reference in New Issue
Block a user