feat:提交审批逻辑
This commit is contained in:
parent
935db3fe59
commit
58395fad39
@ -1,5 +1,6 @@
|
|||||||
package com.flyfish.framework.approval.domain;
|
package com.flyfish.framework.approval.domain;
|
||||||
|
|
||||||
|
import com.flyfish.framework.annotations.Property;
|
||||||
import com.flyfish.framework.approval.enums.ApproveStatus;
|
import com.flyfish.framework.approval.enums.ApproveStatus;
|
||||||
import com.flyfish.framework.domain.authorized.AuthorizedDomain;
|
import com.flyfish.framework.domain.authorized.AuthorizedDomain;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
@ -17,11 +18,14 @@ import java.util.List;
|
|||||||
public abstract class ApprovalDomain extends AuthorizedDomain {
|
public abstract class ApprovalDomain extends AuthorizedDomain {
|
||||||
|
|
||||||
// 审批状态
|
// 审批状态
|
||||||
|
@Property(readonly = true)
|
||||||
private ApproveStatus approveStatus;
|
private ApproveStatus approveStatus;
|
||||||
|
|
||||||
// 审批人,按序依次审批
|
// 审批人,按序依次审批
|
||||||
|
@Property(readonly = true)
|
||||||
private List<String> approvers;
|
private List<String> approvers;
|
||||||
|
|
||||||
// 下个审批人
|
// 下个审批人
|
||||||
|
@Property(readonly = true)
|
||||||
private Integer next;
|
private Integer next;
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,24 @@
|
|||||||
|
package com.flyfish.framework.approval.domain;
|
||||||
|
|
||||||
|
import com.flyfish.framework.annotations.EnumValue;
|
||||||
|
import com.flyfish.framework.annotations.Order;
|
||||||
|
import com.flyfish.framework.annotations.Property;
|
||||||
|
import com.flyfish.framework.approval.enums.ApproveStatus;
|
||||||
|
import com.flyfish.framework.domain.authorized.AuthorizedDomain;
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.Setter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 带审批的查询实体
|
||||||
|
*
|
||||||
|
* @author wangyu
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@Setter
|
||||||
|
public class ApprovalDomainQo extends AuthorizedDomain {
|
||||||
|
|
||||||
|
@Property("审批状态")
|
||||||
|
@Order(50)
|
||||||
|
@EnumValue(ApproveStatus.class)
|
||||||
|
private String status;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user