70b11a17 刘嘉

菠萝派接口修改

1 个父辈 872263c8
......@@ -364,7 +364,7 @@
express_code = concat(IFNULL(concat(express_code,','),''),#{expressCode}),
</if>
<if test="buyerPhone !=null and buyerPhone !=''">
buyer_phone = #{buyerPhone}
buyer_phone = #{buyerPhone},
</if>
<if test="address!=null and address!='' ">
address =#{address},
......
......@@ -14,8 +14,8 @@ import java.util.List;
*/
public enum DownloadProductStatusEnum {
PUTAWAY("JH_01", "已上架商品",PineappleEnum.MALL_PRODUCT_PUTAWAY__STATUS),SOLDIOUT("JH_02","已下架商品",PineappleEnum.MALL_PRODUCT_SOLDIOUT__STATUS),
ALL("JH_99", "所有商品");
JH_01("JH_01", "已上架商品",PineappleEnum.MALL_PRODUCT_PUTAWAY__STATUS),JH_02("JH_02","已下架商品",PineappleEnum.MALL_PRODUCT_SOLDIOUT__STATUS),
JH_99("JH_99", "所有商品",-1);
private String code ; // 错误代码
private String msg; // 错误消息
......@@ -27,8 +27,8 @@ public enum DownloadProductStatusEnum {
DownloadProductStatusEnum result = enums.stream()
.filter(p -> StringUtils.equalsIgnoreCase(p.getCode(), code))
.findFirst()
.orElse(DownloadProductStatusEnum.ALL);
return result.status ==null?-1:result.status;
.orElse(DownloadProductStatusEnum.JH_99);
return result.status;
}
......
......@@ -70,10 +70,10 @@ public class DownloadProductBizServiceImpl extends AbstractBizService<DownloadP
product.setSkus(downloadProductSkuBeanList);
};
downloadProductResponse.setTotalcount(downloadProductBeanList.size());
downloadProductResponse.setGoodslist(downloadProductBeanList);
}else{
downloadProductResponse.setTotalcount(0);
}
downloadProductResponse.setGoodslist(downloadProductBeanList);
downloadProductResponse.setCode(PineappleEnum.SUCCESS.getCode());
downloadProductResponse.setMessage(PineappleEnum.SUCCESS.getMsg());
return downloadProductResponse;
......
......@@ -76,7 +76,7 @@ public class GetRefundBizServiceImpl extends AbstractBizService<GetRefundReques
}
getRefundResponse.setRefunds(refundBeanList);
getRefundResponse.setTotalcount(refundBeanList.size());
}else{
getRefundResponse.setTotalcount(0);
}
......