| | |
| | | if (taoBaoGoods.getPictUrlWhite() != null && !taoBaoGoods.getPictUrlWhite().startsWith("http"))
|
| | | taoBaoGoods.setPictUrlWhite("https:" + taoBaoGoods.getPictUrlWhite());
|
| | |
|
| | | |
| | | String imgs = detail.getImgs();
|
| | | if (!StringUtil.isNullOrEmpty(imgs)) {
|
| | | String[] array = imgs.split(",");
|
| | | if (array != null && array.length > 0) {
|
| | | List<String> imgList = new ArrayList<>();
|
| | | for (int i = 0 ; i < array.length; i++) {
|
| | | imgList.add(array[i]);
|
| | | }
|
| | | taoBaoGoods.setImgList(imgList);
|
| | | }
|
| | | }
|
| | | |
| | | |
| | | taoBaoGoods.setSellerId(detail.getSellerId());
|
| | | taoBaoGoods.setShopTitle(detail.getShopName());
|
| | | taoBaoGoods.setTitle(detail.getDtitle());
|
| | |
| | | public static BigDecimal getCanShareMoney(Date createTime, BigDecimal estimate) {
|
| | | if (estimate == null)
|
| | | return null;
|
| | | if (createTime.getTime() < TimeUtil.convertToTimeTemp("2020-05-01", "yyyy-MM-dd")) {
|
| | | if (createTime.getTime() < TimeUtil.convertToTimeTemp("2020-06-01 12:30:00", "yyyy-MM-dd HH:mm:ss")) {
|
| | | return estimate;
|
| | | }
|
| | | BigDecimal rate = new BigDecimal("0.8876");
|
| | | BigDecimal rate = new BigDecimal("0.9101");
|
| | | return MoneyBigDecimalUtil.mul(estimate, rate);
|
| | | }
|
| | |
|