| | |
| | | CommonOrderGoodsVO commonGoodsVO = new CommonOrderGoodsVO(); |
| | | PropertyUtils.copyProperties(commonGoodsVO, goods); |
| | | commonGoodsVO.setGoodsType(sourceType); |
| | | commonGoodsVO.setPlaceOrderTime(TimeUtil.getGernalTime(order.getThirdCreateTime().getTime(),"yyyy.MM.dd HH:mm")); |
| | | |
| | | |
| | | // 淘宝商品图片处理 |
| | | String picture = commonGoodsVO.getPicture(); |
| | |
| | | if (totalSettlement == null || totalSettlement.compareTo(new BigDecimal(0)) <= 0) { |
| | | totalSettlement = commonOrder.getTotalPayment(); |
| | | } |
| | | if (totalSettlement== null || totalSettlement.compareTo(new BigDecimal(0)) <= 0) |
| | | commonGoodsVO.setPayState("未付款/已退款"); |
| | | else |
| | | commonGoodsVO.setPayState("已付款"); |
| | | |
| | | commonGoodsVO.setActualPay("付款金额:¥" + totalSettlement); |
| | | |
| | | // 邀请订单信息保护 |
| | |
| | | && oldCommonOrder.getSourceType() != Constant.SOURCE_TYPE_JD) |
| | | || oldCommonOrder.getState() == CommonOrder.STATE_SX |
| | | || oldCommonOrder.getState() == CommonOrder.STATE_WQ |
| | | || (oldCommonOrder.getState().intValue() == commonOrder.getState())) { |
| | | || (oldCommonOrder.getState().intValue() == commonOrder.getState()&&oldCommonOrder.getPayment().compareTo(commonOrder.getPayment())==0)) { |
| | | return new CommonOrderAddResultDTO(oldCommonOrder, CommonOrderAddResultDTO.TYPE_NOUPDATE); |
| | | } |
| | | // 交易ID一致才修改 |
| | |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } |
| | | commonGoodsVO.setPlaceOrderTime(TimeUtil.getGernalTime(commonOrder.getThirdCreateTime().getTime(),"yyyy.MM.dd HH:mm")); |
| | | |
| | | String picture = commonGoodsVO.getPicture(); |
| | | if (!StringUtil.isNullOrEmpty(picture) && !picture.contains("320x320")) { |
| | |
| | | if (totalSettlement == null || totalSettlement.compareTo(new BigDecimal(0)) <= 0) { |
| | | totalSettlement = commonOrder.getTotalPayment(); |
| | | } |
| | | if (totalSettlement== null || totalSettlement.compareTo(new BigDecimal(0)) <= 0) |
| | | commonGoodsVO.setPayState("未付款/已退款"); |
| | | else |
| | | commonGoodsVO.setPayState("已付款"); |
| | | // 实付款 |
| | | commonGoodsVO.setActualPay("付款金额:¥" + totalSettlement); |
| | | |
| | |
| | | if (commonGoodsVO.getGoodsType() == null) { |
| | | commonGoodsVO.setGoodsType(sourceType); |
| | | } |
| | | commonGoodsVO.setPlaceOrderTime(TimeUtil.getGernalTime(order.getThirdCreateTime().getTime(),"yyyy.MM.dd HH:mm")); |
| | | |
| | | // 淘宝商品图片处理 |
| | | String picture = commonGoodsVO.getPicture(); |
| | |
| | | if (totalSettlement == null || totalSettlement.compareTo(new BigDecimal(0)) <= 0) { |
| | | totalSettlement = commonOrder.getTotalPayment(); |
| | | } |
| | | if (totalSettlement== null || totalSettlement.compareTo(new BigDecimal(0)) <= 0) |
| | | commonGoodsVO.setPayState("未付款/已退款"); |
| | | else |
| | | commonGoodsVO.setPayState("已付款"); |
| | | |
| | | commonGoodsVO.setActualPay("付款金额:¥" + totalSettlement); |
| | | |
| | | // 邀请订单信息保护 |