| | |
| | | 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; |
| | | } |
| | | |
| | | } |
| | | 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;
|
| | | }
|
| | |
|
| | | }
|