Commit 090d5b5f by 叶立庆

Merge branch 'v5.8.2.1' into 'master'

上线合并

See merge request !2
2 parents 74063a85 5213d19c
...@@ -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-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.2.1-SNAPSHOT</daily-report.api.version>
<smartcarlife.api.version>5.8.2-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.8.2.1-SNAPSHOT</smartcarlife.api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
......
package cn.com.glsx.dj.daily.report.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* @ClassName DailyReportCarBrandDTO
* @Description 动态日报品牌信息数据
* @Author lqWang
* @Date 2026/6/13 11:56
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DailyReportCarBrandDTO implements Serializable {
private static final long serialVersionUID = 1963019004791776922L;
@ApiModelProperty(notes = "一级品牌id")
private Integer firstBrandId;
@ApiModelProperty(notes = "一级品牌名称")
private String firstBrandName;
@ApiModelProperty(notes = "二级品牌id")
private Integer brandId;
@ApiModelProperty(notes = "二级品牌名称")
private String brandName;
@ApiModelProperty(notes = "品牌类型:0-鸿蒙智行问界品牌,1-鸿蒙智行非问界品牌(废弃),2-其他品牌,3-智界,4-享界,5-尊界,6-尚界")
private Integer brandType;
}
...@@ -35,6 +35,9 @@ public class DailyReportRecordDTO extends DailyReportRecord implements Serializa ...@@ -35,6 +35,9 @@ public class DailyReportRecordDTO extends DailyReportRecord implements Serializa
@ApiModelProperty(name = "subformDataList", notes = "子表单数据列表") @ApiModelProperty(name = "subformDataList", notes = "子表单数据列表")
private List<DailyReportSubformDataDTO> subformDataList; private List<DailyReportSubformDataDTO> subformDataList;
@ApiModelProperty(name = "carBrandList", notes = "门店主营品牌列表")
private List<DailyReportCarBrandDTO> carBrandList;
@ApiModelProperty(notes = "本月待邀约数(F2-24字段值)") @ApiModelProperty(notes = "本月待邀约数(F2-24字段值)")
private Integer pendingCount; private Integer pendingCount;
} }
...@@ -53,11 +53,11 @@ public class DailyReportRecord implements Serializable { ...@@ -53,11 +53,11 @@ public class DailyReportRecord implements Serializable {
@Column(name = "yq_merchant_name") @Column(name = "yq_merchant_name")
private String yqMerchantName; private String yqMerchantName;
// /** /**
// * 大业务场景:0=会员权益,1=精品升级 * 大业务场景:0=会员权益,1=精品升级
// */ */
// @Column(name = "scene_type") @Column(name = "scene_type")
// private Byte sceneType; private Byte sceneType;
/** /**
* 模板类型:1=驻店日报,2=门店日报,3=洽谈明细 * 模板类型:1=驻店日报,2=门店日报,3=洽谈明细
......
...@@ -51,5 +51,5 @@ public interface DailyReportRecordRemote { ...@@ -51,5 +51,5 @@ public interface DailyReportRecordRemote {
@ApiMethod("推送送消息") @ApiMethod("推送送消息")
@ApiParam(name="pushDailyReport",notes="查询条件",dataType= ApiParam.DataTypeEnum.INTEGER,required=true) @ApiParam(name="pushDailyReport",notes="查询条件",dataType= ApiParam.DataTypeEnum.INTEGER,required=true)
@ApiResponse("返回本月待邀约数") @ApiResponse("返回本月待邀约数")
RpcResponse<Integer> pushDailyReport(Integer merchantId); RpcResponse<Integer> pushDailyReport(Integer merchantId, Byte sceneType);
} }
...@@ -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-SNAPSHOT</version> <version>5.8.2.1-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-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.2.1-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-SNAPSHOT</version> <version>5.8.2.1-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -93,9 +93,9 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote { ...@@ -93,9 +93,9 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote {
} }
@Override @Override
public RpcResponse<Integer> pushDailyReport(Integer merchantId) { public RpcResponse<Integer> pushDailyReport(Integer merchantId, Byte sceneType) {
try{ try{
dailyReportPushService.pushDailyReport(merchantId); dailyReportPushService.pushDailyReport(merchantId, sceneType);
return RpcResponse.success(1); return RpcResponse.success(1);
}catch(RpcServiceException e){ }catch(RpcServiceException e){
log.error(e.getMessage(),e); log.error(e.getMessage(),e);
......
...@@ -63,12 +63,15 @@ public class DailyReportPushService { ...@@ -63,12 +63,15 @@ public class DailyReportPushService {
private ExcelUtils excelUtils; private ExcelUtils excelUtils;
public void pushDailyReport(Integer merchantId) { public void pushDailyReport(Integer merchantId, Byte sceneType) {
log.info("pushDailyReport start, merchantId:{}", merchantId); log.info("pushDailyReport start, merchantId:{}, sceneType:{}", merchantId, sceneType);
pushLightChangeDailyReport(merchantId); if(Objects.equals(sceneType,SceneTypeEnum.SCENE1_1.getValue())){
pushExtendedWarrantyWjDailyReport(merchantId); pushLightChangeDailyReport(merchantId);
pushExtendedWarrantyLanTuDailyReport(merchantId); } else if (Objects.equals(sceneType,SceneTypeEnum.SCENE1_0.getValue())) {
pushExtendedWarrantyOtherDailyReport(merchantId); pushExtendedWarrantyWjDailyReport(merchantId);
pushExtendedWarrantyLanTuDailyReport(merchantId);
pushExtendedWarrantyOtherDailyReport(merchantId);
}
} }
public void pushLightChangeDailyReport(Integer merchantId) { public void pushLightChangeDailyReport(Integer merchantId) {
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
<result column="merchant_name" property="merchantName" jdbcType="VARCHAR" /> <result column="merchant_name" property="merchantName" jdbcType="VARCHAR" />
<result column="yq_merchant_id" property="yqMerchantId" jdbcType="INTEGER" /> <result column="yq_merchant_id" property="yqMerchantId" jdbcType="INTEGER" />
<result column="yq_merchant_name" property="yqMerchantName" jdbcType="VARCHAR" /> <result column="yq_merchant_name" property="yqMerchantName" jdbcType="VARCHAR" />
<result column="scene_type" property="sceneType" jdbcType="TINYINT" />
<result column="template_type" property="templateType" jdbcType="TINYINT" /> <result column="template_type" property="templateType" jdbcType="TINYINT" />
<result column="staff_uuid" property="staffUuid" jdbcType="VARCHAR" /> <result column="staff_uuid" property="staffUuid" jdbcType="VARCHAR" />
<result column="staff_name" property="staffName" jdbcType="VARCHAR" /> <result column="staff_name" property="staffName" jdbcType="VARCHAR" />
...@@ -37,7 +38,7 @@ ...@@ -37,7 +38,7 @@
<!-- <!--
WARNING - @mbg.generated WARNING - @mbg.generated
--> -->
id, report_template_id, merchant_id, merchant_name, yq_merchant_id, yq_merchant_name, id, report_template_id, merchant_id, merchant_name, yq_merchant_id, yq_merchant_name, scene_type,
template_type, staff_uuid, staff_name, report_date, daily_report_source, json_content, report_status, template_type, staff_uuid, staff_name, report_date, daily_report_source, json_content, report_status,
created_by, created_date, updated_by, updated_date, deleted_flag created_by, created_date, updated_by, updated_date, deleted_flag
</sql> </sql>
...@@ -60,6 +61,9 @@ ...@@ -60,6 +61,9 @@
<if test="yqMerchantId != null"> <if test="yqMerchantId != null">
and yq_merchant_id = #{yqMerchantId,jdbcType=INTEGER} and yq_merchant_id = #{yqMerchantId,jdbcType=INTEGER}
</if> </if>
<if test="sceneType != null">
and scene_type = #{sceneType,jdbcType=TINYINT}
</if>
<if test="staffUuid != null and staffUuid != ''"> <if test="staffUuid != null and staffUuid != ''">
and staff_uuid = #{staffUuid,jdbcType=VARCHAR} and staff_uuid = #{staffUuid,jdbcType=VARCHAR}
</if> </if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!