commit
This commit is contained in:
parent
c145aed7ed
commit
eba5d95dca
|
|
@ -223,6 +223,12 @@ public class ConPurchaseVo {
|
|||
@ExcelProperty(value = "媒体链条附件")
|
||||
private String mediaLink;
|
||||
|
||||
/**
|
||||
* 检测照片附件
|
||||
*/
|
||||
@ExcelProperty(value = "检测照片附件")
|
||||
private String detectPicAttr;
|
||||
|
||||
/**
|
||||
* 媒体链条附件地址集合
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
//其他合同中实际回款金额汇总
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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`;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user