Commit c06047e5 by 叶立庆

Merge branch 'v5.8.5' into 'master'

上线合并

See merge request !6
2 parents 24f1af83 0c3d053a
Showing 53 changed files with 1103 additions and 26 deletions
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<name>rpc-dj-daily-report-api</name> <name>rpc-dj-daily-report-api</name>
<properties> <properties>
<deploy.scanPackage>cn.com.glsx.dj.daily.report.remote</deploy.scanPackage> <deploy.scanPackage>cn.com.glsx.dj.daily.report.remote</deploy.scanPackage>
<daily-report.api.version>5.8.4-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.5-SNAPSHOT</daily-report.api.version>
<smartcarlife.api.version>5.8.4-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.8.5-SNAPSHOT</smartcarlife.api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
......
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
/**
* 延保权益-问界售后引荐率统计 VO
*/
@Data
public class ExtendedWarrantyAfterSaleReferralStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 服务顾问 (模板col1) */
private String serviceAdvisor;
/** 月进厂数 (模板col2) */
private Integer storeVisitCountOfMonth;
/** 月谈客数 (模板col3) */
private Integer customerConversationCountOfMonth;
/** 月引荐率 (模板col4) */
private String referralRateOfMonth;
/** 月成交量 (模板col5) */
private Integer transactionCountOfMonth;
/** 月成交率 (模板col6) */
private String transactionRateOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import org.oreframework.commons.office.easyexcel.annotation.ExcelMergeRow;
import java.io.Serializable;
import java.util.List;
/**
* 延保权益-问界交付部数据统计导出 VO
* <p>list.xxx = 每行一个交付专员的数据;无前缀 = 跨行合并展示</p>
*/
@Data
public class ExtendedWarrantyDeliveryStatisticsExportVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交付部行数据列表 */
private List<ExtendedWarrantyDeliveryStatisticsVO> list;
/** 本月推荐率(店) — 跨行合并,模板列18 (0-based=17) */
@ExcelMergeRow(columIndex = 17)
private String referralRateTotalOfMonth;
/** 本月触客成交率 — 跨行合并,模板列19 (0-based=18) */
@ExcelMergeRow(columIndex = 18)
private String touchToCloseRateOfMonth;
/** 本月整车延保单量 — 跨行合并,模板列20 (0-based=19) */
@ExcelMergeRow(columIndex = 19)
private String extendedWarrantyCountOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
/**
* 延保权益-问界交付部数据统计行 VO
*/
@Data
public class ExtendedWarrantyDeliveryStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 部门 ("交付部"/"合计") */
private String departmentName;
/** 交付专员 */
private String deliverySpecialist;
/** 今日交付数 */
private Integer deliveryCountOfToday;
/** 今日售前有效引荐数 */
private Integer validReferralsOfToday;
/** 今日售前触客数 */
private Integer presalesCustomerContactCountOfToday;
/** 今日售前整车延保成交数 */
private Integer extendedWarrantyClosedOfToday;
/** 今日售前电池延保成交数 */
private Integer axPackageClosedOfToday;
/** 今日售前安心包成交数 */
private Integer peaceOfMindPackageClosedOfToday;
/** 本月交付数 */
private Integer deliveryCountOfMonth;
/** 本月售前有效引荐数 */
private Integer validReferralsOfMonth;
/** 本月售前触客数 */
private Integer presalesCustomerContactCountOfMonth;
/** 本月售前整车延保成交数 */
private Integer extendedWarrantyClosedOfMonth;
/** 本月售前电池延保成交数 */
private Integer batteryWarrantyClosedOfMonth;
/** 本月售前安心包成交数 */
private Integer peaceOfMindPackageClosedOfMonth;
/** 本月推荐率 */
private String referralRateOfMonth;
/** 本月售前整车延保渗透率 */
private String extendedWarrantyPenetrationRateOfMonth;
/** 本月售前电池延保渗透率 */
private String batteryWarrantyPenetrationRateOfMonth;
/** 本月售前安心包渗透率 */
private String peaceOfMindPackagePenetrationRateOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
/**
* 延保权益-岚图售后引荐率统计 VO
*/
@Data
public class ExtendedWarrantyLanTuAfterSaleReferralStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 服务顾问 */
private String serviceAdvisor;
/** 月进厂数 */
private Integer receptionCountOfMonth;
/** 月谈客数 */
private Integer customerConversationCountOfMonth;
/** 月引荐率 */
private String referralRateOfMonth;
/** 月成交量 */
private Integer transactionCountOfMonth;
/** 月成交率 */
private String transactionRateOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import org.oreframework.commons.office.easyexcel.annotation.ExcelMergeRow;
import java.io.Serializable;
import java.util.List;
/**
* 延保权益-岚图交付部数据统计导出 VO
* <p>list.xxx = 每行一个交付专员的数据;无前缀 = 跨行合并展示</p>
*/
@Data
public class ExtendedWarrantyLanTuDeliveryStatisticsExportVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交付部行数据列表 */
private List<ExtendedWarrantyLanTuDeliveryStatisticsVO> list;
/** 本月推荐率(店) — 跨行合并,模板列L (0-based=11) */
@ExcelMergeRow(columIndex = 11)
private String referralRateTotalOfMonth;
/** 本月触客成交率 — 跨行合并,模板列M (0-based=12) */
@ExcelMergeRow(columIndex = 12)
private String touchToCloseRateOfMonth;
/** 本月成交单量 — 跨行合并,模板列N (0-based=13) */
@ExcelMergeRow(columIndex = 13)
private String salesOrderCountOfMonth;
/** 系统DMS交车数 — 跨行合并,模板列O (0-based=14) */
@ExcelMergeRow(columIndex = 14)
private String systemDmsDeliveryCount;
/** 系统DMS渗透率 — 跨行合并,模板列P (0-based=15) */
@ExcelMergeRow(columIndex = 15)
private String systemDmsPenetrationRate;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
/**
* 延保权益-岚图交付部数据统计行 VO
*/
@Data
public class ExtendedWarrantyLanTuDeliveryStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交付专员 */
private String deliverySpecialist;
/** 今日交付数 */
private Integer deliveryCountOfToday;
/** 今日成交数 */
private Integer salesCountOfToday;
/** 今日售前有效引荐数 */
private Integer validReferralsOfToday;
/** 今日售前触客数 */
private Integer presalesCustomerContactCountOfToday;
/** 本月交付数 */
private Integer deliveryCountOfMonth;
/** 本月成交数 */
private Integer salesCountOfMonth;
/** 本月售前有效引荐数 */
private Integer validReferralsOfMonth;
/** 本月售前触客数 */
private Integer presalesCustomerContactCountOfMonth;
/** 本月推荐率 */
private String referralRateOfMonth;
/** 本月成交率 */
private String conversionRateOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 延保权益-岚图洽谈明细 VO
*/
@Data
public class ExtendedWarrantyLanTuNegotiationDetailVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交车日期 */
private String deliveryDate;
/** 部门 */
private String departmentName;
/** 推荐人 */
private String referrer;
/** 客户姓名 */
private String customerName;
/** 客户手机号 */
private String phone;
/** 车型配置 */
private String vehicleConfiguration;
/** 车架号 */
private String vin;
/** 驻店人员 */
private String storeSales;
/** 触客时间 */
private String customerContactTime;
/** 成交日期 */
private String transactionDate;
/** 成交产品 */
private String purchasedProduct;
/** 延保成交金额 */
private BigDecimal extendedWarrantyDealAmount;
/** 成交商品年限 */
private String productContractTerm;
/** 未成交原因 */
private String lostReason;
/** 备注 */
private String remark;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 延保权益-问界洽谈明细 VO
*/
@Data
public class ExtendedWarrantyNegotiationDetailVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交车日期 */
private String deliveryDate;
/** 部门 */
private String departmentName;
/** 推荐人 */
private String referrer;
/** 客户姓名 */
private String customerName;
/** 客户手机号 */
private String phone;
/** 车型配置 */
private String vehicleConfiguration;
/** 车架号 */
private String vin;
/** 驻店人员 */
private String storeSales;
/** 触客时间 */
private String customerContactTime;
/** 成交日期 */
private String transactionDate;
/** 成交产品 */
private String purchasedProduct;
/** 整车延保成交金额 */
private BigDecimal extendedWarrantyDealAmount;
/** 电池延保成交金额 */
private BigDecimal batteryExtendedWarrantyDealAmount;
/** 安心包成交金额 */
private BigDecimal peaceOfMindPackageDealAmount;
/** 轮胎成交金额 */
private BigDecimal tireInsuranceDealAmount;
/** 成交金额合计 */
private BigDecimal totalDealAmount;
/** 未成交原因 */
private String lostReason;
/** 备注 */
private String remark;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import org.oreframework.commons.office.easyexcel.annotation.ExcelMergeRow;
import java.io.Serializable;
import java.util.List;
/**
* 延保权益-其他品牌交付部数据统计导出VO
* <p>list.xxx = 每行一个交付专员的数据;无前缀 = 跨行合并展示</p>
*/
@Data
public class ExtendedWarrantyOtherDeliveryStatisticsExportVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交付部行数据列表 */
private List<ExtendedWarrantyOtherDeliveryStatisticsVO> list;
@ExcelMergeRow(columIndex = 19)
private String ewReferralRateTotalOfMonth;
@ExcelMergeRow(columIndex = 20)
private String ewPresalesCustomerContactRateOfMonth;
@ExcelMergeRow(columIndex = 21)
private String ewSalesOrderCountOfMonth;
@ExcelMergeRow(columIndex = 22)
private String eqReferralRateTotalOfMonth;
@ExcelMergeRow(columIndex = 23)
private String eqPresalesCustomerContactRateOfMonth;
@ExcelMergeRow(columIndex = 24)
private String eqSalesOrderCountOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 延保权益-其他品牌交付部数据统计行VO
*/
@Data
public class ExtendedWarrantyOtherDeliveryStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交付专员 (A) */
private String deliverySpecialist;
/** 今日交付数 (B) */
private Integer deliveryCountOfToday;
/** 今日售前延保有效引荐数 (C) */
private Integer ewValidReferralsOfToday;
/** 今日售前延保触客数 (D) */
private Integer ewPresalesCustomerContactCountOfToday;
/** 今日售前权益有效引荐数 (E) */
private Integer eqValidReferralsOfToday;
/** 今日售前权益触客数 (F) */
private Integer eqPresalesCustomerContactCountOfToday;
/** 今日售前延保成交数 (G) */
private Integer ewDeliveryCountOfToday;
/** 今日售前权益成交数 (H) */
private Integer eqDeliveryCountOfToday;
/** 今日成交金额 (I) */
private BigDecimal salesAmountOfToday;
/** 本月交付数 (J) */
private Integer deliveryCountOfMonth;
/** 本月售前延保触客数 (K) */
private Integer ewPresalesCustomerContactCountOfMonth;
/** 本月售前权益触客数 (L) */
private Integer eqPresalesCustomerContactCountOfMonth;
/** 本月售前延保成交数 (M) */
private Integer ewDeliveryCountOfMonth;
/** 本月售前权益成交数 (N) */
private Integer eqDeliveryCountOfMonth;
/** 本月成交金额 (O) */
private BigDecimal salesAmountOfMonth;
/** 本月售前延保推荐率 (P) */
private String ewReferralRateOfMonth;
/** 本月售前延保渗透率 (Q) */
private String ewPenetrationRateOfMonth;
/** 本月售前权益推荐率 (R) */
private String eqReferralRateOfMonth;
/** 本月售前权益渗透率 (S) */
private String eqPenetrationRateOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 延保权益-其他品牌洽谈明细行VO
*/
@Data
public class ExtendedWarrantyOtherNegotiationDetailVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 交车日期 */
private String deliveryDate;
/** 部门 */
private String departmentName;
/** 推荐人 */
private String referrer;
/** 客户姓名 */
private String customerName;
/** 客户手机号(脱敏) */
private String phone;
/** 车型配置 */
private String vehicleConfiguration;
/** 车架号 */
private String vin;
/** 驻店人员 */
private String storeSales;
/** 触客时间 */
private String customerContactTime;
/** 成交日期 */
private String transactionDate;
/** 成交产品 */
private String purchasedProduct;
/** 延保成交金额 */
private BigDecimal extendedWarrantyDealAmount;
/** 权益成交金额 */
private BigDecimal productContractTerm;
/** 未成交原因 */
private String lostReason;
/** 备注 */
private String remark;
}
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 轻改售后部数据统计导出 VO
*/
@Data
public class LightChangeAfterSaleStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
@ExcelProperty(value = "部门")
private String departmentName;
@ExcelProperty(value = "SA")
private String sa;
@ExcelProperty(value = "今日售后首保维保数")
private Integer firstMaintenanceCountOfToday;
@ExcelProperty(value = "今日事故车数")
private Integer accidentVehicleCountOfToday;
@ExcelProperty(value = "今日售后触客数")
private Integer reachCountOfToday;
@ExcelProperty(value = "今日升级数")
private Integer upgradeCountOfToday;
@ExcelProperty(value = "今日总产值")
private BigDecimal totalOutputValueOfToday;
@ExcelProperty(value = "本月首保维保数")
private Integer firstMaintenanceCountOfMonth;
@ExcelProperty(value = "本月事故车数")
private Integer accidentVehicleCountOfMonth;
@ExcelProperty(value = "本月售后触客数")
private Integer reachCountOfMonth;
@ExcelProperty(value = "本月升级数")
private Integer upgradeCountOfMonth;
@ExcelProperty(value = "本月总产值")
private BigDecimal totalOutputValueOfMonth;
@ApiModelProperty("本月售后触客客单价")
private BigDecimal averageOrderValueOfMonth;
}
...@@ -49,6 +49,27 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -49,6 +49,27 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("洽谈明细表格数据") @ApiModelProperty("洽谈明细表格数据")
private List<Map<String, String>> negotiationRows; private List<Map<String, String>> negotiationRows;
@ApiModelProperty("销售部统计表格数据(轻改+问界鸿蒙)")
private List<LightChangeSalesStatisticsVO> salesStatisticsRows;
@ApiModelProperty("交付部统计表格数据(轻改+问界鸿蒙)")
private List<LightChangeDeliveryStatisticsVO> deliveryStatisticsRows;
@ApiModelProperty("售后部统计表格数据(轻改+问界鸿蒙)")
private List<LightChangeAfterSaleStatisticsVO> afterSaleStatisticsRows;
@ApiModelProperty("销售部统计表格数据(轻改+其他品牌)")
private List<LightChangeOtherBrandSalesExportVO> otherBrandSalesStatisticsRows;
@ApiModelProperty("售后部统计表格数据(轻改+其他品牌)")
private List<LightChangeOtherBrandAfterSaleExportVO> otherBrandAfterSaleStatisticsRows;
@ApiModelProperty("洽谈明细表格数据(轻改+其他品牌)")
private List<LightChangeNegotiationVO> otherBrandNegotiationDetailRows;
@ApiModelProperty("洽谈明细表格数据(轻改+问界鸿蒙)")
private List<LightChangeNegotiationVO> negotiationDetailRows;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
...@@ -84,7 +105,7 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -84,7 +105,7 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("今日总产值") @ApiModelProperty("今日总产值")
private BigDecimal todayTotalOutput; private BigDecimal todayTotalOutput;
@ApiModelProperty("今日平均客单价") @ApiModelProperty("今日交付客单价")
private BigDecimal todayAvgOrderPrice; private BigDecimal todayAvgOrderPrice;
@ApiModelProperty("今日客单价") @ApiModelProperty("今日客单价")
...@@ -129,7 +150,7 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -129,7 +150,7 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("本月售后事故车数量") @ApiModelProperty("本月售后事故车数量")
private Integer monthAfterSaleAccidentCount; private Integer monthAfterSaleAccidentCount;
@ApiModelProperty("本月售后触客总数量") @ApiModelProperty("本月售后触客数量")
private Integer monthAfterSaleTouchCount; private Integer monthAfterSaleTouchCount;
@ApiModelProperty("本月售后触客率") @ApiModelProperty("本月售后触客率")
...@@ -138,7 +159,7 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -138,7 +159,7 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("本月总产值") @ApiModelProperty("本月总产值")
private BigDecimal monthTotalOutput; private BigDecimal monthTotalOutput;
@ApiModelProperty("本月平均客单价") @ApiModelProperty("本月交付客单价")
private BigDecimal monthAvgOrderPrice; private BigDecimal monthAvgOrderPrice;
@ApiModelProperty("本月原厂窗膜升级数量") @ApiModelProperty("本月原厂窗膜升级数量")
......
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 轻改交付部数据统计导出 VO
*/
@Data
public class LightChangeDeliveryStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
@ExcelProperty(value = "部门")
private String departmentName;
@ExcelProperty(value = "交付专员")
private String deliverySpecialist;
@ExcelProperty(value = "今日交付数")
private Integer deliveryCountOfToday;
@ExcelProperty(value = "今日交付引荐数")
private Integer referralCountOfToday;
@ExcelProperty(value = "今日成交数")
private Integer transactionCountOfToday;
@ExcelProperty(value = "今日成交金额")
private BigDecimal transactionAmountOfToday;
@ExcelProperty(value = "本月交付数")
private Integer deliveryCountOfMonth;
@ExcelProperty(value = "本月交付引荐数")
private Integer referralCountOfMonth;
@ExcelProperty(value = "本月成交数")
private Integer transactionCountOfMonth;
@ExcelProperty(value = "本月无效引荐数")
private Integer referralInvalidCountOfMonth;
@ExcelProperty(value = "本月成交金额")
private BigDecimal transactionAmountOfMonth;
@ApiModelProperty("本月交付客单价")
private BigDecimal averageOrderValueOfMonth;
}
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 轻改洽谈明细导出 VO
*/
@Data
public class LightChangeNegotiationVO implements Serializable {
private static final long serialVersionUID = 1L;
@ExcelProperty(value = "洽谈日期")
private String negotiationDate;
@ExcelProperty(value = "驻店人员")
private String storeSales;
@ExcelProperty(value = "部门")
private String departmentName;
@ExcelProperty(value = "销售/交付/SA")
private String sa;
@ExcelProperty(value = "客户姓名")
private String customerName;
@ExcelProperty(value = "客户手机号")
private String phone;
@ExcelProperty(value = "车型配置")
private String vehicleConfig;
@ExcelProperty(value = "车架号")
private String vin;
@ExcelProperty(value = "销售赠送")
private String salesGifts;
@ExcelProperty(value = "销售渠道")
private String salesChannels;
@ExcelProperty(value = "是否有效")
private String isEffective;
@ExcelProperty(value = "是否升级")
private String isUpgraded;
@ExcelProperty(value = "窗膜成交金额")
private BigDecimal windowTintAmount;
@ExcelProperty(value = "车衣成交金额")
private BigDecimal carWrapAmount;
@ExcelProperty(value = "精品成交金额")
private BigDecimal boutiqueAmount;
@ExcelProperty(value = "升级成交金额")
private BigDecimal upgradeAmount;
@ExcelProperty(value = "备注")
private String remark;
@ApiModelProperty("数据来源:订单/日报")
private String dataSource;
}
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.oreframework.commons.office.easyexcel.annotation.ExcelMergeRow;
import java.io.Serializable;
import java.util.List;
/**
* 轻改其他品牌售后部数据统计导出VO
* <p>list.xxx = 每行一个SA的数据;无前缀 = 跨行合并展示</p>
*/
@Data
public class LightChangeOtherBrandAfterSaleExportVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 售后部行数据列表 */
private List<LightChangeOtherBrandAfterSaleRowVO> list;
@ExcelMergeRow(columIndex = 8)
@ExcelProperty(value = "售后成交金额")
private String afterSalesTransactionAmount;
}
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
@Data
public class LightChangeOtherBrandAfterSaleRowVO implements Serializable {
private static final long serialVersionUID = 1L;
@ExcelProperty("部门")
private String departmentName;
@ExcelProperty("SA")
private String sa;
@ExcelProperty("今日到店数")
private Integer todayTalkCustomerCount;
@ExcelProperty("今日成交数")
private Integer todayDealCount;
@ExcelProperty("今日成交金额")
private BigDecimal todayTotalOutput;
@ExcelProperty("本月到店数")
private Integer monthTalkCustomerCount;
@ExcelProperty("本月成交数")
private Integer monthDeliveryCount;
@ExcelProperty("本月成交金额")
private BigDecimal monthTotalOutput;
}
package cn.com.glsx.dj.daily.report.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* 轻改通用品牌(非鸿蒙智行)日报数据。
* 通用品牌不包含交付部数据;销售、售后模板行数据分别按推荐人展开。
*/
@Data
public class LightChangeOtherBrandDailyReportData implements Serializable {
private static final long serialVersionUID = 1L;
private String merchantName;
private String reportDate;
private String yearMonth;
private LightChangeDailyReportData.DailyReportSummary todayData;
private LightChangeDailyReportData.DailyReportSummary monthData;
@ApiModelProperty("销售部按销售顾问展开的数据")
private List<Map<String, String>> salesRows;
@ApiModelProperty("售后部按 SA 展开的数据")
private List<Map<String, String>> afterSaleRows;
@ApiModelProperty("当日洽谈明细")
private List<Map<String, String>> negotiationRows;
public LightChangeDailyReportData toLegacyData() {
LightChangeDailyReportData data = new LightChangeDailyReportData();
data.setMerchantName(merchantName);
data.setReportDate(reportDate);
data.setYearMonth(yearMonth);
data.setTodayData(todayData);
data.setMonthData(monthData);
data.setSalesRows(salesRows);
data.setAfterSaleRows(afterSaleRows);
data.setNegotiationRows(negotiationRows);
return data;
}
}
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import org.oreframework.commons.office.easyexcel.annotation.ExcelMergeRow;
import java.io.Serializable;
import java.util.List;
/**
* 轻改其他品牌销售部数据导出 VO(含 list 行数据 + 合计/总值)
* 模板字段绑定:list.xxx = 每行一个 bean 属性;无 list 前缀 = 跨行合并展示
*/
@Data
public class LightChangeOtherBrandSalesExportVO implements Serializable {
private static final long serialVersionUID = 1L;
/** 销售部行数据列表 */
private List<LightChangeOtherBrandSalesRowVO> list;
@ExcelMergeRow(columIndex = 17)
@ExcelProperty(value = "销售成交金额")
private String salesTransactionAmount;
@ExcelMergeRow(columIndex = 18)
@ExcelProperty(value = "门店客单价")
private String merchantAvgOrderPrice;
}
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 轻改其他品牌销售部数据行 VO(每行一个销售顾问)
*/
@Data
public class LightChangeOtherBrandSalesRowVO implements Serializable {
private static final long serialVersionUID = 1L;
@ExcelProperty(value = "部门")
private String departmentName;
@ExcelProperty(value = "销售顾问")
private String salesConsultant;
@ExcelProperty(value = "今日交付数")
private Integer todayDeliveryCarCount;
@ExcelProperty(value = "今日发券数")
private Integer todayCouponCount;
@ExcelProperty(value = "今日到店数")
private Integer todayTalkCustomerCount;
@ExcelProperty(value = "今日成交数")
private Integer todayDealCount;
@ExcelProperty(value = "今日成交金额")
private BigDecimal todayTotalOutput;
@ExcelProperty(value = "今日无效到店数")
private Integer todayInvalidCustomer;
@ExcelProperty(value = "本月交付数")
private Integer monthDeliveryCarCount;
@ExcelProperty(value = "本月发券数")
private Integer monthIssueCouponCount;
@ExcelProperty(value = "本月到店数")
private Integer monthTalkCustomerCount;
@ExcelProperty(value = "本月成交数")
private Integer monthDeliveryCount;
@ExcelProperty(value = "本月成交金额")
private BigDecimal monthTotalOutput;
@ExcelProperty(value = "本月无效到店数")
private Integer monthInvalidCustomer;
@ExcelProperty(value = "本月推荐率")
private String monthRecommendRate;
@ExcelProperty(value = "本月到店率")
private String monthValidVisitRate;
@ExcelProperty(value = "本月升级率")
private String monthUpgradeRate;
}
package cn.com.glsx.dj.daily.report.dto;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
/**
* 轻改销售部数据统计导出 VO
*/
@Data
public class LightChangeSalesStatisticsVO implements Serializable {
private static final long serialVersionUID = 1L;
@ExcelProperty(value = "部门")
private String departmentName;
@ExcelProperty(value = "销售顾问")
private String salesConsultant;
@ExcelProperty(value = "今日大定数")
private Integer largeOrderCountOfToday;
@ExcelProperty(value = "今日大定触客/大定进群数")
private Integer largeOrderReachGroupCountOfToday;
@ExcelProperty(value = "今日成交金额")
private BigDecimal transactionAmountOfToday;
@ExcelProperty(value = "本月大定数")
private Integer largeOrderCountOfMonth;
@ExcelProperty(value = "本月大定触客/大定进群数")
private Integer largeOrderReachGroupCountOfMonth;
@ExcelProperty(value = "本月大定触客率")
private String largeOrderReachRateOfMonth;
@ExcelProperty(value = "本月成交金额")
private BigDecimal transactionAmountOfMonth;
@ApiModelProperty("本月客单价")
private BigDecimal averageOrderValueOfMonth;
}
...@@ -63,4 +63,9 @@ public interface DailyReportRecordRemote { ...@@ -63,4 +63,9 @@ public interface DailyReportRecordRemote {
@ApiParam(name="dailyReportRecordDTO",notes="查询条件",dataType= ApiParam.DataTypeEnum.OBJECT,required=true) @ApiParam(name="dailyReportRecordDTO",notes="查询条件",dataType= ApiParam.DataTypeEnum.OBJECT,required=true)
@ApiResponse("推送结果") @ApiResponse("推送结果")
RpcResponse<Boolean> pushDailyReportData(DailyReportRecordDTO dailyReportRecordDTO); RpcResponse<Boolean> pushDailyReportData(DailyReportRecordDTO dailyReportRecordDTO);
@ApiMethod("查询指定商户指定场景指定日期是否存在填报记录")
@ApiParam(name="dailyReportRecordDTO",notes="查询条件(merchantId/sceneType/reportDate)",dataType= ApiParam.DataTypeEnum.OBJECT,required=true)
@ApiResponse("是否存在填报记录")
RpcResponse<Boolean> hasDailyReportRecord(DailyReportRecordDTO dailyReportRecordDTO);
} }
...@@ -8,12 +8,12 @@ ...@@ -8,12 +8,12 @@
</parent> </parent>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-daily-report</artifactId> <artifactId>rpc-dj-daily-report</artifactId>
<version>5.8.4-SNAPSHOT</version> <version>5.8.5-SNAPSHOT</version>
<name>rpc-dj-daily-report</name> <name>rpc-dj-daily-report</name>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>
<skipTests>true</skipTests> <skipTests>true</skipTests>
<daily-report.api.version>5.8.4-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.5-SNAPSHOT</daily-report.api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<dependency> <dependency>
<groupId>cn.com.glsx.dj</groupId> <groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-smartcarlife-api</artifactId> <artifactId>rpc-dj-smartcarlife-api</artifactId>
<version>5.8.4-SNAPSHOT</version> <version>5.8.5-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
package cn.com.glsx.dj.daily.report.config; package cn.com.glsx.dj.daily.report.config;
import cn.com.glsx.dj.smartcarlife.remote.GoodsOrderRemote; import cn.com.glsx.dj.smartcarlife.remote.*;
import cn.com.glsx.dj.smartcarlife.remote.MerchantActionReportConfigRemote;
import cn.com.glsx.dj.smartcarlife.remote.MerchantDailyReportHuaweiRemote;
import cn.com.glsx.dj.smartcarlife.remote.ReportPushRecordRemote;
import cn.com.glsx.dj.smartcarlife.remote.SceneMerchantRefRemote;
import cn.com.glsx.dj.smartcarlife.remote.StaffDailyReportRemote;
import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory; import org.oreframework.boot.autoconfigure.dubbo.reference.ReferenceBuilderFactory;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Bean;
...@@ -72,6 +67,14 @@ public class DubboConfig { ...@@ -72,6 +67,14 @@ public class DubboConfig {
} }
@Bean @Bean
public LifeMerchantCouponRemote lifeMerchantCouponRemote(){
return factory.builder(LifeMerchantCouponRemote.class)
.check(false)
.timeout(timeout)
.build();
}
@Bean
public StaffDailyReportRemote staffDailyReportRemote(){ public StaffDailyReportRemote staffDailyReportRemote(){
return factory.builder(StaffDailyReportRemote.class) return factory.builder(StaffDailyReportRemote.class)
.check(false) .check(false)
......
package cn.com.glsx.dj.daily.report.config;
import cn.com.glsx.merchants.remote.MerchantStaffRemote;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class PlatformMerchantsDubboConfig extends DubboConfig{
@Bean
public MerchantStaffRemote merchantStaffRemote(){
return factory.builder(MerchantStaffRemote.class).timeout(timeout).check(check).version("2.0.0").build();
}
}
...@@ -5,6 +5,7 @@ import lombok.Data; ...@@ -5,6 +5,7 @@ import lombok.Data;
import lombok.NoArgsConstructor; import lombok.NoArgsConstructor;
import java.io.Serializable; import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -48,10 +49,29 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -48,10 +49,29 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
private String ecoEndDay; private String ecoEndDay;
/** 数据统计表明细行 */ /** 数据统计表明细行 */
private List<Map<String, String>> dataStatisticsRows; private List<ExtendedWarrantyLanTuDeliveryStatisticsExportVO> dataStatisticsRows;
/** 售后引荐率表明细行 */ /** 售后引荐率表明细行 */
private List<Map<String, String>> afterSaleReferralRows; private List<ExtendedWarrantyLanTuAfterSaleReferralStatisticsVO> afterSaleReferralRows;
/** 交付部统计表(延保+问界/鸿蒙) */
private List<ExtendedWarrantyDeliveryStatisticsExportVO> deliveryStatisticsRows;
/** 售后引荐率统计表(延保+问界/鸿蒙) */
private List<ExtendedWarrantyAfterSaleReferralStatisticsVO> afterSaleReferralStatisticsRows;
/** 洽谈明细(延保+问界/鸿蒙) */
private List<ExtendedWarrantyNegotiationDetailVO> negotiationDetailRows;
/** 洽谈明细(延保+岚图) */
private List<ExtendedWarrantyLanTuNegotiationDetailVO> lanTuNegotiationDetailRows;
/** 交付部统计表(延保+其他品牌) */
private List<ExtendedWarrantyOtherDeliveryStatisticsExportVO> otherDeliveryStatisticsRows;
/** 洽谈明细(延保+其他品牌) */
private List<ExtendedWarrantyOtherNegotiationDetailVO> otherNegotiationDetailRows;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
...@@ -170,6 +190,12 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -170,6 +190,12 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 其他品牌售后权益成交数-厂家权益(F2-14-10) */ /** 其他品牌售后权益成交数-厂家权益(F2-14-10) */
private Integer otherAfterSaleMfgEquityClosedCount; private Integer otherAfterSaleMfgEquityClosedCount;
/** 其他品牌今日成交金额 */
private BigDecimal otherTransactionAmountOfToday;
/** 其他品牌本月成交金额 */
private BigDecimal otherTransactionAmountOfMonth;
/** 其他品牌本月交付数量 */ /** 其他品牌本月交付数量 */
private Integer otherDeliveryCountOfMonth; private Integer otherDeliveryCountOfMonth;
...@@ -254,13 +280,13 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -254,13 +280,13 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 预计交车数量 */ /** 预计交车数量 */
private Integer expectedDeliveryCount; private Integer expectedDeliveryCount;
/** 售前交车数量 */ /** 交付数量 */
private Integer preSalesDeliveryCount; private Integer preSalesDeliveryCount;
/** 售前有效转介绍数量 */ /** 售前有效引荐数 */
private Integer preSalesValidReferralCount; private Integer preSalesValidReferralCount;
/** 售前谈客数量 */ /** 售前触客数 */
private Integer preSalesTalkCount; private Integer preSalesTalkCount;
/** 售前整车延保成交数量 */ /** 售前整车延保成交数量 */
...@@ -287,13 +313,16 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -287,13 +313,16 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 本月轮胎渗透率 */ /** 本月轮胎渗透率 */
private String tirePenetrationRateOfMonth; private String tirePenetrationRateOfMonth;
/** 本月交付客单价 */
private BigDecimal monthAvgOrderPrice;
/** 引荐率 */ /** 引荐率 */
private String preSaleReferralRate; private String preSaleReferralRate;
/** 售后进厂数量 */ /** 售后进厂数量 */
private Integer afterSaleCheckInCount; private Integer afterSaleCheckInCount;
/** 售后谈客数量 */ /** 售后触客数量 */
private Integer afterSaleTalkCount; private Integer afterSaleTalkCount;
/** 售后整车延保成交数量 */ /** 售后整车延保成交数量 */
...@@ -308,6 +337,15 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -308,6 +337,15 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 售后轮胎成交数量 */ /** 售后轮胎成交数量 */
private Integer afterSaleTireClosedCount; private Integer afterSaleTireClosedCount;
/** 售前焕新成交数量(今日) */
private Integer preSalesRenewalClosedCount;
/** 售后焕新成交数量(今日) */
private Integer afterSaleRenewalClosedCount;
/** 焕新渗透率 */
private String renewalPenetrationRateOfMonth;
/** 售前三年期成交数量(今日) */ /** 售前三年期成交数量(今日) */
private Integer preSalesThreeYearDealCount; private Integer preSalesThreeYearDealCount;
......
...@@ -127,4 +127,14 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote { ...@@ -127,4 +127,14 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote {
return RpcResponse.error(e); return RpcResponse.error(e);
} }
} }
@Override
public RpcResponse<Boolean> hasDailyReportRecord(DailyReportRecordDTO dailyReportRecordDTO) {
try{
return RpcResponse.success(dailyReportRecordService.hasDailyReportRecord(dailyReportRecordDTO));
}catch(RpcServiceException e){
log.error(e.getMessage(),e);
return RpcResponse.error(e);
}
}
} }
...@@ -26,6 +26,7 @@ import cn.com.glsx.framework.core.enums.DefaultErrorEnum; ...@@ -26,6 +26,7 @@ import cn.com.glsx.framework.core.enums.DefaultErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.core.util.RpcAssert; import cn.com.glsx.framework.core.util.RpcAssert;
import cn.com.glsx.scrm.equity.enums.DeleteFlagEnum; import cn.com.glsx.scrm.equity.enums.DeleteFlagEnum;
import cn.hutool.json.JSONUtil;
import com.github.pagehelper.Page; import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper; import com.github.pagehelper.PageHelper;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
...@@ -81,7 +82,7 @@ public class DailyReportRecordService { ...@@ -81,7 +82,7 @@ public class DailyReportRecordService {
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = RpcServiceException.class) @Transactional(propagation = Propagation.REQUIRED, rollbackFor = RpcServiceException.class)
public Boolean saveDailyReport(DailyReportRecordDTO dailyReportRecordDTO) { public Boolean saveDailyReport(DailyReportRecordDTO dailyReportRecordDTO) {
RpcAssert.assertNotNull(dailyReportRecordDTO, DefaultErrorEnum.PARAMETER_NULL, "dailyReportRecordDTO must not be null"); RpcAssert.assertNotNull(dailyReportRecordDTO, DefaultErrorEnum.PARAMETER_NULL, "dailyReportRecordDTO must not be null");
RpcAssert.assertNotNull(dailyReportRecordDTO.getTemplateType(), DefaultErrorEnum.PARAMETER_NULL, "templateType must not be null"); //RpcAssert.assertNotNull(dailyReportRecordDTO.getTemplateType(), DefaultErrorEnum.PARAMETER_NULL, "templateType must not be null");
if (!Objects.equals(DailyReportTemplateTypeEnum.DISCUSSION.getValue(), dailyReportRecordDTO.getTemplateType())){ if (!Objects.equals(DailyReportTemplateTypeEnum.DISCUSSION.getValue(), dailyReportRecordDTO.getTemplateType())){
RpcAssert.assertNotNull(dailyReportRecordDTO.getFieldDataList(), DefaultErrorEnum.PARAMETER_NULL, "fieldDataList must not be null"); RpcAssert.assertNotNull(dailyReportRecordDTO.getFieldDataList(), DefaultErrorEnum.PARAMETER_NULL, "fieldDataList must not be null");
} }
...@@ -163,7 +164,7 @@ public class DailyReportRecordService { ...@@ -163,7 +164,7 @@ public class DailyReportRecordService {
log.info("saveDailyReport 批量插入subformData成功, count={}", subformEntities.size()); log.info("saveDailyReport 批量插入subformData成功, count={}", subformEntities.size());
} }
// 数据同步逻辑(异常隔离:任一同步失败不影响主流程日报落库) /*// 数据同步逻辑(异常隔离:任一同步失败不影响主流程日报落库)
if (Objects.equals(DailyReportTemplateTypeEnum.MERCHANT_DAILY_REPORT.getValue(), templateType)) { if (Objects.equals(DailyReportTemplateTypeEnum.MERCHANT_DAILY_REPORT.getValue(), templateType)) {
try { try {
syncMerchantDailyReport(dailyReportRecordDTO); syncMerchantDailyReport(dailyReportRecordDTO);
...@@ -178,7 +179,7 @@ public class DailyReportRecordService { ...@@ -178,7 +179,7 @@ public class DailyReportRecordService {
} catch (Exception e) { } catch (Exception e) {
log.error("syncStaffDailyReport 同步异常,不影响主流程, merchantId={}", dailyReportRecordDTO.getMerchantId(), e); log.error("syncStaffDailyReport 同步异常,不影响主流程, merchantId={}", dailyReportRecordDTO.getMerchantId(), e);
} }
} }*/
return Boolean.TRUE; return Boolean.TRUE;
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
log.info("保存日报报表数据异常,异常原因:{}", e.getMessage()); log.info("保存日报报表数据异常,异常原因:{}", e.getMessage());
...@@ -1255,6 +1256,8 @@ public class DailyReportRecordService { ...@@ -1255,6 +1256,8 @@ public class DailyReportRecordService {
log.info("condition:{}", condition); log.info("condition:{}", condition);
Page<DailyReportRecordDTO> page = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(),pagination.isNeedCount()); Page<DailyReportRecordDTO> page = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(),pagination.isNeedCount());
dailyReportRecordMapper.listDailyReportOverview(condition); dailyReportRecordMapper.listDailyReportOverview(condition);
// 员工日报已废弃
if (Objects.equals(condition.getTemplateType(),DailyReportTemplateTypeEnum.STAFF_DAILY_REPORT.getValue()) && CollectionUtils.isNotEmpty(page.getResult())) { if (Objects.equals(condition.getTemplateType(),DailyReportTemplateTypeEnum.STAFF_DAILY_REPORT.getValue()) && CollectionUtils.isNotEmpty(page.getResult())) {
populateOnBreak(page.getResult(), condition); populateOnBreak(page.getResult(), condition);
} }
...@@ -1333,7 +1336,7 @@ public class DailyReportRecordService { ...@@ -1333,7 +1336,7 @@ public class DailyReportRecordService {
Example fieldExample = new Example(DailyReportFieldData.class); Example fieldExample = new Example(DailyReportFieldData.class);
fieldExample.createCriteria() fieldExample.createCriteria()
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue()) .andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue())
.andEqualTo("fieldKey", DailyReportFieldEnum.F2_2.getValue()) .andEqualTo("fieldKey", DailyReportFieldEnum.F2_101.getValue())
.andIn("reportRecordId", recordIds); .andIn("reportRecordId", recordIds);
List<DailyReportFieldData> fieldDataList = dailyReportFieldDataMapper.selectByExample(fieldExample); List<DailyReportFieldData> fieldDataList = dailyReportFieldDataMapper.selectByExample(fieldExample);
if (CollectionUtils.isEmpty(fieldDataList)) { if (CollectionUtils.isEmpty(fieldDataList)) {
...@@ -1344,7 +1347,7 @@ public class DailyReportRecordService { ...@@ -1344,7 +1347,7 @@ public class DailyReportRecordService {
.filter(fd -> StringUtils.isNotBlank(fd.getFieldValue())) .filter(fd -> StringUtils.isNotBlank(fd.getFieldValue()))
.collect(Collectors.toMap( .collect(Collectors.toMap(
DailyReportFieldData::getReportRecordId, DailyReportFieldData::getReportRecordId,
fd -> Integer.valueOf(fd.getFieldValue()), fd -> parseStaffCount(fd.getFieldValue()),
(v1, v2) -> v2)); (v1, v2) -> v2));
for (DailyReportRecordDTO dto : dtoList) { for (DailyReportRecordDTO dto : dtoList) {
...@@ -1352,6 +1355,19 @@ public class DailyReportRecordService { ...@@ -1352,6 +1355,19 @@ public class DailyReportRecordService {
} }
} }
private int parseStaffCount(String fieldValue) {
String trimmed = fieldValue == null ? "" : fieldValue.trim();
if (trimmed.isEmpty() || !trimmed.startsWith("[")) {
return 0;
}
try {
return JSONUtil.parseArray(trimmed).size();
} catch (Exception e) {
log.warn("populateStaffCount 解析员工人数失败, fieldValue:{}", fieldValue);
return 0;
}
}
/** /**
* @description: 门店日报上报 * @description: 门店日报上报
* @param: [dailyReportRecordDTO] * @param: [dailyReportRecordDTO]
...@@ -1398,6 +1414,17 @@ public class DailyReportRecordService { ...@@ -1398,6 +1414,17 @@ public class DailyReportRecordService {
} }
} }
public Boolean hasDailyReportRecord(DailyReportRecordDTO dailyReportRecordDTO) {
Example example = new Example(DailyReportRecord.class);
example.createCriteria()
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue())
.andEqualTo("merchantId", dailyReportRecordDTO.getMerchantId())
.andEqualTo("sceneType", dailyReportRecordDTO.getSceneType())
.andEqualTo("templateType", dailyReportRecordDTO.getTemplateType())
.andEqualTo("reportDate", dailyReportRecordDTO.getReportDate());
return CollectionUtils.isNotEmpty(dailyReportRecordMapper.selectByExample(example));
}
/** /**
* 华为子品牌字段映射:(个人大定触客/进群数-轻改, 个人售后触客数-轻改, 个人交付引荐数-轻改, 实际售前触客数-延保, 实际售后触客数-延保, 未触客返店人数-延保) * 华为子品牌字段映射:(个人大定触客/进群数-轻改, 个人售后触客数-轻改, 个人交付引荐数-轻改, 实际售前触客数-延保, 实际售后触客数-延保, 未触客返店人数-延保)
*/ */
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<if test="reportStatus != null"> <if test="reportStatus != null">
AND r.report_status = #{reportStatus,jdbcType=TINYINT} AND r.report_status = #{reportStatus,jdbcType=TINYINT}
</if> </if>
AND fd.field_key = 'F2-24' AND fd.field_key = 'F2-102'
<if test="reportStartDate != null and reportStartDate != ''"> <if test="reportStartDate != null and reportStartDate != ''">
AND r.report_date <![CDATA[ >= ]]> #{reportStartDate,jdbcType=CHAR} AND r.report_date <![CDATA[ >= ]]> #{reportStartDate,jdbcType=CHAR}
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!