zm
2020-05-18 a18bfacbf56b401f6e0fdae8710fbca4df8cff77
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.changhong.autoform.rest.excute;
 
import com.changhong.autoform.entity.ProcessBudget;
 
public interface Execute {
    
    /**
     * 
     * 一个预算单  1000元
     * 1. 申请100元  —— 回写预算 900
     * 2. 报销200元  __ 加会报销单对应的申请单  900+100 - 200 = 800元  为负数 抛异常
     * 3. 报销单直接选择预算  直接扣除预算
     * 
     * 每一次操作都要记录log 
     * @param processBudget
     */
    Boolean executeProcessBudget(ProcessBudget processBudget);
 
    /**
     * 
     * 流程前提交:{
     *                 审批时:退回预算,
     *                          退回申请,
     *                          退回报销时,将金额还原
     *             }
     */
    
    Boolean processRefunds(ProcessBudget processBudget); 
}