电子医保凭证支付
This commit is contained in:
@@ -5,8 +5,6 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.http.converter.HttpMessageNotReadableException;
|
||||
import org.springframework.stereotype.Component;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.validation.BindingResult;
|
||||
import org.springframework.validation.FieldError;
|
||||
import org.springframework.web.HttpRequestMethodNotSupportedException;
|
||||
import org.springframework.web.bind.MethodArgumentNotValidException;
|
||||
import org.springframework.web.bind.MissingServletRequestParameterException;
|
||||
@@ -15,9 +13,6 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
import org.springframework.web.bind.annotation.RestControllerAdvice;
|
||||
import org.springframework.web.method.annotation.MethodArgumentTypeMismatchException;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -44,7 +39,7 @@ public class ControllerAdvice {
|
||||
.getFieldErrors()
|
||||
.parallelStream()
|
||||
.map(m -> /*m.getField() + ":" +*/ m.getDefaultMessage())
|
||||
.collect(Collectors.joining(","));
|
||||
.collect(Collectors.joining("、"));
|
||||
log.error(e.getMessage(), e);
|
||||
return Result.error(errMsg);
|
||||
}
|
||||
|
||||
45
src/main/java/com/dpkj/common/vo/ResultData.java
Normal file
45
src/main/java/com/dpkj/common/vo/ResultData.java
Normal file
@@ -0,0 +1,45 @@
|
||||
package com.dpkj.common.vo;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* 接口返回数据格式
|
||||
*/
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
public class ResultData implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 请求时间
|
||||
*/
|
||||
private String requestTime;
|
||||
|
||||
/**
|
||||
* 请求内容
|
||||
*/
|
||||
private String requestContent;
|
||||
|
||||
/**
|
||||
* 响应时间
|
||||
*/
|
||||
private String responseTime;
|
||||
|
||||
/**
|
||||
* 响应内容
|
||||
*/
|
||||
private String responseContent;
|
||||
|
||||
/**
|
||||
* 患者ID
|
||||
*/
|
||||
private String patientId;
|
||||
|
||||
/**
|
||||
* 处理后的响应内容
|
||||
*/
|
||||
private Object result;
|
||||
}
|
||||
Reference in New Issue
Block a user