Commit 090d5b5f by 叶立庆

Merge branch 'v5.8.2.1' into 'master'

上线合并

See merge request !2
2 parents 74063a85 5213d19c
......@@ -12,8 +12,8 @@
<name>rpc-dj-daily-report-api</name>
<properties>
<deploy.scanPackage>cn.com.glsx.dj.daily.report.remote</deploy.scanPackage>
<daily-report.api.version>5.8.2-SNAPSHOT</daily-report.api.version>
<smartcarlife.api.version>5.8.2-SNAPSHOT</smartcarlife.api.version>
<daily-report.api.version>5.8.2.1-SNAPSHOT</daily-report.api.version>
<smartcarlife.api.version>5.8.2.1-SNAPSHOT</smartcarlife.api.version>
</properties>
<dependencies>
<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
@ApiModelProperty(name = "subformDataList", notes = "子表单数据列表")
private List<DailyReportSubformDataDTO> subformDataList;
@ApiModelProperty(name = "carBrandList", notes = "门店主营品牌列表")
private List<DailyReportCarBrandDTO> carBrandList;
@ApiModelProperty(notes = "本月待邀约数(F2-24字段值)")
private Integer pendingCount;
}
......@@ -53,11 +53,11 @@ public class DailyReportRecord implements Serializable {
@Column(name = "yq_merchant_name")
private String yqMerchantName;
// /**
// * 大业务场景:0=会员权益,1=精品升级
// */
// @Column(name = "scene_type")
// private Byte sceneType;
/**
* 大业务场景:0=会员权益,1=精品升级
*/
@Column(name = "scene_type")
private Byte sceneType;
/**
* 模板类型:1=驻店日报,2=门店日报,3=洽谈明细
......
......@@ -51,5 +51,5 @@ public interface DailyReportRecordRemote {
@ApiMethod("推送送消息")
@ApiParam(name="pushDailyReport",notes="查询条件",dataType= ApiParam.DataTypeEnum.INTEGER,required=true)
@ApiResponse("返回本月待邀约数")
RpcResponse<Integer> pushDailyReport(Integer merchantId);
RpcResponse<Integer> pushDailyReport(Integer merchantId, Byte sceneType);
}
......@@ -8,12 +8,12 @@
</parent>
<groupId>cn.com.glsx.dj</groupId>
<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>
<packaging>war</packaging>
<properties>
<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>
<dependencies>
<dependency>
......@@ -55,7 +55,7 @@
<dependency>
<groupId>cn.com.glsx.dj</groupId>
<artifactId>rpc-dj-smartcarlife-api</artifactId>
<version>5.8.2-SNAPSHOT</version>
<version>5.8.2.1-SNAPSHOT</version>
</dependency>
</dependencies>
</project>
......@@ -93,9 +93,9 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote {
}
@Override
public RpcResponse<Integer> pushDailyReport(Integer merchantId) {
public RpcResponse<Integer> pushDailyReport(Integer merchantId, Byte sceneType) {
try{
dailyReportPushService.pushDailyReport(merchantId);
dailyReportPushService.pushDailyReport(merchantId, sceneType);
return RpcResponse.success(1);
}catch(RpcServiceException e){
log.error(e.getMessage(),e);
......
......@@ -63,12 +63,15 @@ public class DailyReportPushService {
private ExcelUtils excelUtils;
public void pushDailyReport(Integer merchantId) {
log.info("pushDailyReport start, merchantId:{}", merchantId);
pushLightChangeDailyReport(merchantId);
pushExtendedWarrantyWjDailyReport(merchantId);
pushExtendedWarrantyLanTuDailyReport(merchantId);
pushExtendedWarrantyOtherDailyReport(merchantId);
public void pushDailyReport(Integer merchantId, Byte sceneType) {
log.info("pushDailyReport start, merchantId:{}, sceneType:{}", merchantId, sceneType);
if(Objects.equals(sceneType,SceneTypeEnum.SCENE1_1.getValue())){
pushLightChangeDailyReport(merchantId);
} else if (Objects.equals(sceneType,SceneTypeEnum.SCENE1_0.getValue())) {
pushExtendedWarrantyWjDailyReport(merchantId);
pushExtendedWarrantyLanTuDailyReport(merchantId);
pushExtendedWarrantyOtherDailyReport(merchantId);
}
}
public void pushLightChangeDailyReport(Integer merchantId) {
......
......@@ -11,6 +11,7 @@
<result column="merchant_name" property="merchantName" jdbcType="VARCHAR" />
<result column="yq_merchant_id" property="yqMerchantId" jdbcType="INTEGER" />
<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="staff_uuid" property="staffUuid" jdbcType="VARCHAR" />
<result column="staff_name" property="staffName" jdbcType="VARCHAR" />
......@@ -37,7 +38,7 @@
<!--
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,
created_by, created_date, updated_by, updated_date, deleted_flag
</sql>
......@@ -60,6 +61,9 @@
<if test="yqMerchantId != null">
and yq_merchant_id = #{yqMerchantId,jdbcType=INTEGER}
</if>
<if test="sceneType != null">
and scene_type = #{sceneType,jdbcType=TINYINT}
</if>
<if test="staffUuid != null and staffUuid != ''">
and staff_uuid = #{staffUuid,jdbcType=VARCHAR}
</if>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!