!73 工作流程发起以及审批异常,NotEmpty校验Long类型异常

Merge pull request !73 from zhuqi7/master
This commit is contained in:
芋道源码 2022-02-09 16:03:23 +00:00 committed by Gitee
commit cd42846bec
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 7 additions and 4 deletions

View File

@ -21,7 +21,7 @@ public class BpmMessageSendWhenTaskCreatedReqDTO {
*/ */
@NotEmpty(message = "流程实例的名字不能为空") @NotEmpty(message = "流程实例的名字不能为空")
private String processInstanceName; private String processInstanceName;
@NotEmpty(message = "发起人的用户编号") @NotNull(message = "发起人的用户编号")
private Long startUserId; private Long startUserId;
@NotEmpty(message = "发起人的昵称") @NotEmpty(message = "发起人的昵称")
private String startUserNickname; private String startUserNickname;

View File

@ -73,7 +73,8 @@ public interface BpmTaskConvert {
@Mappings({ @Mappings({
@Mapping(source = "id", target = "taskId"), @Mapping(source = "id", target = "taskId"),
@Mapping(source = "assignee", target = "assigneeUserId"), @Mapping(source = "assignee", target = "assigneeUserId"),
@Mapping(source = "createdDate", target = "createTime") @Mapping(source = "createdDate", target = "createTime"),
@Mapping(target = "id", ignore = true)
}) })
BpmTaskExtDO convert(org.activiti.api.task.model.Task bean); BpmTaskExtDO convert(org.activiti.api.task.model.Task bean);
@ -104,6 +105,7 @@ public interface BpmTaskConvert {
BpmTaskRespVO convert3(HistoricTaskInstance bean); BpmTaskRespVO convert3(HistoricTaskInstance bean);
BpmTaskRespVO.User convert3(AdminUserRespDTO bean); BpmTaskRespVO.User convert3(AdminUserRespDTO bean);
@Mapping(target = "id", ignore = true)
void copyTo(BpmTaskExtDO from, @MappingTarget BpmTaskDonePageItemRespVO to); void copyTo(BpmTaskExtDO from, @MappingTarget BpmTaskDonePageItemRespVO to);
@Mappings({ @Mappings({

View File

@ -7,6 +7,7 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
@ApiModel("用户 APP - 退款订单 Req VO") @ApiModel("用户 APP - 退款订单 Req VO")
@Data @Data
@ -15,11 +16,11 @@ import javax.validation.constraints.NotEmpty;
public class AppPayRefundReqVO { public class AppPayRefundReqVO {
@ApiModelProperty(value = "支付订单编号自增", required = true, example = "10") @ApiModelProperty(value = "支付订单编号自增", required = true, example = "10")
@NotEmpty(message = "支付订单编号自增") @NotNull(message = "支付订单编号自增")
private Long payOrderId; private Long payOrderId;
@ApiModelProperty(value = "退款金额", required = true, example = "1") @ApiModelProperty(value = "退款金额", required = true, example = "1")
@NotEmpty(message = "退款金额") @NotNull(message = "退款金额")
private Long amount; private Long amount;
@ApiModelProperty(value = "退款原因", required = true, example = "不喜欢") @ApiModelProperty(value = "退款原因", required = true, example = "不喜欢")