mitao
2025-03-19 0ab9dfd8f122195e4e9f09bd50c59e0a47450bec
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package com.ruoyi.system.importExcel;
 
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.apache.commons.lang3.StringUtils;
 
import java.io.Serializable;
import java.math.BigDecimal;
 
/**
 * @author 64502
 */
@Data
@ApiModel(value="银行流水导入Excel")
public class TBankFlowImportExcel implements Serializable {
 
 
    @ExcelProperty("银行流水号")
    private String bankSerialNumber;
 
    @ExcelProperty("流水金额")
    private BigDecimal flowMoney;
 
    @ExcelProperty("支付时间")
    private String payTime;
 
    @ExcelProperty("付款人")
    private String payer;
 
    @ExcelProperty("导入结果")
    private String result;
 
    public boolean validate() {
        if (StringUtils.isEmpty(bankSerialNumber)){
            result = "银行流水号不能为空";
            return false;
        }
        if (StringUtils.isEmpty(payTime)){
            result = "支付时间不能为空";
            return false;
        }
        if (flowMoney == null){
            result = "流水金额不能为空";
            return false;
        }
        return true;
    }
 
 
}