Commit 37475111 authored by yexiong.wang's avatar yexiong.wang

fix

parent 821aabb1
......@@ -80,7 +80,7 @@ public class VccRest {
@PostMapping("/offline_repay/save_submit")
public JsonResult saveSubmit(HttpServletRequest request, @RequestBody@Valid OfflineRepaySubmitParam param,BindingResult bindingResult){
if (bindingResult.hasErrors()){
return JsonResult.buildErrorStateResult(bindingResult.getFieldError().getDefaultMessage());
return JsonResult.buildErrorStateResult(bindingResult.getFieldError(bindingResult.getFieldError().getField()).getDefaultMessage());
}
if (param.getRepayType() == 1){
if (CollectionUtils.isEmpty(param.getList())){
......
package cn.quantgroup.customer.rest.param.vcc;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
......@@ -20,24 +17,24 @@ public class OfflineRepaySubmitParam {
private BigDecimal actualAmount;
@NotNull
private LocalDate actualDate;
@NotBlank
@NotNull
private String transNo;
@NotBlank
@NotNull
private String receiveAccount;
@NotBlank
@NotNull
private String receiveAccountName;
@NotEmpty
@NotNull
private List<String> credentialsAddress;
private String mark;
@NotNull
private Integer repayType;
@NotBlank
@NotNull
private String name;
@NotBlank
@NotNull
private String phone;
@NotBlank
@NotNull
private String idNo;
@NotBlank
@NotNull
private String repayStatus;
@NotNull
private Integer userId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment