自动化立体仓库 - WMS系统
#
lsh
2025-04-15 7d4d4849daf849f2676899a96ceabd8ade703a32
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
52
53
54
55
56
57
package com.zy.asrs.entity.result;
 
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.core.common.Cools;
import com.core.common.SpringUtils;
import com.zy.asrs.entity.LocOwner;
import com.zy.asrs.service.LocOwnerService;
import com.zy.common.utils.Synchro;
import lombok.Data;
 
import java.util.Date;
 
@Data
@ExcelIgnoreUnannotated
public class LocDetlAll {
    private String loc_no;
    private String zpallet;
    private String matnr;
    private String maktx;
    private String specs;
    private Double anfme;
    private String batch;
    private Double weight;
 
    private String order_no;
    private Integer owner;
    private Integer payment;
    private Date modi_time;
    private Date appe_time;
    private String meno;
    private String manu;
 
    public String getOwner$(){
        LocOwnerService service = SpringUtils.getBean(LocOwnerService.class);
        LocOwner locOwner = service.selectById(this.owner);
        if (!Cools.isEmpty(locOwner)){
            return String.valueOf(locOwner.getOwner());
        }
        return null;
    }
 
    public String getPayment$(){
        if (null == this.payment){ return null; }
        switch (this.payment){
            case 1:
                return "仓储";
            case 0:
                return "代采";
            default:
                return String.valueOf(this.payment);
        }
    }
 
    public void sync(Object source) {
        Synchro.Copy(source, this);
    }
}