Commit ee6a189f by 黄小葱

Merge remote-tracking branch 'origin/master'

2 parents 4b516504 ffde489b
......@@ -17,7 +17,7 @@ public enum ResultEnum {
/**
* 试驾服务相关业务异常错误码,错误信息
*/
APPROVAL_ALREADY_EXISTS(12110001,"改业务审批单已经存在");
APPROVAL_ALREADY_EXISTS(12110001,"该业务审批单已经存在");
private final Integer code;
private final String message;
......
......@@ -13,6 +13,8 @@ public class AdminException extends RuntimeException {
private int errorCode;
private String message;
public AdminException() {
}
......@@ -26,8 +28,8 @@ public class AdminException extends RuntimeException {
}
public AdminException(ResultEnum resultEnum) {
super(resultEnum.getMessage());
this.errorCode = resultEnum.getCode();
this.message = resultEnum.getMessage();
}
public AdminException(Throwable cause) {
......
......@@ -19,7 +19,7 @@ public class AdminExceptionHandler extends GlobalExceptionHandler {
@ExceptionHandler(AdminException.class)
public R handleAdminException(AdminException e) {
return R.error(e.getMessage());
return R.error(e.getErrorCode(),e.getMessage());
}
/**
......
......@@ -2,8 +2,6 @@ package cn.com.glsx.admin.modules.model;
import lombok.Data;
import javax.persistence.Column;
/**
* @author zhouhaibao
* @date 2021/5/20 10:02
......
......@@ -4,7 +4,6 @@ import lombok.Data;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
@Data
public class ApprovalBo implements Serializable {
......@@ -29,47 +28,13 @@ public class ApprovalBo implements Serializable {
private Byte status;
/**
* 节点
*/
private Integer node;
/**
* 节点名称
*/
private String nodeName;
/**
* 备注
*/
private String remark;
/**
* 是否删除 0=正常 -1=删除
* 删除标识
*/
private Byte delFlag;
/**
* 创建时间
*/
private Date createdDate;
/**
* 创建人用户id
*/
private Long createdBy;
/**
* 更新时间
*/
private Date updatedDate;
/**
* 更新人用户id
*/
private Long updatedBy;
/**
* 更新人用户id
*/
private Integer version;
}
\ No newline at end of file
......@@ -14,7 +14,6 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!