Commit 11780448 authored by shiyu's avatar shiyu

创建分享链接

parent a32dcc62
......@@ -56,11 +56,7 @@ public class DistributorShareRecordServiceImpl implements DistributorShareRecord
if (record != null && StringUtils.hasLength(record.getShareId())) {
return Result.success(new HashMap<String, String>(){{put("shareId", record.getShareId());}});
}
SupplierItem supplierItem = supplierItemDao.findById(dto.getItemId());
long supplierPrice = supplierItem.getDistributionPrice();
if (supplierPrice > PriceUtil.convertPriceFromStr(dto.getPrice())) {
return Result.failed("售价不能低于分销价");
}
// SupplierItem supplierItem = supplierItemDao.findById(dto.getItemId());
DistributorShareRecord distributorShareRecord = new DistributorShareRecord();
String shareRecordId = UUID.fastUUID().toString(true);
distributorShareRecord.setShareId(shareRecordId);
......
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