skyouc
2024-12-21 c635d78b479510ebe2556a420948effcd30a0731
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
package com.zy.asrs.wms.asrs.entity.dto;
 
import com.zy.asrs.framework.common.Cools;
import com.zy.asrs.framework.common.SpringUtils;
import com.zy.asrs.wms.asrs.entity.LocDetl;
import com.zy.asrs.wms.asrs.entity.OrderDetl;
import com.zy.asrs.wms.asrs.service.LocDetlService;
import com.zy.asrs.wms.asrs.service.OrderDetlService;
import lombok.Data;
 
import java.util.ArrayList;
import java.util.List;
 
@Data
public class OrderOutBatchPreviewDto {
 
    private Long locId;
 
    private String locNo;
 
    private Long locDetlId;
 
    private Boolean all;
 
    private Double anfme;
 
    private Double stock;
 
    private Long orderDetlId;
 
    private Long operationPort;
 
    private List<BatchPreviewOtherLocDto> otherLoc;
 
    public LocDetl getLocDetl$() {
        LocDetlService service = SpringUtils.getBean(LocDetlService.class);
        LocDetl locDetl = service.getById(locDetlId);
        if (!Cools.isEmpty(locDetl)){
            return locDetl;
        }
        return null;
    }
 
    public OrderDetl getOrderDetl$() {
        OrderDetlService service = SpringUtils.getBean(OrderDetlService.class);
        OrderDetl orderDetl = service.getById(orderDetlId);
        if (!Cools.isEmpty(orderDetl)){
            List<OrderDetl> orderDetls = new ArrayList<>();
            orderDetls.add(orderDetl);
            List<OrderDetl> list = service.parseDetl(orderDetls);
            return list.get(0);
        }
        return null;
    }
 
}