| | |
| | | import com.yeshi.fanli.service.inter.taobao.TaoBaoUnionConfigService;
|
| | | import com.yeshi.fanli.service.inter.user.DynamicRecommendService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.GsonUtil;
|
| | | import com.yeshi.fanli.util.MoneyBigDecimalUtil;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
| | | if (!matcher.find()) {// 不包含链接
|
| | | // 商品详情
|
| | | // 发现
|
| | | // 没有链接,标题过长也不处理
|
| | | if (text.length() > 50) {
|
| | | out.print(JsonUtil.loadFalseResult("值过长"));
|
| | | return;
|
| | | }
|
| | |
|
| | | SearchFilter sf = new SearchFilter();
|
| | | sf.setKey(text);
|
| | |
| | | return;
|
| | | }
|
| | | taoBaoGoodsBrief = taoBaoGoodsBriefs.get(0);
|
| | | String proportion = hongBaoManageService.get(Constant.HONGBAO_GOODS_PROPORTION);
|
| | | BigDecimal proportion = hongBaoManageService.getFanLiRate();
|
| | | |
| | | BigDecimal tkRate = taoBaoGoodsBrief.getTkRate();
|
| | | BigDecimal zkPrice = taoBaoGoodsBrief.getZkPrice();
|
| | | BigDecimal tkp = new BigDecimal(proportion).divide(BigDecimal.valueOf(100))
|
| | | BigDecimal tkp = proportion.divide(BigDecimal.valueOf(100))
|
| | | .multiply(tkRate.divide(BigDecimal.valueOf(100)));
|
| | | BigDecimal hongbao = MoneyBigDecimalUtil.mul(zkPrice, tkp);
|
| | | dynamicRecommend.setHongbao(hongbao);
|