Jelajahi Sumber

模拟接口增加字段

caiweigan 3 tahun lalu
induk
melakukan
2691876731

+ 6 - 0
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/dto/res/GetBoxCodeRes.java

@@ -38,6 +38,9 @@ public class GetBoxCodeRes implements Serializable {
     @Data
     @Accessors(chain = true)
     public static class SkuBean implements Serializable {
+        @Schema(name = "品牌编码")
+        private Long brandCode;
+
         @Schema(name = "品牌名称")
         private String brandName;
 
@@ -80,6 +83,9 @@ public class GetBoxCodeRes implements Serializable {
         @Schema(name = "节点状态")
         private Integer nodeStatus;
 
+        @Schema(name = "异常类型 1-流入异常 2-流出异常")
+        private Integer abnormalType;
+
         @Schema(name = "是否拆垛")
         private Integer isSplit;
 

+ 3 - 0
abi-cloud-qr-platform-server/src/main/java/com/abi/qms/platform/service/impl/FlowQueryServiceImpl.java

@@ -29,6 +29,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
         GetBoxCodeRes res = new GetBoxCodeRes();
 
         GetBoxCodeRes.SkuBean sku = new GetBoxCodeRes.SkuBean()
+                .setBrandCode(320258L)
                 .setBrandName("百威")
                 .setSkuId(30859L)
                 .setSkuName("百威9.7度500ML1X18纸箱听装-温州版")
@@ -67,6 +68,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
         flow = new GetBoxCodeRes.FlowBean()
                 .setNodeName("二级经销商")
                 .setNodeStatus(0)
+                .setAbnormalType(2)
                 .setIsSplit(1)
                 .setSplitStackCode("200712348457ADB2")
                 .setInStorageTime(LocalDateTime.of(2020, 12, 26, 11, 12, 38))
@@ -76,6 +78,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
         flow = new GetBoxCodeRes.FlowBean()
                 .setNodeName("杭州市延海百利超市(新华小区店)")
                 .setNodeStatus(0)
+                .setAbnormalType(1)
                 .setIsSplit(0)
                 .setInStorageTime(LocalDateTime.of(2020, 12, 27, 11, 12, 38));
         flowList.add(flow);