Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
b27ebaccf1
|
|
@ -174,6 +174,12 @@ public class ConPurchase extends BaseEntityAdd {
|
||||||
@FieldNameApi(name = "媒体链条附件")
|
@FieldNameApi(name = "媒体链条附件")
|
||||||
private String mediaLink;
|
private String mediaLink;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检测照片附件
|
||||||
|
*/
|
||||||
|
@FieldNameApi(name = "检测照片附件")
|
||||||
|
private String detectPicAttr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否逾期0否1是
|
* 是否逾期0否1是
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
package com.ruoyi.contract.domain;
|
package com.ruoyi.contract.domain;
|
||||||
|
|
||||||
|
import com.alibaba.excel.annotation.ExcelProperty;
|
||||||
import com.baomidou.mybatisplus.annotation.*;
|
import com.baomidou.mybatisplus.annotation.*;
|
||||||
import com.ruoyi.common.annotation.FieldNameApi;
|
import com.ruoyi.common.annotation.FieldNameApi;
|
||||||
import com.ruoyi.common.core.domain.BaseEntityAdd;
|
import com.ruoyi.common.core.domain.BaseEntityAdd;
|
||||||
|
|
@ -147,4 +148,16 @@ public class ConSaleMedia extends BaseEntityAdd {
|
||||||
*/
|
*/
|
||||||
@FieldNameApi(name ="其他返点金额")
|
@FieldNameApi(name ="其他返点金额")
|
||||||
private Double otherReverMoney;
|
private Double otherReverMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 其他返点2
|
||||||
|
*/
|
||||||
|
@FieldNameApi(name ="其他返点2")
|
||||||
|
private String otherReverPoit2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 其他返点金额2
|
||||||
|
*/
|
||||||
|
@FieldNameApi(name ="其他返点金额2")
|
||||||
|
private Double otherReverMoney2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -209,6 +209,12 @@ public class ConPurchaseBo extends BaseEntity {
|
||||||
@CustomBaenAnnotation(value = "媒体链条附件")
|
@CustomBaenAnnotation(value = "媒体链条附件")
|
||||||
private String mediaLink;
|
private String mediaLink;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检测照片附件
|
||||||
|
*/
|
||||||
|
@CustomBaenAnnotation(value = "检测照片附件")
|
||||||
|
private String detectPicAttr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 状态
|
* 状态
|
||||||
*/
|
*/
|
||||||
|
|
@ -264,4 +270,5 @@ public class ConPurchaseBo extends BaseEntity {
|
||||||
private String isOverdue;
|
private String isOverdue;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -223,6 +223,12 @@ public class ConPurchaseVo {
|
||||||
@ExcelProperty(value = "媒体链条附件")
|
@ExcelProperty(value = "媒体链条附件")
|
||||||
private String mediaLink;
|
private String mediaLink;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 检测照片附件
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "检测照片附件")
|
||||||
|
private String detectPicAttr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 媒体链条附件地址集合
|
* 媒体链条附件地址集合
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -166,12 +166,24 @@ public class ConSaleMediaVo {
|
||||||
/**
|
/**
|
||||||
* 其他返点
|
* 其他返点
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "其他返点")
|
@ExcelProperty(value = "其他返点1")
|
||||||
private String otherReverPoit;
|
private String otherReverPoit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 其他返点金额
|
* 其他返点金额
|
||||||
*/
|
*/
|
||||||
@ExcelProperty(value = "其他返点金额")
|
@ExcelProperty(value = "其他返点金额1")
|
||||||
private Double otherReverMoney;
|
private Double otherReverMoney;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 其他返点2
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "其他返点2")
|
||||||
|
private String otherReverPoit2;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 其他返点金额2
|
||||||
|
*/
|
||||||
|
@ExcelProperty(value = "其他返点金额2")
|
||||||
|
private Double otherReverMoney2;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -696,7 +696,7 @@ public class ConBigScreenServiceImpl implements IConBigScreenService {
|
||||||
double actualArrivalMoney=0d;
|
double actualArrivalMoney=0d;
|
||||||
if(CollUtil.isNotEmpty(conSaleVos)){
|
if(CollUtil.isNotEmpty(conSaleVos)){
|
||||||
List<Long> list = conSaleVos.stream().map(ConSaleVo::getId).collect(Collectors.toList());
|
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;
|
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
|
@Override
|
||||||
public List<ConCityVo> getTreeSelect() {
|
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());
|
return buildTreeNode(getParentAreas());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -159,6 +162,24 @@ public class ConCityServiceImpl implements IConCityService {
|
||||||
}
|
}
|
||||||
return nodes;
|
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) {
|
private List<ConCityVo> getChildrenSal(Long id) {
|
||||||
return baseMapper.getChildByParentId(id);
|
return baseMapper.getChildByParentId(id);
|
||||||
|
|
|
||||||
|
|
@ -2102,6 +2102,11 @@ public class ConPurchaseServiceImpl implements IConPurchaseService {
|
||||||
String stringByMds = localStorageService.getStringByMds(item.getMediaLink());
|
String stringByMds = localStorageService.getStringByMds(item.getMediaLink());
|
||||||
item.setMediaLink(stringByMds);
|
item.setMediaLink(stringByMds);
|
||||||
}
|
}
|
||||||
|
//媒体联调附件
|
||||||
|
if (StringUtils.isNotBlank(item.getDetectPicAttr())) {
|
||||||
|
String stringByMds = localStorageService.getStringByMds(item.getDetectPicAttr());
|
||||||
|
item.setDetectPicAttr(stringByMds);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
writerHashChildUpgrade(writer, indexStart, result, fieldName, fieldNameExtend, mediaFieldName);
|
writerHashChildUpgrade(writer, indexStart, result, fieldName, fieldNameExtend, mediaFieldName);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
7
script/sql/update/update_2025-1018.sql
Normal file
7
script/sql/update/update_2025-1018.sql
Normal 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`;
|
||||||
Loading…
Reference in New Issue
Block a user