Sfoglia il codice sorgente

재고 엑셀 수정

dwkim 2 anni fa
parent
commit
f210d5871f

+ 11 - 11
src/main/java/com/oqpo/api/service/stockmng/StockMngService.java

@@ -65,17 +65,17 @@ public class StockMngService extends CommonService {
65 65
         List<Object> gridRows = entities.stream()
66 66
                 .map(m -> StockMngListResponse.builder()
67 67
                         .viewCd("R")
68
-                        .brandId(m.getBrandId())
69
-                        .brandNm(m.getBrandNm())
70
-                        .storeId(m.getStoreId())
71
-                        .storeNm(m.getStoreNm())
72
-                        .whsId(m.getWhsId())
73
-                        .whsNm(m.getWhsNm())
74
-                        .location(m.getLocation())
75
-                        .locationNm(m.getLocationNm())
76
-                        .itemId(m.getItemId())
77
-                        .itemNm(m.getItemNm())
78
-                        .unit(m.getUnit())
68
+                        .brandId(m.getBrandId() == null ? "" : m.getBrandId())
69
+                        .brandNm(m.getBrandNm() == null ? "" : m.getBrandNm())
70
+                        .storeId(m.getStoreId() == null ? "" : m.getStoreId())
71
+                        .storeNm(m.getStoreNm() == null ? "" : m.getStoreNm())
72
+                        .whsId(m.getWhsId() == null ? "" : m.getWhsId())
73
+                        .whsNm(m.getWhsNm() == null ? "" : m.getWhsNm())
74
+                        .location(m.getLocation() == null ? "" : m.getLocation())
75
+                        .locationNm(m.getLocationNm() == null ? "" : m.getLocationNm())
76
+                        .itemId(m.getItemId() == null ? "" : m.getItemId())
77
+                        .itemNm(m.getItemNm() == null ? "" : m.getItemNm())
78
+                        .unit(m.getUnit() == null ? "" : m.getUnit())
79 79
                         .stckQty(m.getStckQty())
80 80
                         .prpStckQty(m.getPrpStckQty())
81 81
                         .sftStckRt(m.getSftStckRt())