Commit 81b0f9b4 by 王力

Merge branch 'dev_orderlist0717' into 'develop'

修改返回值如果为null也返回值字段

See merge request !251
2 parents a318cbb9 cfd6248a
package com.dituhui.pea.order.dto; package com.dituhui.pea.order.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
...@@ -18,6 +19,8 @@ public class DispatchEngineerOrderListResp { ...@@ -18,6 +19,8 @@ public class DispatchEngineerOrderListResp {
private String grade; private String grade;
private List<OrderInfo> orders; private List<OrderInfo> orders;
} }
@JsonInclude(JsonInclude.Include.ALWAYS)
@Data @Data
public static class OrderInfo{ public static class OrderInfo{
private boolean weight; private boolean weight;
......
package com.dituhui.pea.order.dto; package com.dituhui.pea.order.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data; import lombok.Data;
import java.util.List; import java.util.List;
...@@ -8,6 +9,7 @@ import java.util.List; ...@@ -8,6 +9,7 @@ import java.util.List;
public class DispatchOrderListResp { public class DispatchOrderListResp {
private List<Order> orders; private List<Order> orders;
@JsonInclude(JsonInclude.Include.ALWAYS)
@Data @Data
public static class Order{ public static class Order{
private boolean weight; private boolean weight;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!