Commit 463de9c2 by 叶立庆

Merge branch 'v5.8.3.6' into 'master'

上线合并

See merge request !3
2 parents 090d5b5f e16637dc
...@@ -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.2.1-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.3.6-SNAPSHOT</daily-report.api.version>
<smartcarlife.api.version>5.8.2.1-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.8.3.6-SNAPSHOT</smartcarlife.api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
......
...@@ -66,6 +66,9 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -66,6 +66,9 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("今日交付数量") @ApiModelProperty("今日交付数量")
private Integer todayDeliveryCount; private Integer todayDeliveryCount;
@ApiModelProperty("今日交车数")
private Integer todayDeliveryCarCount;
@ApiModelProperty("今日交付引荐数") @ApiModelProperty("今日交付引荐数")
private Integer todayDeliveryReferralCount; private Integer todayDeliveryReferralCount;
...@@ -84,6 +87,18 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -84,6 +87,18 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("今日平均客单价") @ApiModelProperty("今日平均客单价")
private BigDecimal todayAvgOrderPrice; private BigDecimal todayAvgOrderPrice;
@ApiModelProperty("今日客单价")
private BigDecimal todayOrderPrice;
@ApiModelProperty("今日到店数")
private Integer todayVisitCount;
@ApiModelProperty("今日升级数")
private Integer todayUpgradeCount;
@ApiModelProperty("今日无效到店数")
private Integer todayInvalidVisitCount;
@ApiModelProperty("本月大定数量") @ApiModelProperty("本月大定数量")
private Integer monthBookingCount; private Integer monthBookingCount;
...@@ -96,6 +111,12 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -96,6 +111,12 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("本月交付数量") @ApiModelProperty("本月交付数量")
private Integer monthDeliveryCount; private Integer monthDeliveryCount;
@ApiModelProperty("本月交车数")
private Integer monthDeliveryCarCount;
@ApiModelProperty("本月交车到店率")
private BigDecimal monthDeliveryVisitRate;
@ApiModelProperty("本月交付引荐数") @ApiModelProperty("本月交付引荐数")
private Integer monthDeliveryReferralCount; private Integer monthDeliveryReferralCount;
...@@ -137,5 +158,32 @@ public class LightChangeDailyReportData implements Serializable { ...@@ -137,5 +158,32 @@ public class LightChangeDailyReportData implements Serializable {
@ApiModelProperty("本月精品升级率") @ApiModelProperty("本月精品升级率")
private BigDecimal monthBoutiqueUpgradeRate; private BigDecimal monthBoutiqueUpgradeRate;
@ApiModelProperty("本月窗膜升级率")
private BigDecimal monthFilmUpgradeRate;
@ApiModelProperty("本月车衣升级率")
private BigDecimal monthCarCoatUpgradeRate;
@ApiModelProperty("本月到店数")
private Integer monthVisitCount;
@ApiModelProperty("本月无效到店数")
private Integer monthInvalidVisitCount;
@ApiModelProperty("本月有效触客数(有效到店数)")
private BigDecimal monthValidTouchCount;
@ApiModelProperty("本月无效到店率")
private BigDecimal monthInvalidVisitRate;
@ApiModelProperty("本月升级数")
private Integer monthUpgradeCount;
@ApiModelProperty("本月升级客单价")
private BigDecimal monthUpgradeOrderPrice;
@ApiModelProperty("本月待邀约")
private Integer monthWaitInviteCount;
} }
} }
...@@ -11,6 +11,8 @@ public enum DailyReportFieldEnum { ...@@ -11,6 +11,8 @@ public enum DailyReportFieldEnum {
F1_3("F1-3", "退单金额-延保-不限品牌"), F1_3("F1-3", "退单金额-延保-不限品牌"),
F1_4("F1-4", "备注"), F1_4("F1-4", "备注"),
F1_5("F1-5", "问界"), F1_5("F1-5", "问界"),
F1_12("F1-12", "个人大定触客/进群数-轻改-鸿蒙智行"),
F1_13("F1-13", "个人售后触客数-轻改-鸿蒙智行"),
F1_5_1("F1-5-1", "个人大定触客/进群数-轻改-问界"), F1_5_1("F1-5-1", "个人大定触客/进群数-轻改-问界"),
F1_5_2("F1-5-2", "个人售后触客数-轻改-问界"), F1_5_2("F1-5-2", "个人售后触客数-轻改-问界"),
F1_5_3("F1-5-3", "个人交付引荐数-轻改-问界"), F1_5_3("F1-5-3", "个人交付引荐数-轻改-问界"),
...@@ -52,14 +54,18 @@ public enum DailyReportFieldEnum { ...@@ -52,14 +54,18 @@ public enum DailyReportFieldEnum {
F1_10_4("F1-10-4", "实际售后触客数-延保-岚图"), F1_10_4("F1-10-4", "实际售后触客数-延保-岚图"),
F1_10_5("F1-10-5", "未触客返店人数-延保-岚图"), F1_10_5("F1-10-5", "未触客返店人数-延保-岚图"),
F1_11("F1-11", "其他品牌"), F1_11("F1-11", "其他品牌"),
F1_11_1("F1-11-1", "实际售前触客数-轻改-其他品牌"), F1_11_1("F1-11-1", "个人售前有效触客数-轻改-岚图及其他品牌"),
F1_11_2("F1-11-2", "实际售后触客数-轻改-其他品牌"), F1_11_2("F1-11-2", "个人售后触客数-轻改-岚图及其他品牌"),
F1_11_3("F1-11-3", "实际售前触客数-延保-其他品牌"), F1_11_3("F1-11-3", "实际售前触客数-延保-其他品牌"),
F1_11_4("F1-11-4", "实际售后触客数-延保-其他品牌"), F1_11_4("F1-11-4", "实际售后触客数-延保-其他品牌"),
F1_11_5("F1-11-5", "实际售前触客数-权益-其他品牌"), F1_11_5("F1-11-5", "实际售前触客数-权益-其他品牌-广联权益"),
F1_11_6("F1-11-6", "实际售后触客数-权益-其他品牌"), F1_11_6("F1-11-6", "实际售后触客数-权益-其他品牌-广联权益"),
F1_11_7("F1-11-7", "未触客返店人数-延保-其他品牌"), F1_11_7("F1-11-7", "未触客返店人数-延保-其他品牌"),
F1_11_8("F1-11-8", "未触客返店人数-权益-其他品牌"), F1_11_8("F1-11-8", "未触客返店人数-权益-其他品牌-广联权益"),
F1_11_9("F1-11-9", "个人售前无效触客数-轻改-岚图及其他品牌"),
F1_11_10("F1-11-10", "实际售前触客数-延保-其他品牌-厂家权益"),
F1_11_11("F1-11-11", "实际售后触客数-延保-其他品牌-厂家权益"),
F1_11_12("F1-11-12", "未触客返店人数-延保-其他品牌-厂家权益"),
F2_1("F2-1", "今日驻店人员"), F2_1("F2-1", "今日驻店人员"),
F2_2("F2-2", "今日驻店人数"), F2_2("F2-2", "今日驻店人数"),
F2_94("F2-94", "延保 / 权益"), F2_94("F2-94", "延保 / 权益"),
...@@ -75,6 +81,26 @@ public enum DailyReportFieldEnum { ...@@ -75,6 +81,26 @@ public enum DailyReportFieldEnum {
F2_8("F2-8", "明日预计交车数-延保及权益-其他品牌"), F2_8("F2-8", "明日预计交车数-延保及权益-其他品牌"),
F2_34("F2-34", "售前月销售目标完成率-延保-岚图"), F2_34("F2-34", "售前月销售目标完成率-延保-岚图"),
F2_35("F2-35", "售后月销售目标完成率-延保-岚图"), F2_35("F2-35", "售后月销售目标完成率-延保-岚图"),
F2_37("F2-37", "店总交付数-轻改-岚图及其他品牌"),
F2_38("F2-38", "店总交付数-延保-问界"),
F2_39("F2-39", "店总交付数-延保-享界"),
F2_40("F2-40", "店总交付数-延保-智界"),
F2_41("F2-41", "店总交付数-延保-尚界"),
F2_42("F2-42", "店总交付数-延保-尊界"),
F2_43("F2-43", "店总交付数-延保-岚图"),
F2_44("F2-44", "店总交付数-延保及权益-其他品牌"),
F2_45("F2-45", "店端总未触客数-延保-问界"),
F2_46("F2-46", "店端总未触客数-延保-享界"),
F2_47("F2-47", "店端总未触客数-延保-智界"),
F2_48("F2-48", "店端总未触客数-延保-尚界"),
F2_49("F2-49", "店端总未触客数-延保-尊界"),
F2_50("F2-50", "店端总未触客数-延保-岚图"),
F2_51("F2-51", "店端总未触客数-延保及权益-其他品牌"),
F2_52("F2-52", "店端总未触客数-轻改-问界"),
F2_53("F2-53", "店端总未触客数-轻改-享界"),
F2_54("F2-54", "店端总未触客数-轻改-智界"),
F2_55("F2-55", "店端总未触客数-轻改-尚界"),
F2_56("F2-56", "店端总未触客数-轻改-尊界"),
F2_9("F2-9", "问界鸿蒙售前数据 (延保)"), F2_9("F2-9", "问界鸿蒙售前数据 (延保)"),
F2_9_1("F2-9-1", "售前数据-延保-鸿蒙智行-交付专员"), F2_9_1("F2-9-1", "售前数据-延保-鸿蒙智行-交付专员"),
F2_9_2("F2-9-2", "售前数据-延保-鸿蒙智行-今日交车"), F2_9_2("F2-9-2", "售前数据-延保-鸿蒙智行-今日交车"),
...@@ -99,6 +125,9 @@ public enum DailyReportFieldEnum { ...@@ -99,6 +125,9 @@ public enum DailyReportFieldEnum {
F2_11_7("F2-11-7", "售前数据-权益-其他品牌-今日谈客"), F2_11_7("F2-11-7", "售前数据-权益-其他品牌-今日谈客"),
F2_11_5("F2-11-5", "售前数据-延保-其他品牌-今日成交"), F2_11_5("F2-11-5", "售前数据-延保-其他品牌-今日成交"),
F2_11_6("F2-11-6", "售前数据-权益-其他品牌-今日成交"), F2_11_6("F2-11-6", "售前数据-权益-其他品牌-今日成交"),
F2_11_9("F2-11-9", "售前数据-延保-其他品牌-今日有效转介绍-厂家权益"),
F2_11_10("F2-11-10", "售前数据-延保-其他品牌-今日谈客-厂家权益"),
F2_11_11("F2-11-11", "售前数据-延保-其他品牌-今日成交-厂家权益"),
F2_12("F2-12", "问界鸿蒙售后数据 (延保)"), F2_12("F2-12", "问界鸿蒙售后数据 (延保)"),
F2_12_1("F2-12-1", "售后数据-延保-鸿蒙智行-售后专员"), F2_12_1("F2-12-1", "售后数据-延保-鸿蒙智行-售后专员"),
F2_12_2("F2-12-2", "售后数据-延保-鸿蒙智行-今日进厂"), F2_12_2("F2-12-2", "售后数据-延保-鸿蒙智行-今日进厂"),
...@@ -123,6 +152,9 @@ public enum DailyReportFieldEnum { ...@@ -123,6 +152,9 @@ public enum DailyReportFieldEnum {
F2_14_8("F2-14-8", "售后数据-权益-其他品牌-今日有效转介绍"), F2_14_8("F2-14-8", "售后数据-权益-其他品牌-今日有效转介绍"),
F2_14_4("F2-14-4", "售后数据-权益-其他品牌-今日成交"), F2_14_4("F2-14-4", "售后数据-权益-其他品牌-今日成交"),
F2_14_5("F2-14-5", "售后数据-权益-其他品牌-今日成交"), F2_14_5("F2-14-5", "售后数据-权益-其他品牌-今日成交"),
F2_14_9("F2-14-9", "售后数据-延保-其他品牌-今日谈客-厂家权益"),
F2_14_10("F2-14-10", "售后数据-延保-其他品牌-今日成交-厂家权益"),
F2_14_12("F2-14-12", "售后数据-延保-其他品牌-今日有效转介绍-厂家权益"),
F2_93("F2-93", "轻改"), F2_93("F2-93", "轻改"),
F2_16("F2-16", "店总售后首保/维保数-轻改-鸿蒙智行"), F2_16("F2-16", "店总售后首保/维保数-轻改-鸿蒙智行"),
F2_17("F2-17", "店总售后事故车数-轻改-鸿蒙智行"), F2_17("F2-17", "店总售后事故车数-轻改-鸿蒙智行"),
...@@ -131,28 +163,42 @@ public enum DailyReportFieldEnum { ...@@ -131,28 +163,42 @@ public enum DailyReportFieldEnum {
F2_20("F2-20", "店总交付数-轻改-智界"), F2_20("F2-20", "店总交付数-轻改-智界"),
F2_21("F2-21", "店总交付数-轻改-尚界"), F2_21("F2-21", "店总交付数-轻改-尚界"),
F2_22("F2-22", "店总交付数-轻改-尊界"), F2_22("F2-22", "店总交付数-轻改-尊界"),
F2_23("F2-23", "今日店端实际发券数-轻改-其他品牌"), F2_23("F2-23", "今日店端实际发券数-轻改-岚图及其他品牌"),
F2_24("F2-24", "本月待邀约-轻改-其他品牌"), F2_24("F2-24", "本月待邀约-轻改-岚图及其他品牌"),
F2_25("F2-25", "今日流失-轻改-其他品牌"), F2_25("F2-25", "今日流失-轻改-岚图及其他品牌"),
F2_26("F2-26", "销售部数据 (轻改)"), F2_26("F2-26", "问界鸿蒙销售部数据 (轻改)"),
F2_26_1("F2-26-1", "销售部数据-轻改-不限品牌-销售顾问"), F2_26_1("F2-26-1", "销售部数据-轻改-鸿蒙智行-销售顾问"),
F2_26_2("F2-26-2", "销售部数据-轻改-不限品牌-今日大定数"), F2_26_2("F2-26-2", "销售部数据-轻改-鸿蒙智行-今日大定数"),
F2_26_3("F2-26-3", "销售部数据-轻改-不限品牌-今日大定触客进群数"), F2_26_3("F2-26-3", "销售部数据-轻改-鸿蒙智行-今日大定触客进群数"),
F2_26_4("F2-26-4", "销售部数据-轻改-不限品牌-今日成交金额"), F2_26_4("F2-26-4", "销售部数据-轻改-鸿蒙智行-今日成交金额"),
F2_27("F2-27", "交付部数据 (轻改)"), F2_27("F2-27", "问界鸿蒙交付部数据 (轻改)"),
F2_27_1("F2-27-1", "交付部数据-轻改-不限品牌-交付专员"), F2_27_1("F2-27-1", "交付部数据-轻改-鸿蒙智行-交付专员"),
F2_27_2("F2-27-2", "交付部数据-轻改-不限品牌-今日交付数"), F2_27_2("F2-27-2", "交付部数据-轻改-鸿蒙智行-今日交付数"),
F2_27_3("F2-27-3", "交付部数据-轻改-不限品牌-今日引荐数"), F2_27_3("F2-27-3", "交付部数据-轻改-鸿蒙智行-今日引荐数"),
F2_27_4("F2-27-4", "交付部数据-轻改-不限品牌-今日成交数"), F2_27_4("F2-27-4", "交付部数据-轻改-鸿蒙智行-今日成交数"),
F2_27_6("F2-27-6", "交付部数据-轻改-不限品牌今日成交金额"), F2_27_6("F2-27-6", "交付部数据-轻改-鸿蒙智行-今日成交金额"),
F2_27_5("F2-27-5", "交付部数据-轻改-不限品牌本月特殊客户"), F2_27_5("F2-27-5", "交付部数据-轻改-鸿蒙智行-本月特殊客户"),
F2_28("F2-28", "售后部数据 (轻改)"), F2_28("F2-28", "问界鸿蒙售后部数据 (轻改)"),
F2_28_1("F2-28-1", "售后部数据-轻改-不限品牌-SA"), F2_28_1("F2-28-1", "售后部数据-轻改-鸿蒙智行-SA"),
F2_28_2("F2-28-2", "售后部数据-轻改-不限品牌-今日首保数"), F2_28_2("F2-28-2", "售后部数据-轻改-鸿蒙智行-今日首保数"),
F2_28_3("F2-28-3", "售后部数据-轻改-不限品牌-今日事故车数"), F2_28_3("F2-28-3", "售后部数据-轻改-鸿蒙智行-今日事故车数"),
F2_28_4("F2-28-4", "售后部数据-轻改-不限品牌-今日触客数"), F2_28_4("F2-28-4", "售后部数据-轻改-鸿蒙智行-今日触客数"),
F2_28_5("F2-28-5", "售后部数据-轻改-不限品牌-今日升级数"), F2_28_5("F2-28-5", "售后部数据-轻改-鸿蒙智行-今日升级数"),
F2_28_6("F2-28-6", "售后部数据-轻改-不限品牌-今日总产值"), F2_28_6("F2-28-6", "售后部数据-轻改-鸿蒙智行-今日总产值"),
F2_57("F2-57", "其他品牌销售部数据 (轻改)"),
F2_57_1("F2-57-1", "销售部数据-轻改-岚图及其他品牌-销售顾问"),
F2_57_2("F2-57-2", "销售部数据-轻改-岚图及其他品牌-今日交车数"),
F2_57_3("F2-57-3", "销售部数据-轻改-岚图及其他品牌-今日发券数"),
F2_57_4("F2-57-4", "销售部数据-轻改-岚图及其他品牌-今日谈客数"),
F2_57_5("F2-57-5", "销售部数据-轻改-岚图及其他品牌-今日成交数"),
F2_57_6("F2-57-6", "销售部数据-轻改-岚图及其他品牌-今日成交金额"),
F2_57_7("F2-57-7", "销售部数据-轻改-岚图及其他品牌-本月无效客户"),
F2_57_8("F2-57-8", "销售部数据-轻改-岚图及其他品牌-今日无效客户"),
F2_58("F2-58", "其他品牌售后部数据 (轻改)"),
F2_58_1("F2-58-1", "售后部数据-轻改-岚图及其他品牌-SA"),
F2_58_2("F2-58-2", "售后部数据-轻改-岚图及其他品牌-今日谈客数"),
F2_58_3("F2-58-3", "售后部数据-轻改-岚图及其他品牌-今日成交数"),
F2_58_4("F2-58-4", "售后部数据-轻改-岚图及其他品牌-今日成交金额"),
F3_1("F3-1", "岚图洽谈明细 (延保)"), F3_1("F3-1", "岚图洽谈明细 (延保)"),
F3_1_1("F3-1-1", "洽谈明细-延保-岚图-交车日期"), F3_1_1("F3-1-1", "洽谈明细-延保-岚图-交车日期"),
F3_1_2("F3-1-2", "洽谈明细-延保-岚图-部门"), F3_1_2("F3-1-2", "洽谈明细-延保-岚图-部门"),
......
...@@ -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.2.1-SNAPSHOT</version> <version>5.8.3.6-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.2.1-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.3.6-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.2.1-SNAPSHOT</version> <version>5.8.3.6-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -35,6 +35,18 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -35,6 +35,18 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 本月数据汇总 */ /** 本月数据汇总 */
private DailyReportSummary monthSummary; private DailyReportSummary monthSummary;
/** 生态数据汇总(上月26日至当日) */
private DailyReportSummary ecoMonthSummary;
/** 生态数据起始月份 */
private String ecoStartMonth;
/** 生态数据结束月份 */
private String ecoEndMonth;
/** 生态数据结束日 */
private String ecoEndDay;
/** 数据统计表明细行 */ /** 数据统计表明细行 */
private List<Map<String, String>> dataStatisticsRows; private List<Map<String, String>> dataStatisticsRows;
...@@ -129,6 +141,35 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -129,6 +141,35 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 其他品牌售后权益成交数量 */ /** 其他品牌售后权益成交数量 */
private Integer otherAfterSaleEquityClosedCount; private Integer otherAfterSaleEquityClosedCount;
/** 其他品牌售前延保有效转介绍数(F2-11-3) */
private Integer otherPreSalesWarrantyValidReferralCount;
/** 其他品牌售前权益有效转介绍数-广联权益(F2-11-8) */
private Integer otherPreSalesGLEquityValidReferralCount;
/** 其他品牌售前权益有效转介绍数-厂家权益(F2-11-9) */
private Integer otherPreSalesMfgEquityValidReferralCount;
/** 其他品牌售前延保谈客数(F2-11-4) */
private Integer otherPreSalesWarrantyTalkCount;
/** 其他品牌售前权益谈客数-广联权益(F2-11-7) */
private Integer otherPreSalesGLEquityTalkCount;
/** 其他品牌售前权益谈客数-厂家权益(F2-11-10) */
private Integer otherPreSalesMfgEquityTalkCount;
/** 其他品牌售前权益成交数-厂家权益(F2-11-11) */
private Integer otherPreSalesMfgEquityClosedCount;
/** 其他品牌售后延保有效转介绍数(F2-14-7) */
private Integer otherAfterSaleWarrantyValidReferralCount;
/** 其他品牌售后权益有效转介绍数-广联权益(F2-14-8) */
private Integer otherAfterSaleGLEquityValidReferralCount;
/** 其他品牌售后权益有效转介绍数-厂家权益(F2-14-12) */
private Integer otherAfterSaleMfgEquityValidReferralCount;
/** 其他品牌售后延保谈客数(F2-14-3) */
private Integer otherAfterSaleWarrantyTalkCount;
/** 其他品牌售后权益谈客数-广联权益(F2-14-6) */
private Integer otherAfterSaleGLEquityTalkCount;
/** 其他品牌售后权益谈客数-厂家权益(F2-14-9) */
private Integer otherAfterSaleMfgEquityTalkCount;
/** 其他品牌售后权益成交数-厂家权益(F2-14-10) */
private Integer otherAfterSaleMfgEquityClosedCount;
/** 其他品牌本月交付数量 */ /** 其他品牌本月交付数量 */
private Integer otherDeliveryCountOfMonth; private Integer otherDeliveryCountOfMonth;
...@@ -153,6 +194,33 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -153,6 +194,33 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 其他品牌本月售后权益成交数量 */ /** 其他品牌本月售后权益成交数量 */
private Integer otherAfterSaleEquityClosedCountOfMonth; private Integer otherAfterSaleEquityClosedCountOfMonth;
/** 其他品牌本月售前延保有效转介绍数 */
private Integer otherPreSalesWarrantyValidReferralCountOfMonth;
/** 其他品牌本月售前权益有效转介绍数-广联权益 */
private Integer otherPreSalesGLEquityValidReferralCountOfMonth;
/** 其他品牌本月售前权益有效转介绍数-厂家权益 */
private Integer otherPreSalesMfgEquityValidReferralCountOfMonth;
/** 其他品牌本月售前权益成交数-厂家权益 */
private Integer otherPreSalesMfgEquityClosedCountOfMonth;
/** 其他品牌本月售后延保有效转介绍数 */
private Integer otherAfterSaleWarrantyValidReferralCountOfMonth;
/** 其他品牌本月售后权益有效转介绍数-广联权益 */
private Integer otherAfterSaleGLEquityValidReferralCountOfMonth;
/** 其他品牌本月售后权益有效转介绍数-厂家权益 */
private Integer otherAfterSaleMfgEquityValidReferralCountOfMonth;
/** 其他品牌本月售后权益成交数-厂家权益 */
private Integer otherAfterSaleMfgEquityClosedCountOfMonth;
/** 其他品牌本月售前权益谈客数-广联权益 */
private Integer otherPreSalesGLEquityTalkCountOfMonth;
/** 其他品牌本月售前权益谈客数-厂家权益 */
private Integer otherPreSalesMfgEquityTalkCountOfMonth;
/** 其他品牌本月售后延保谈客数 */
private Integer otherAfterSaleWarrantyTalkCountOfMonth;
/** 其他品牌本月售后权益谈客数-广联权益 */
private Integer otherAfterSaleGLEquityTalkCountOfMonth;
/** 其他品牌本月售后权益谈客数-厂家权益 */
private Integer otherAfterSaleMfgEquityTalkCountOfMonth;
/** 其他品牌本月售前谈客数量 */ /** 其他品牌本月售前谈客数量 */
private Integer otherTalkCountOfMonth; private Integer otherTalkCountOfMonth;
...@@ -219,6 +287,9 @@ public class ExtendedWarrantyDailyReportData implements Serializable { ...@@ -219,6 +287,9 @@ public class ExtendedWarrantyDailyReportData implements Serializable {
/** 本月轮胎渗透率 */ /** 本月轮胎渗透率 */
private String tirePenetrationRateOfMonth; private String tirePenetrationRateOfMonth;
/** 引荐率 */
private String preSaleReferralRate;
/** 售后进厂数量 */ /** 售后进厂数量 */
private Integer afterSaleCheckInCount; private Integer afterSaleCheckInCount;
......
...@@ -24,6 +24,7 @@ import java.nio.file.Files; ...@@ -24,6 +24,7 @@ import java.nio.file.Files;
import java.nio.file.Path; import java.nio.file.Path;
import java.nio.file.Paths; import java.nio.file.Paths;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
import java.util.Arrays;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
...@@ -42,8 +43,11 @@ public class DailyReportExcelService { ...@@ -42,8 +43,11 @@ public class DailyReportExcelService {
private static final String DELIVERY_TEMPLATE = "轻改-交付部数据统计表.xlsx"; private static final String DELIVERY_TEMPLATE = "轻改-交付部数据统计表.xlsx";
private static final String AFTER_SALE_TEMPLATE = "轻改-售后部数据统计表.xlsx"; private static final String AFTER_SALE_TEMPLATE = "轻改-售后部数据统计表.xlsx";
private static final String NEGOTIATION_TEMPLATE = "轻改-洽谈明细表.xlsx"; private static final String NEGOTIATION_TEMPLATE = "轻改-洽谈明细表.xlsx";
private static final String OTHER_BRAND_SALES_TEMPLATE = "轻改-其他品牌销售部数据统计表.xlsx";
private static final String OTHER_BRAND_AFTER_SALE_TEMPLATE = "轻改-其他品牌售后部数据统计表.xlsx";
private static final int DATA_START_ROW_INDEX = 2; private static final int DATA_START_ROW_INDEX = 2;
private static final Map<String, List<Integer>> MERGE_COLUMN_INDEXES_BY_SECTION = buildMergeColumnIndexesBySection(); private static final Map<String, List<Integer>> MERGE_COLUMN_INDEXES_BY_SECTION = buildMergeColumnIndexesBySection();
private static final Map<String, List<Integer>> MERGED_ITEM_COLUMNS = buildMergedItemColumns();
@Resource @Resource
private Environment env; private Environment env;
...@@ -80,6 +84,28 @@ public class DailyReportExcelService { ...@@ -80,6 +84,28 @@ public class DailyReportExcelService {
}, "light-change-after-sale"); }, "light-change-after-sale");
} }
public String fillOtherBrandSalesExcelAndGetOssUrl(LightChangeDailyReportData data) {
return buildExcelOssUrl(data, OTHER_BRAND_SALES_TEMPLATE, "销售部", new String[]{
"departmentName", "list_salesConsultant", "list_todayDeliveryCarCount",
"list_todayCouponCount", "list_todayTalkCustomerCount", "list_todayDealCount",
"list_todayTotalOutput", "list_todayInvalidCustomer",
"list_monthDeliveryCarCount", "list_monthIssueCouponCount",
"list_monthTalkCustomerCount", "list_monthDeliveryCount",
"list_monthTotalOutput", "list_monthInvalidCustomer",
"list_monthRecommendRate", "list_monthValidVisitRate",
"list_monthUpgradeRate", "salesTransactionAmount", "merchantAvgOrderPrice"
}, "light-change-other-sales");
}
public String fillOtherBrandAfterSaleExcelAndGetOssUrl(LightChangeDailyReportData data) {
return buildExcelOssUrl(data, OTHER_BRAND_AFTER_SALE_TEMPLATE, "售后部", new String[]{
"departmentName", "list_sa", "list_todayTalkCustomerCount",
"list_todayDealCount", "list_todayTotalOutput",
"list_monthTalkCustomerCount", "list_monthDeliveryCount",
"list_monthTotalOutput", "afterSalesTransactionAmount"
}, "light-change-other-after-sale");
}
public String fillNegotiationExcelAndGetOssUrl(LightChangeDailyReportData data) { public String fillNegotiationExcelAndGetOssUrl(LightChangeDailyReportData data) {
return buildExcelOssUrl(data, NEGOTIATION_TEMPLATE, "洽谈明细", new String[]{ return buildExcelOssUrl(data, NEGOTIATION_TEMPLATE, "洽谈明细", new String[]{
"negotiationDate", "storeSales", "departmentName", "sa", "customerName", "phone", "negotiationDate", "storeSales", "departmentName", "sa", "customerName", "phone",
...@@ -149,6 +175,8 @@ public class DailyReportExcelService { ...@@ -149,6 +175,8 @@ public class DailyReportExcelService {
fillRows(sheet, rows, columnKeys); fillRows(sheet, rows, columnKeys);
mergeColumnsIfNeeded(sheet, sectionName, rows.size()); mergeColumnsIfNeeded(sheet, sectionName, rows.size());
appendSubtotalRow(sheet, sectionName, rows, columnKeys); appendSubtotalRow(sheet, sectionName, rows, columnKeys);
DailyReportExcelMergeUtil.mergeColumns(sheet, DATA_START_ROW_INDEX, rows.size() + 1,
MERGED_ITEM_COLUMNS.getOrDefault(templateName, Collections.emptyList()));
try (FileOutputStream outputStream = new FileOutputStream(targetFile)) { try (FileOutputStream outputStream = new FileOutputStream(targetFile)) {
workbook.write(outputStream); workbook.write(outputStream);
} }
...@@ -209,10 +237,16 @@ public class DailyReportExcelService { ...@@ -209,10 +237,16 @@ public class DailyReportExcelService {
private Map<String, String> buildSubtotalRow(String sectionName, List<Map<String, String>> rows) { private Map<String, String> buildSubtotalRow(String sectionName, List<Map<String, String>> rows) {
switch (sectionName) { switch (sectionName) {
case "销售部": case "销售部":
if (CollectionUtils.isNotEmpty(rows) && rows.get(0).containsKey("list_todayDeliveryCarCount")) {
return buildOtherBrandSalesSubtotalRow(rows);
}
return buildSalesSubtotalRow(rows); return buildSalesSubtotalRow(rows);
case "交付部": case "交付部":
return buildDeliverySubtotalRow(rows); return buildDeliverySubtotalRow(rows);
case "售后部": case "售后部":
if (CollectionUtils.isNotEmpty(rows) && rows.get(0).containsKey("list_todayTalkCustomerCount")) {
return buildOtherBrandAfterSaleSubtotalRow(rows);
}
return buildAfterSaleSubtotalRow(rows); return buildAfterSaleSubtotalRow(rows);
default: default:
return Collections.emptyMap(); return Collections.emptyMap();
...@@ -221,7 +255,7 @@ public class DailyReportExcelService { ...@@ -221,7 +255,7 @@ public class DailyReportExcelService {
private Map<String, String> buildSalesSubtotalRow(List<Map<String, String>> rows) { private Map<String, String> buildSalesSubtotalRow(List<Map<String, String>> rows) {
Map<String, String> row = new LinkedHashMap<>(); Map<String, String> row = new LinkedHashMap<>();
row.put("departmentName", "销售小计"); row.put("departmentName", "合计");
row.put("list_salesConsultant", ""); row.put("list_salesConsultant", "");
row.put("list_largeOrderCountOfToday", sumIntText(rows, "list_largeOrderCountOfToday")); row.put("list_largeOrderCountOfToday", sumIntText(rows, "list_largeOrderCountOfToday"));
row.put("list_largeOrderReachGroupCountOfToday", sumIntText(rows, "list_largeOrderReachGroupCountOfToday")); row.put("list_largeOrderReachGroupCountOfToday", sumIntText(rows, "list_largeOrderReachGroupCountOfToday"));
...@@ -239,7 +273,7 @@ public class DailyReportExcelService { ...@@ -239,7 +273,7 @@ public class DailyReportExcelService {
private Map<String, String> buildDeliverySubtotalRow(List<Map<String, String>> rows) { private Map<String, String> buildDeliverySubtotalRow(List<Map<String, String>> rows) {
Map<String, String> row = new LinkedHashMap<>(); Map<String, String> row = new LinkedHashMap<>();
row.put("departmentName", "交付小计"); row.put("departmentName", "合计");
row.put("list_deliverySpecialist", ""); row.put("list_deliverySpecialist", "");
row.put("list_deliverieCountOfToday", sumIntText(rows, "list_deliverieCountOfToday")); row.put("list_deliverieCountOfToday", sumIntText(rows, "list_deliverieCountOfToday"));
row.put("list_referralCountOfToday", sumIntText(rows, "list_referralCountOfToday")); row.put("list_referralCountOfToday", sumIntText(rows, "list_referralCountOfToday"));
...@@ -261,7 +295,7 @@ public class DailyReportExcelService { ...@@ -261,7 +295,7 @@ public class DailyReportExcelService {
private Map<String, String> buildAfterSaleSubtotalRow(List<Map<String, String>> rows) { private Map<String, String> buildAfterSaleSubtotalRow(List<Map<String, String>> rows) {
Map<String, String> row = new LinkedHashMap<>(); Map<String, String> row = new LinkedHashMap<>();
row.put("departmentName", "售后小计"); row.put("departmentName", "合计");
row.put("list_sa", ""); row.put("list_sa", "");
row.put("list_firstMaintenanceCountOfToday", sumIntText(rows, "list_firstMaintenanceCountOfToday")); row.put("list_firstMaintenanceCountOfToday", sumIntText(rows, "list_firstMaintenanceCountOfToday"));
row.put("list_accidentVehicleCountOfToday", sumIntText(rows, "list_accidentVehicleCountOfToday")); row.put("list_accidentVehicleCountOfToday", sumIntText(rows, "list_accidentVehicleCountOfToday"));
...@@ -282,6 +316,51 @@ public class DailyReportExcelService { ...@@ -282,6 +316,51 @@ public class DailyReportExcelService {
return row; return row;
} }
private Map<String, String> buildOtherBrandSalesSubtotalRow(List<Map<String, String>> rows) {
Map<String, String> row = new LinkedHashMap<>();
row.put("departmentName", "合计");
row.put("list_salesConsultant", "");
row.put("list_todayDeliveryCarCount", sumIntText(rows, "list_todayDeliveryCarCount"));
row.put("list_todayCouponCount", sumIntText(rows, "list_todayCouponCount"));
row.put("list_todayTalkCustomerCount", sumIntText(rows, "list_todayTalkCustomerCount"));
row.put("list_todayDealCount", sumIntText(rows, "list_todayDealCount"));
row.put("list_todayTotalOutput", sumAmountText(rows, "list_todayTotalOutput"));
row.put("list_todayInvalidCustomer", sumIntText(rows, "list_todayInvalidCustomer"));
BigDecimal monthCarCount = sumDecimal(rows, "list_monthDeliveryCarCount");
BigDecimal monthCouponCount = sumDecimal(rows, "list_monthIssueCouponCount");
BigDecimal monthTalkCount = sumDecimal(rows, "list_monthTalkCustomerCount");
BigDecimal monthDealCount = sumDecimal(rows, "list_monthDeliveryCount");
BigDecimal monthTotalOutput = sumDecimal(rows, "list_monthTotalOutput");
BigDecimal monthInvalidCustomer = sumDecimal(rows, "list_monthInvalidCustomer");
row.put("list_monthDeliveryCarCount", formatDecimal(monthCarCount));
row.put("list_monthIssueCouponCount", formatDecimal(monthCouponCount));
row.put("list_monthTalkCustomerCount", formatDecimal(monthTalkCount));
row.put("list_monthDeliveryCount", formatDecimal(monthDealCount));
row.put("list_monthTotalOutput", formatAmount(monthTotalOutput));
row.put("list_monthInvalidCustomer", formatDecimal(monthInvalidCustomer));
row.put("list_monthRecommendRate", formatPercent(buildRate(monthCouponCount, monthCarCount)));
row.put("list_monthValidVisitRate", formatPercent(buildRate(monthTalkCount, monthCarCount)));
row.put("list_monthUpgradeRate", formatPercent(buildRate(monthDealCount, monthTalkCount)));
row.put("salesTransactionAmount", "");
row.put("merchantAvgOrderPrice", "");
return row;
}
private Map<String, String> buildOtherBrandAfterSaleSubtotalRow(List<Map<String, String>> rows) {
Map<String, String> row = new LinkedHashMap<>();
row.put("departmentName", "合计");
row.put("list_sa", "");
row.put("list_todayTalkCustomerCount", sumIntText(rows, "list_todayTalkCustomerCount"));
row.put("list_todayDealCount", sumIntText(rows, "list_todayDealCount"));
row.put("list_todayTotalOutput", sumAmountText(rows, "list_todayTotalOutput"));
row.put("list_monthTalkCustomerCount", sumIntText(rows, "list_monthTalkCustomerCount"));
row.put("list_monthDeliveryCount", sumIntText(rows, "list_monthDeliveryCount"));
BigDecimal monthTotalOutput = sumDecimal(rows, "list_monthTotalOutput");
row.put("list_monthTotalOutput", formatAmount(monthTotalOutput));
row.put("afterSalesTransactionAmount", formatAmount(monthTotalOutput));
return row;
}
private void writeRow(Sheet sheet, int rowIndex, Row templateRow, Map<String, String> rowData, String[] columnKeys) { private void writeRow(Sheet sheet, int rowIndex, Row templateRow, Map<String, String> rowData, String[] columnKeys) {
if (sheet == null || templateRow == null || rowData == null || columnKeys == null) { if (sheet == null || templateRow == null || rowData == null || columnKeys == null) {
return; return;
...@@ -456,4 +535,11 @@ public class DailyReportExcelService { ...@@ -456,4 +535,11 @@ public class DailyReportExcelService {
mergeColumnIndexesBySection.put("洽谈明细", Collections.emptyList()); mergeColumnIndexesBySection.put("洽谈明细", Collections.emptyList());
return mergeColumnIndexesBySection; return mergeColumnIndexesBySection;
} }
private static Map<String, List<Integer>> buildMergedItemColumns() {
Map<String, List<Integer>> mergedItemColumns = new HashMap<>(2);
mergedItemColumns.put(OTHER_BRAND_SALES_TEMPLATE, Arrays.asList(17, 18));
mergedItemColumns.put(OTHER_BRAND_AFTER_SALE_TEMPLATE, Collections.singletonList(8));
return mergedItemColumns;
}
} }
...@@ -34,13 +34,7 @@ public final class ExcelLongTextLayoutUtil { ...@@ -34,13 +34,7 @@ public final class ExcelLongTextLayoutUtil {
return; return;
} }
float baseHeight = templateRow.getHeightInPoints(); float singleLineHeight = resolveSingleLineHeight(row, templateRow, columnKeys);
if (baseHeight <= 0) {
baseHeight = row.getHeightInPoints();
}
if (baseHeight <= 0) {
baseHeight = DEFAULT_ROW_HEIGHT_IN_POINTS;
}
int maxLines = 1; int maxLines = 1;
for (int columnIndex = 0; columnIndex < columnKeys.length; columnIndex++) { for (int columnIndex = 0; columnIndex < columnKeys.length; columnIndex++) {
...@@ -55,7 +49,10 @@ public final class ExcelLongTextLayoutUtil { ...@@ -55,7 +49,10 @@ public final class ExcelLongTextLayoutUtil {
CellStyle style = cell.getCellStyle(); CellStyle style = cell.getCellStyle();
if (style != null && !style.getWrapText()) { if (style != null && !style.getWrapText()) {
style.setWrapText(true); CellStyle wrappedStyle = sheet.getWorkbook().createCellStyle();
wrappedStyle.cloneStyleFrom(style);
wrappedStyle.setWrapText(true);
cell.setCellStyle(wrappedStyle);
} }
int lineCount = estimateLineCount(sheet, cell, columnIndex, value); int lineCount = estimateLineCount(sheet, cell, columnIndex, value);
...@@ -64,13 +61,27 @@ public final class ExcelLongTextLayoutUtil { ...@@ -64,13 +61,27 @@ public final class ExcelLongTextLayoutUtil {
} }
} }
float targetHeight = maxLines <= 1 ? baseHeight : baseHeight * maxLines; float targetHeight = singleLineHeight * maxLines;
if (targetHeight > MAX_ROW_HEIGHT_IN_POINTS) { if (targetHeight > MAX_ROW_HEIGHT_IN_POINTS) {
targetHeight = MAX_ROW_HEIGHT_IN_POINTS; targetHeight = MAX_ROW_HEIGHT_IN_POINTS;
} }
row.setHeightInPoints(targetHeight); row.setHeightInPoints(targetHeight);
} }
private static float resolveSingleLineHeight(Row row, Row templateRow, String[] columnKeys) {
for (int i = 0; i < columnKeys.length; i++) {
Cell cell = row.getCell(i);
if (cell != null && cell.getCellStyle() != null) {
Font font = row.getSheet().getWorkbook().getFontAt(cell.getCellStyle().getFontIndexAsInt());
if (font != null) {
return Math.max(font.getFontHeightInPoints() * 1.35f, DEFAULT_ROW_HEIGHT_IN_POINTS);
}
}
}
float h = templateRow.getHeightInPoints();
return h > 0 ? h : DEFAULT_ROW_HEIGHT_IN_POINTS;
}
private static int estimateLineCount(Sheet sheet, Cell cell, int columnIndex, String value) { private static int estimateLineCount(Sheet sheet, Cell cell, int columnIndex, String value) {
if (StringUtils.isBlank(value)) { if (StringUtils.isBlank(value)) {
return 1; return 1;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!