Authored by mali

下单bug

... ... @@ -17,6 +17,17 @@ public class AppraiseAddressResp {
private Integer areaCode;
@JSONField(name="id")
private Integer type;
public Integer getType() {
return type;
}
public void setType(Integer type) {
this.type = type;
}
public Integer getAreaCode() {
return areaCode;
}
... ... @@ -66,8 +77,19 @@ public class AppraiseAddressResp {
private String address;
private Integer areaCode;
private Integer type;
public Integer getType() {
return type;
}
public builder setType(Integer type) {
this.type = type;
return this;
}
public String getAddressName() {
public String getAddressName() {
return addressName;
}
... ... @@ -110,6 +132,7 @@ public class AppraiseAddressResp {
resp.setAddressName(this.getAddressName());
resp.setMobile(this.getMobile());
resp.setAreaCode(this.getAreaCode());
resp.setType(this.getType());
return resp;
}
... ...
... ... @@ -154,6 +154,7 @@ public abstract class AbsOrderListService implements IOrderListService{
goodsInfo.setGoodPrice(buyerOrderGoods.getGoodsPrice() == null ? "" :buyerOrderGoods.getGoodsPrice().toPlainString());
goodsInfo.setStorageId(sellerOrderGoods.getStorageId());
goodsInfo.setProductId(sellerOrderGoods.getProductId());
goodsInfo.setSkup(buyerOrderGoods.getSkup());
orderListInfo.setGoodsInfo(goodsInfo);
orderListInfo.setCreateTime(DateUtil.formatDate(buyerOrder.getCreateTime(), DateUtil.yyyy_MM_dd_HH_mm_SS));
... ...
... ... @@ -62,7 +62,7 @@ public class AppraiseAddressService {
List<AppraiseAddressResp> appraiseAddressResps = queryAddressInfoList();
if (CollectionUtils.isEmpty(appraiseAddressResps)) {
return new AppraiseAddressResp.builder().setMobile("15010019250").setAddressName("YOHO!北京鉴定中心").setAddress("北京市朝阳区建国路81号华贸中心1号写字楼3层").build();
return new AppraiseAddressResp.builder().setMobile("15010019250").setType(0).setAddressName("YOHO!北京鉴定中心").setAddress("北京市朝阳区建国路81号华贸中心1号写字楼3层").build();
}
return appraiseAddressResps.get(0);
}
... ... @@ -91,7 +91,7 @@ public class AppraiseAddressService {
}
appraiseAddresses.stream().forEach(item ->
appraiseAddressResps.add(new AppraiseAddressResp.builder().setMobile(item.getMobile())
appraiseAddressResps.add(new AppraiseAddressResp.builder().setMobile(item.getMobile()).setType(item.getType())
.setAreaCode(item.getAreaCode()).setAddressName(item.getAddressName()).setAddress(item.getAddress()).build())
);
... ...