Commit c6596744 authored by shiyu's avatar shiyu

商品详情页插图新增

parent 72c00af4
...@@ -309,4 +309,9 @@ public class SupplierItemVo implements Entity { ...@@ -309,4 +309,9 @@ public class SupplierItemVo implements Entity {
*/ */
private Integer lot; private Integer lot;
/**
* 页面插图
*/
private String appendImageUrl;
} }
...@@ -138,4 +138,9 @@ public class AuctionDetailVo implements Entity { ...@@ -138,4 +138,9 @@ public class AuctionDetailVo implements Entity {
*/ */
private Integer specialPerformanceId; private Integer specialPerformanceId;
/**
* 页面插图
*/
private String appendImageUrl;
} }
...@@ -306,8 +306,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService { ...@@ -306,8 +306,9 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
distributorProfitDao.insert(distributorProfit); distributorProfitDao.insert(distributorProfit);
SupplierItem supplierItem = supplierItemDao.findById(dto.getItemId()); SupplierItem supplierItem = supplierItemDao.findById(dto.getItemId());
//去除了分销商的角色,无需计算分销佣金
//查询参与出价的所有用户所对应的分销商,可以平分成交额的3%的利润 //查询参与出价的所有用户所对应的分销商,可以平分成交额的3%的利润
List<AuctionRecord> auctionRecordList = auctionRecordDao.findByItemId(dto.getItemId()); /* List<AuctionRecord> auctionRecordList = auctionRecordDao.findByItemId(dto.getItemId());
List<AuctionRecord> filterRecordList = auctionRecordList.stream() List<AuctionRecord> filterRecordList = auctionRecordList.stream()
.filter(StringUtil.distinctByKey(AuctionRecord::getDistributorId)) .filter(StringUtil.distinctByKey(AuctionRecord::getDistributorId))
.filter(a -> a.getDistributorId().longValue() != firstAuctionRecord.getDistributorId()) .filter(a -> a.getDistributorId().longValue() != firstAuctionRecord.getDistributorId())
...@@ -351,7 +352,7 @@ public class DistributionOrderServiceImpl implements DistributionOrderService { ...@@ -351,7 +352,7 @@ public class DistributionOrderServiceImpl implements DistributionOrderService {
"元,您预计获得利润" + PriceUtil.convertDoubleToString(Math.floor(averageProfit)) + "元。请前往"+ url + "查看"; "元,您预计获得利润" + PriceUtil.convertDoubleToString(Math.floor(averageProfit)) + "元。请前往"+ url + "查看";
aliSmsSender.sendSms(record.getDistributorId(), msg); aliSmsSender.sendSms(record.getDistributorId(), msg);
} }
} }*/
//把该拍卖配置信息改为已处理, 拍品状态为"中拍未付款" //把该拍卖配置信息改为已处理, 拍品状态为"中拍未付款"
auctionConfigDao.setDeal(dto.getItemId(), AuctionEnum.StateEnum.GET_NOT_PAY.getCode()); auctionConfigDao.setDeal(dto.getItemId(), AuctionEnum.StateEnum.GET_NOT_PAY.getCode());
//发送中拍信息给用户 //发送中拍信息给用户
......
...@@ -32,7 +32,7 @@ public class DistributorProfitServiceImpl implements DistributorProfitService { ...@@ -32,7 +32,7 @@ public class DistributorProfitServiceImpl implements DistributorProfitService {
@Override @Override
public Double getIntroduceRebate(FollowFansRecordRequestDto dto) { public Double getIntroduceRebate(FollowFansRecordRequestDto dto) {
double rebate = 0; double rebate = 0.3;
try { try {
FollowFansRecord followFansRecord = followFansRecordDao.findOne(dto); FollowFansRecord followFansRecord = followFansRecordDao.findOne(dto);
if (followFansRecord == null) { if (followFansRecord == null) {
......
...@@ -66,6 +66,8 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -66,6 +66,8 @@ public class SupplierItemServiceImpl implements SupplierItemService {
private static final Logger logger = LoggerFactory.getLogger(SupplierItemServiceImpl.class); private static final Logger logger = LoggerFactory.getLogger(SupplierItemServiceImpl.class);
private static final String APPEND_IMAGE_URL = "https://cdn.wanwudezhi.com/seller-admin/image/MTY1MzQ2OTY1MjE2MQ==269_654x100.png";
@Autowired @Autowired
SupplierItemDao supplierItemDao; SupplierItemDao supplierItemDao;
...@@ -139,6 +141,7 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -139,6 +141,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
CollectorWhiteListDao collectorWhiteListDao; CollectorWhiteListDao collectorWhiteListDao;
@Override @Override
public Result findList(SupplierItemRequestDto dto) { public Result findList(SupplierItemRequestDto dto) {
try { try {
...@@ -657,6 +660,7 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -657,6 +660,7 @@ public class SupplierItemServiceImpl implements SupplierItemService {
"奖励则归属于第一个分享给买家的分销商。(举例:某拍品最终成拍价是1000元," + "奖励则归属于第一个分享给买家的分销商。(举例:某拍品最终成拍价是1000元," +
"有4个分销商参与分销,则中拍买家的分销商分得30元佣金,其余3个分销商每人分得10元佣金)"); "有4个分销商参与分销,则中拍买家的分销商分得30元佣金,其余3个分销商每人分得10元佣金)");
auctionDetailVo.setDescription(supplierItem.getDescription()); auctionDetailVo.setDescription(supplierItem.getDescription());
auctionDetailVo.setAppendImageUrl(APPEND_IMAGE_URL);
//是否延迟截拍的标识 //是否延迟截拍的标识
if (!auctionConfig.getEndTime().equals(auctionConfig.getRealEndTime())) { if (!auctionConfig.getEndTime().equals(auctionConfig.getRealEndTime())) {
auctionDetailVo.setIsExtend(true); auctionDetailVo.setIsExtend(true);
...@@ -799,8 +803,10 @@ public class SupplierItemServiceImpl implements SupplierItemService { ...@@ -799,8 +803,10 @@ public class SupplierItemServiceImpl implements SupplierItemService {
SupplierItem supplierItem = supplierItemDao.findById(itemId); SupplierItem supplierItem = supplierItemDao.findById(itemId);
if (supplierItem.getIsOnSale()) { if (supplierItem.getIsOnSale()) {
supplierItemVo.setPostType(DistributionEnum.PostTypeEnum.SALE.getCode()); supplierItemVo.setPostType(DistributionEnum.PostTypeEnum.SALE.getCode());
supplierItemVo.setAppendImageUrl(APPEND_IMAGE_URL);
} else if (!supplierItem.getIsOnSale() && supplierItem.getStock() == 0) { } else if (!supplierItem.getIsOnSale() && supplierItem.getStock() == 0) {
supplierItemVo.setPostType(DistributionEnum.PostTypeEnum.SALE.getCode()); supplierItemVo.setPostType(DistributionEnum.PostTypeEnum.SALE.getCode());
supplierItemVo.setAppendImageUrl(APPEND_IMAGE_URL);
} else { } else {
supplierItemVo.setPostType(DistributionEnum.PostTypeEnum.COMMON.getCode()); supplierItemVo.setPostType(DistributionEnum.PostTypeEnum.COMMON.getCode());
} }
......
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