This commit is contained in:
李文飞 2025-11-18 21:39:38 +08:00
parent c145aed7ed
commit eba5d95dca
5 changed files with 34 additions and 3 deletions

View File

@ -223,6 +223,12 @@ public class ConPurchaseVo {
@ExcelProperty(value = "媒体链条附件")
private String mediaLink;
/**
* 检测照片附件
*/
@ExcelProperty(value = "检测照片附件")
private String detectPicAttr;
/**
* 媒体链条附件地址集合
*/

View File

@ -696,7 +696,7 @@ public class ConBigScreenServiceImpl implements IConBigScreenService {
double actualArrivalMoney=0d;
if(CollUtil.isNotEmpty(conSaleVos)){
List<Long> list = conSaleVos.stream().map(ConSaleVo::getId).collect(Collectors.toList());
List<ConSaleCollect> collects = conSaleCollectMapper.selectList(Wrappers.<ConSaleCollect>lambdaQuery().select(ConSaleCollect::getActualArrivalMoney).in(ConSaleCollect::getSaleId, list));
List<ConSaleCollect> collects = conSaleCollectMapper.selectList(Wrappers.<ConSaleCollect>lambdaQuery().select(ConSaleCollect::getId).select(ConSaleCollect::getActualArrivalMoney).in(ConSaleCollect::getSaleId, list));
actualArrivalMoney = CollUtil.isNotEmpty(collects) ? collects.stream().filter(itx -> (ObjectUtil.isNotEmpty(itx) && ObjectUtil.isNotEmpty(itx.getActualArrivalMoney()))).mapToDouble(ConSaleCollect::getActualArrivalMoney).sum() : 0d;
}
//其他合同中实际回款金额汇总

View File

@ -99,6 +99,9 @@ public class ConCityServiceImpl implements IConCityService {
**/
@Override
public List<ConCityVo> getTreeSelect() {
List<ConCityVo> allList = this.getAllList();
//Map<Long,List<ConCityVo>> mapList = allList.stream().filter(item -> item.getParentId() != null).collect(Collectors.groupingBy(ConCityVo :: getParentId));
return buildTreeNode(getParentAreas());
}
@ -159,6 +162,24 @@ public class ConCityServiceImpl implements IConCityService {
}
return nodes;
}
private List<ConCityVo> buildTreeNodeNew(List<ConCityVo> list,Map<Long,List<ConCityVo>> mapList) {
List<ConCityVo> nodes = new ArrayList<>();
if (list != null && list.size() > 0) {
list.forEach(
area -> {
ConCityVo vo = new ConCityVo();
BeanUtils.copyProperties(area, vo);
vo.setChildren(null);
List<ConCityVo> childrenList = mapList.get(area.getId());
if (childrenList != null && childrenList.size() > 0) {
List<ConCityVo> children = buildTreeNodeNew(childrenList,mapList);
vo.setChildren(children);
}
nodes.add(vo);
});
}
return nodes;
}
private List<ConCityVo> getChildrenSal(Long id) {
return baseMapper.getChildByParentId(id);

View File

@ -1954,6 +1954,11 @@ public class ConPurchaseServiceImpl implements IConPurchaseService {
String stringByMds = localStorageService.getStringByMds(item.getMediaLink());
item.setMediaLink(stringByMds);
}
//媒体联调附件
if (StringUtils.isNotBlank(item.getDetectPicAttr())) {
String stringByMds = localStorageService.getStringByMds(item.getDetectPicAttr());
item.setDetectPicAttr(stringByMds);
}
}
writerHashChildUpgrade(writer, indexStart, result, fieldName, fieldNameExtend, mediaFieldName);
}

View File

@ -2,7 +2,6 @@ ALTER TABLE `con_sale_media`
ADD COLUMN `other_rever_poit2` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NULL DEFAULT NULL COMMENT '其他返点2' AFTER `other_rever_money`,
ADD COLUMN `other_rever_money2` double NULL DEFAULT NULL COMMENT '其他返点金额2' AFTER `other_rever_poit2`;
-- 检测照片附件
ALTER TABLE `con_sale`
ALTER TABLE `con_purchase`
ADD COLUMN `detect_pic_attr` varchar(2000) NULL COMMENT '检测照片附件' AFTER `media_link`;