Merge remote-tracking branch 'origin/main'

This commit is contained in:
zhanghuibin 2025-11-18 22:53:54 +08:00
commit b27ebaccf1
9 changed files with 80 additions and 3 deletions

View File

@ -174,6 +174,12 @@ public class ConPurchase extends BaseEntityAdd {
@FieldNameApi(name = "媒体链条附件")
private String mediaLink;
/**
* 检测照片附件
*/
@FieldNameApi(name = "检测照片附件")
private String detectPicAttr;
/**
* 是否逾期0否1是
*/

View File

@ -1,5 +1,6 @@
package com.ruoyi.contract.domain;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.annotation.FieldNameApi;
import com.ruoyi.common.core.domain.BaseEntityAdd;
@ -147,4 +148,16 @@ public class ConSaleMedia extends BaseEntityAdd {
*/
@FieldNameApi(name ="其他返点金额")
private Double otherReverMoney;
/**
* 其他返点2
*/
@FieldNameApi(name ="其他返点2")
private String otherReverPoit2;
/**
* 其他返点金额2
*/
@FieldNameApi(name ="其他返点金额2")
private Double otherReverMoney2;
}

View File

@ -209,6 +209,12 @@ public class ConPurchaseBo extends BaseEntity {
@CustomBaenAnnotation(value = "媒体链条附件")
private String mediaLink;
/**
* 检测照片附件
*/
@CustomBaenAnnotation(value = "检测照片附件")
private String detectPicAttr;
/**
* 状态
*/
@ -264,4 +270,5 @@ public class ConPurchaseBo extends BaseEntity {
private String isOverdue;
}

View File

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

View File

@ -166,12 +166,24 @@ public class ConSaleMediaVo {
/**
* 其他返点
*/
@ExcelProperty(value = "其他返点")
@ExcelProperty(value = "其他返点1")
private String otherReverPoit;
/**
* 其他返点金额
*/
@ExcelProperty(value = "其他返点金额")
@ExcelProperty(value = "其他返点金额1")
private Double otherReverMoney;
/**
* 其他返点2
*/
@ExcelProperty(value = "其他返点2")
private String otherReverPoit2;
/**
* 其他返点金额2
*/
@ExcelProperty(value = "其他返点金额2")
private Double otherReverMoney2;
}

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

@ -2102,6 +2102,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

@ -0,0 +1,7 @@
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_purchase`
ADD COLUMN `detect_pic_attr` varchar(2000) NULL COMMENT '检测照片附件' AFTER `media_link`;