Commit 50dbc32c by zhiheng.zhang

主商品需要打印,赠品不需要打印

parent c1a15c52
......@@ -919,9 +919,9 @@ public class OrderSdkAdapter {
if(null != productList && productList.size() >0) {
for (QueryOrdersResponse.DataBean.OrderBean.ProductBean sendProductBean : productList) {
sendProductBean.setIsPrint(false);
if(sendProductBean.getIsSendGoods() && StringUtils.isBlank(sendProductBean.getOriginalGoodsUid())){
sendProductBean.setIsPrint(true);
sendProductBean.setIsPrint(true);
if(sendProductBean.getIsSendGoods() && StringUtils.isNotEmpty(sendProductBean.getOriginalGoodsUid())){
sendProductBean.setIsPrint(false);
}
if (null !=sendProductBean.getIsSendGoods() && !sendProductBean.getIsSendGoods()) {
sendProductBean.setSendProduct(productList.stream()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment