Commit f9d497be authored by shiyu's avatar shiyu

查询估价详情

parent 431b5261
......@@ -333,17 +333,18 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleRecordVo.setItemName(item.getName());
consignSaleRecordVo.setCustomState(consignSale.getCustomState());
consignSaleRecordVo.setIsTimeOut(false);
consignSaleRecordVo.setTip("初步估价结果仅供参考,想要获得真实的报价需要将货品送至平台,由平台专家对实物进行专业鉴定才可以得出结果。");
consignSaleRecordList = consignSaleRecordList.stream().filter(consignSaleRecord -> consignSaleRecord.getType().intValue() == ConsignSaleEnum.OperateTypeEnum.VALUATE.getCode()).collect(Collectors.toList());
if (CollectionUtils.isEmpty(consignSaleRecordList)) {
consignSaleRecordVo.setIsHasPrice(false);
return Result.success(consignSaleRecordVo);
} else {
consignSaleRecordVo.setIsHasPrice(true);
consignSaleRecordVo.setContent(consignSaleRecordList.get(0).getContent());
consignSaleRecordVo.setRemark(consignSaleRecordList.get(0).getRemark());
consignSaleRecordVo.setTime(consignSaleRecordList.get(0).getCreateTime());
}
consignSaleRecordVo.setTip("初步估价结果仅供参考,想要获得真实的报价需要将货品送至平台,由平台专家对实物进行专业鉴定才可以得出结果。");
long num = consignSaleRecordList.stream().filter(consignSaleRecord -> consignSaleRecord.getType().intValue() == ConsignSaleEnum.OperateTypeEnum.USER_CONFIRM_VALUATE.getCode()).count();
//尚未确认
if (num == 0) {
......@@ -389,6 +390,7 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSaleRecordList = consignSaleRecordList.stream().filter(consignSaleRecord -> consignSaleRecord.getType().intValue() == ConsignSaleEnum.OperateTypeEnum.IDENTIFY.getCode()).collect(Collectors.toList());
if (CollectionUtils.isEmpty(consignSaleRecordList)) {
consignSaleRecordVo.setIsHasPrice(false);
return Result.success(consignSaleRecordVo);
} else {
consignSaleRecordVo.setIsHasPrice(true);
consignSaleRecordVo.setContent(consignSaleRecordList.get(0).getContent());
......
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