|
@@ -0,0 +1,77 @@
|
|
1
|
+package com.oqpo.api.web.dto.response.stinfo.item;
|
|
2
|
+
|
|
3
|
+import com.fasterxml.jackson.annotation.JsonInclude;
|
|
4
|
+import com.oqpo.api.entity.stinfo.ItemUnitEntity;
|
|
5
|
+import com.oqpo.api.entity.stockmng.StckMgntBaseInfoEntity;
|
|
6
|
+import io.swagger.annotations.ApiModelProperty;
|
|
7
|
+import lombok.*;
|
|
8
|
+
|
|
9
|
+@Getter
|
|
10
|
+@Setter
|
|
11
|
+@Builder
|
|
12
|
+@AllArgsConstructor(access = AccessLevel.PROTECTED)
|
|
13
|
+@JsonInclude(JsonInclude.Include.ALWAYS)
|
|
14
|
+public class BarcodeItemInfoResponse {
|
|
15
|
+
|
|
16
|
+ @ApiModelProperty(value = "품목아이디")
|
|
17
|
+ private String itemId;
|
|
18
|
+
|
|
19
|
+ @ApiModelProperty(value = "품목명")
|
|
20
|
+ private String itemNm;
|
|
21
|
+
|
|
22
|
+ @ApiModelProperty(value = "발주가능구분코드")
|
|
23
|
+ private String podrPssblDvsn;
|
|
24
|
+
|
|
25
|
+ @ApiModelProperty(value = "발주가능구분명")
|
|
26
|
+ private String podrPssblDvsnNm;
|
|
27
|
+
|
|
28
|
+ @ApiModelProperty(value = "단위")
|
|
29
|
+ private String unit;
|
|
30
|
+
|
|
31
|
+ @ApiModelProperty(value = "단위명")
|
|
32
|
+ private String unitNm;
|
|
33
|
+
|
|
34
|
+ @ApiModelProperty(value = "기준수량")
|
|
35
|
+ private Integer stddQty;
|
|
36
|
+
|
|
37
|
+ @ApiModelProperty(value = "단가금액")
|
|
38
|
+ private Integer unitAmt;
|
|
39
|
+
|
|
40
|
+ @ApiModelProperty(value = "출고가능수량")
|
|
41
|
+ private Integer whsPassQty;
|
|
42
|
+
|
|
43
|
+ @ApiModelProperty(value = "공급사아이디")
|
|
44
|
+ private String spplyId;
|
|
45
|
+
|
|
46
|
+ @ApiModelProperty(value = "공급사명")
|
|
47
|
+ private String spplyNm;
|
|
48
|
+
|
|
49
|
+ @ApiModelProperty(value = "브래드/매장 단가 구분")
|
|
50
|
+ private String unitGubun;
|
|
51
|
+
|
|
52
|
+ @ApiModelProperty(value = "브랜드단가공유번호")
|
|
53
|
+ private String brandUnitUnqNo;
|
|
54
|
+
|
|
55
|
+ @ApiModelProperty(value = "매장단가고유번호")
|
|
56
|
+ private String storeUnitUnqNo;
|
|
57
|
+
|
|
58
|
+ public static BarcodeItemInfoResponse toDTO(ItemUnitEntity entity) {
|
|
59
|
+ if (entity == null) return null;
|
|
60
|
+ return BarcodeItemInfoResponse.builder()
|
|
61
|
+ .itemId(entity.getItemId())
|
|
62
|
+ .itemNm(entity.getItemNm())
|
|
63
|
+ .podrPssblDvsn(entity.getPodrPssblDvsn())
|
|
64
|
+ .podrPssblDvsnNm(entity.getPodrPssblDvsnNm())
|
|
65
|
+ .unit(entity.getUnit())
|
|
66
|
+ .unitNm(entity.getUnitNm())
|
|
67
|
+ .unitAmt(entity.getUnitAmt())
|
|
68
|
+ .stddQty(entity.getStddQty() == null ? 0 : entity.getStddQty())
|
|
69
|
+ .unitGubun(entity.getUnitGubun())
|
|
70
|
+ .spplyId(entity.getSpplyId())
|
|
71
|
+ .spplyNm(entity.getSpplyNm() == null ? "" : entity.getSpplyNm())
|
|
72
|
+ .brandUnitUnqNo(entity.getBrandUnitUnqNo())
|
|
73
|
+ .storeUnitUnqNo(entity.getStoreUnitUnqNo() == null ? "" : entity.getStoreUnitUnqNo())
|
|
74
|
+ .whsPassQty(entity.getWhsPassQty() == null ? 0 : entity.getWhsPassQty())
|
|
75
|
+ .build();
|
|
76
|
+ }
|
|
77
|
+}
|