...
|
...
|
@@ -23,6 +23,7 @@ import com.yoho.unions.convert.Convert; |
|
|
import com.yoho.unions.dal.*;
|
|
|
import com.yoho.unions.dal.model.*;
|
|
|
import com.yoho.unions.server.service.IUnionShareService;
|
|
|
import com.yoho.unions.utils.ImagesHelper;
|
|
|
import org.apache.commons.collections.CollectionUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
...
|
...
|
@@ -294,12 +295,14 @@ public class UnionShareServiceImpl implements IUnionShareService,IBusinessExport |
|
|
}
|
|
|
List<UnionShareOrdersProduct> unionShareOrdersProductlist = unionShareOrdersProductMapper.selectOrdersProductByOrderCode(orderCode);
|
|
|
List<ShareOrdersProductBo> shareOrdersProductBoList = convert.convertFromList(unionShareOrdersProductlist, ShareOrdersProductBo.class);
|
|
|
//设置商品价格
|
|
|
//设置商品价格和图片
|
|
|
DecimalFormat df1 = new DecimalFormat("0.00");
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
for (ShareOrdersProductBo shareOrdersProductBo : shareOrdersProductBoList){
|
|
|
shareOrdersProductBo.setPriceStr("¥"+df1.format(shareOrdersProductBo.getPrice()));
|
|
|
shareOrdersProductBo.setImage(ImagesHelper.getImageAbsoluteUrl(shareOrdersProductBo.getImage(), "goodsimg"));
|
|
|
}
|
|
|
//处理订单数据
|
|
|
ShareOrderBo shareOrderBo = new ShareOrderBo();
|
|
|
shareOrderBo = convert.convertFrom(unionShareOrders,shareOrderBo,ShareOrderBo.class);
|
|
|
shareOrderBo.setIsNew(unionShareOrders.getIsNew().toString());
|
...
|
...
|
|