|
@@ -1385,7 +1385,7 @@ public class KwcContractTradeService {
|
|
|
ContractDetailResp.TradeBaseInfo baseInfo = getBaseInfo(ctTypeKeyAndUnitMap, kwcContractTrade);
|
|
ContractDetailResp.TradeBaseInfo baseInfo = getBaseInfo(ctTypeKeyAndUnitMap, kwcContractTrade);
|
|
|
contractDetailResp.setBaseInfo(baseInfo);
|
|
contractDetailResp.setBaseInfo(baseInfo);
|
|
|
//文件合同
|
|
//文件合同
|
|
|
- contractDetailResp.setContractFile(kwcContractTrade.getSignedUrl());
|
|
|
|
|
|
|
+ contractDetailResp.setContractFile(kwcContractTrade.getSigningUrl());
|
|
|
|
|
|
|
|
//标地信息
|
|
//标地信息
|
|
|
if (CollectionUtils.isNotEmpty(tradeGoods)){
|
|
if (CollectionUtils.isNotEmpty(tradeGoods)){
|
|
@@ -1454,6 +1454,8 @@ public class KwcContractTradeService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public PageDataResult<QueryListResVo> queryTradeListByPage(QueryTradeReq req) {
|
|
public PageDataResult<QueryListResVo> queryTradeListByPage(QueryTradeReq req) {
|
|
|
|
|
+
|
|
|
|
|
+ Long entId = StringUtils.isNotBlank(req.getEntId()) ? Long.valueOf(req.getEntId()) : null;
|
|
|
Set<Long> entIds = Sets.newHashSet();
|
|
Set<Long> entIds = Sets.newHashSet();
|
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(req.getPurchaseEntId())) {
|
|
if (org.apache.commons.lang3.StringUtils.isNotBlank(req.getPurchaseEntId())) {
|
|
|
//查询企业 信息
|
|
//查询企业 信息
|
|
@@ -1473,13 +1475,16 @@ public class KwcContractTradeService {
|
|
|
if (StringUtils.isBlank(req.getEntId())) {
|
|
if (StringUtils.isBlank(req.getEntId())) {
|
|
|
req.setEntId(String.valueOf(LoginUserHolder.getEntId()));
|
|
req.setEntId(String.valueOf(LoginUserHolder.getEntId()));
|
|
|
}
|
|
}
|
|
|
- allEnt.add(Long.valueOf(req.getEntId()));
|
|
|
|
|
- EntCacheResDto entCacheResDto = remoteSystemService.queryEntTreeById(Long.valueOf(req.getEntId()));
|
|
|
|
|
- if (Objects.nonNull(entCacheResDto)) {
|
|
|
|
|
- EntCacheResDto entCacheResDto1 = remoteSystemService.queryEntTreeById(entCacheResDto.getId());
|
|
|
|
|
- List<EntCacheResDto> child = entCacheResDto1.getChild();
|
|
|
|
|
- if (CollectionUtils.isNotEmpty(child)) {
|
|
|
|
|
- allEnt.addAll(child.stream().map(EntCacheResDto::getId).toList());
|
|
|
|
|
|
|
+
|
|
|
|
|
+ if (Objects.nonNull(entId)) {
|
|
|
|
|
+ allEnt.add(entId);
|
|
|
|
|
+ EntCacheResDto entCacheResDto = remoteSystemService.queryEntTreeById(entId);
|
|
|
|
|
+ if (Objects.nonNull(entCacheResDto)) {
|
|
|
|
|
+ EntCacheResDto entCacheResDto1 = remoteSystemService.queryEntTreeById(entCacheResDto.getId());
|
|
|
|
|
+ List<EntCacheResDto> child = entCacheResDto1.getChild();
|
|
|
|
|
+ if (CollectionUtils.isNotEmpty(child)) {
|
|
|
|
|
+ allEnt.addAll(child.stream().map(EntCacheResDto::getId).toList());
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|