Commit 24f1af83 by 叶立庆

Merge branch 'v5.8.4' into 'master'

上线合并

See merge request !5
2 parents 463de9c2 9ec07c0f
...@@ -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.3.6-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.4-SNAPSHOT</daily-report.api.version>
<smartcarlife.api.version>5.8.3.6-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.8.4-SNAPSHOT</smartcarlife.api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
......
...@@ -40,4 +40,10 @@ public class DailyReportRecordDTO extends DailyReportRecord implements Serializa ...@@ -40,4 +40,10 @@ public class DailyReportRecordDTO extends DailyReportRecord implements Serializa
@ApiModelProperty(notes = "本月待邀约数(F2-24字段值)") @ApiModelProperty(notes = "本月待邀约数(F2-24字段值)")
private Integer pendingCount; private Integer pendingCount;
@ApiModelProperty(name = "onBreak", notes = "今日出勤(在岗,调休)")
private String onBreak;
@ApiModelProperty(name = "staffCount", notes = "今日驻店人数")
private Integer staffCount;
} }
package cn.com.glsx.dj.daily.report.enums;
/**
* @description: 日报上报状态
* @author: lqWang
* @date: 2026/7/22
*/
public enum DailyReportSubmissionStatusEnum {
SUBMITTED((byte) 1, "已上报"),
NOT_SUBMITTED((byte) 2, "未上报");
private byte value;
private String displayName;
DailyReportSubmissionStatusEnum(Byte value, String displayName) {
this.value = value;
this.displayName = displayName;
}
public byte getValue() {
return value;
}
public String getDisplayName() {
return displayName;
}
}
...@@ -96,6 +96,18 @@ public class DailyReportRecord implements Serializable { ...@@ -96,6 +96,18 @@ public class DailyReportRecord implements Serializable {
private Byte reportStatus; private Byte reportStatus;
/** /**
* 上报状态(1:已上报,2:未上报)
*/
@Column(name = "submission_status")
private Byte submissionStatus;
/**
* 上报时间
*/
@Column(name = "submission_date")
private Date submissionDate;
/**
* 创建人 * 创建人
*/ */
@Column(name = "created_by") @Column(name = "created_by")
......
...@@ -6,6 +6,7 @@ import cn.com.glsx.framework.core.annotation.ApiMethod; ...@@ -6,6 +6,7 @@ import cn.com.glsx.framework.core.annotation.ApiMethod;
import cn.com.glsx.framework.core.annotation.ApiParam; import cn.com.glsx.framework.core.annotation.ApiParam;
import cn.com.glsx.framework.core.annotation.ApiResponse; import cn.com.glsx.framework.core.annotation.ApiResponse;
import cn.com.glsx.framework.core.annotation.ApiService; import cn.com.glsx.framework.core.annotation.ApiService;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import java.util.List; import java.util.List;
...@@ -52,4 +53,14 @@ public interface DailyReportRecordRemote { ...@@ -52,4 +53,14 @@ public interface DailyReportRecordRemote {
@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, Byte sceneType); RpcResponse<Integer> pushDailyReport(Integer merchantId, Byte sceneType);
@ApiMethod("查询日报概览分页列表")
@ApiParam(name="listDailyReportOverviewWithPage",notes="查询条件",dataType= ApiParam.DataTypeEnum.OBJECT,required=true)
@ApiResponse("返回日报概览分页列表")
RpcResponse<RpcPagination<DailyReportRecordDTO>> listDailyReportOverviewWithPage(RpcPagination<DailyReportRecordDTO> pagination);
@ApiMethod("推送日报消息")
@ApiParam(name="dailyReportRecordDTO",notes="查询条件",dataType= ApiParam.DataTypeEnum.OBJECT,required=true)
@ApiResponse("推送结果")
RpcResponse<Boolean> pushDailyReportData(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.3.6-SNAPSHOT</version> <version>5.8.4-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.3.6-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.4-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.3.6-SNAPSHOT</version> <version>5.8.4-SNAPSHOT</version>
</dependency> </dependency>
</dependencies> </dependencies>
</project> </project>
...@@ -13,4 +13,6 @@ public interface DailyReportRecordMapper extends OreMapper<DailyReportRecord> { ...@@ -13,4 +13,6 @@ public interface DailyReportRecordMapper extends OreMapper<DailyReportRecord> {
List<DailyReportRecordDTO> listDailyReportRecord(DailyReportRecordDTO dailyReportRecordDTO); List<DailyReportRecordDTO> listDailyReportRecord(DailyReportRecordDTO dailyReportRecordDTO);
DailyReportRecordDTO selectMonthlyPendingCount(DailyReportRecordDTO dailyReportRecordDTO); DailyReportRecordDTO selectMonthlyPendingCount(DailyReportRecordDTO dailyReportRecordDTO);
List<DailyReportRecordDTO> listDailyReportOverview(DailyReportRecordDTO condition);
} }
\ No newline at end of file \ No newline at end of file
...@@ -4,8 +4,12 @@ import cn.com.glsx.dj.daily.report.dto.DailyReportRecordDTO; ...@@ -4,8 +4,12 @@ import cn.com.glsx.dj.daily.report.dto.DailyReportRecordDTO;
import cn.com.glsx.dj.daily.report.dto.DailyReportTemplateDTO; import cn.com.glsx.dj.daily.report.dto.DailyReportTemplateDTO;
import cn.com.glsx.dj.daily.report.service.DailyReportPushService; import cn.com.glsx.dj.daily.report.service.DailyReportPushService;
import cn.com.glsx.dj.daily.report.service.DailyReportRecordService; import cn.com.glsx.dj.daily.report.service.DailyReportRecordService;
import cn.com.glsx.dj.smartcarlife.dto.CouponDayReportDTO;
import cn.com.glsx.dj.smartcarlife.dto.GoodsOrderDTO;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.com.glsx.framework.core.exception.RpcServiceException; import cn.com.glsx.framework.core.exception.RpcServiceException;
import com.github.pagehelper.Page;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService; import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -102,4 +106,25 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote { ...@@ -102,4 +106,25 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote {
return RpcResponse.error(e); return RpcResponse.error(e);
} }
} }
@Override
public RpcResponse<RpcPagination<DailyReportRecordDTO>> listDailyReportOverviewWithPage(RpcPagination<DailyReportRecordDTO> pagination) {
try{
Page<DailyReportRecordDTO> page = dailyReportRecordService.listDailyReportOverview(pagination);
return RpcResponse.success(RpcPagination.copyPage(page));
}catch(RpcServiceException e){
log.error(e.getMessage(), e);
return RpcResponse.error(e);
}
}
@Override
public RpcResponse<Boolean> pushDailyReportData(DailyReportRecordDTO dailyReportRecordDTO) {
try{
return RpcResponse.success(dailyReportRecordService.pushDailyReportData(dailyReportRecordDTO));
}catch(RpcServiceException e){
log.error(e.getMessage(),e);
return RpcResponse.error(e);
}
}
} }
package cn.com.glsx.dj.daily.report.service; package cn.com.glsx.dj.daily.report.service;
import cn.com.glsx.dj.daily.report.dto.DailyReportRecordDTO;
import cn.com.glsx.dj.daily.report.dto.ExtendedWarrantyDailyReportData; import cn.com.glsx.dj.daily.report.dto.ExtendedWarrantyDailyReportData;
import cn.com.glsx.dj.daily.report.dto.LightChangeDailyReportData; import cn.com.glsx.dj.daily.report.dto.LightChangeDailyReportData;
import cn.com.glsx.dj.daily.report.model.DailyReportRecord; import cn.com.glsx.dj.daily.report.model.DailyReportRecord;
import cn.com.glsx.dj.daily.report.util.ExcelUtils; import cn.com.glsx.dj.daily.report.util.ExcelUtils;
import cn.com.glsx.dj.smartcarlife.dto.CouponDayReportDTO;
import cn.com.glsx.dj.smartcarlife.dto.MerchantActionReportConfigDTO; import cn.com.glsx.dj.smartcarlife.dto.MerchantActionReportConfigDTO;
import cn.com.glsx.dj.smartcarlife.dto.worktoolpush.RecordGroupRequestDTO; import cn.com.glsx.dj.smartcarlife.dto.worktoolpush.RecordGroupRequestDTO;
import cn.com.glsx.dj.smartcarlife.enums.ActionReportTypeEnum; import cn.com.glsx.dj.smartcarlife.enums.ActionReportTypeEnum;
...@@ -11,8 +13,14 @@ import cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum; ...@@ -11,8 +13,14 @@ import cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum;
import cn.com.glsx.dj.smartcarlife.model.MerchantActionReportGroupConfig; import cn.com.glsx.dj.smartcarlife.model.MerchantActionReportGroupConfig;
import cn.com.glsx.dj.smartcarlife.remote.MerchantActionReportConfigRemote; import cn.com.glsx.dj.smartcarlife.remote.MerchantActionReportConfigRemote;
import cn.com.glsx.dj.smartcarlife.remote.ReportPushRecordRemote; import cn.com.glsx.dj.smartcarlife.remote.ReportPushRecordRemote;
import cn.com.glsx.framework.core.beans.rpc.RpcPagination;
import cn.com.glsx.framework.core.beans.rpc.RpcResponse; import cn.com.glsx.framework.core.beans.rpc.RpcResponse;
import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.ObjectUtil;
import cn.com.glsx.framework.core.enums.DefaultErrorEnum;
import cn.com.glsx.framework.core.exception.RpcServiceException;
import cn.com.glsx.framework.core.util.RpcAssert;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections.CollectionUtils; import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
......
...@@ -19,6 +19,8 @@ ...@@ -19,6 +19,8 @@
<result column="daily_report_source" property="dailyReportSource" jdbcType="TINYINT" /> <result column="daily_report_source" property="dailyReportSource" jdbcType="TINYINT" />
<result column="json_content" property="jsonContent" jdbcType="LONGVARCHAR" /> <result column="json_content" property="jsonContent" jdbcType="LONGVARCHAR" />
<result column="report_status" property="reportStatus" jdbcType="TINYINT" /> <result column="report_status" property="reportStatus" jdbcType="TINYINT" />
<result column="submission_status" property="submissionStatus" jdbcType="TINYINT" />
<result column="submission_date" property="submissionDate" jdbcType="TIMESTAMP" />
<result column="created_by" property="createdBy" jdbcType="VARCHAR" /> <result column="created_by" property="createdBy" jdbcType="VARCHAR" />
<result column="created_date" property="createdDate" jdbcType="TIMESTAMP" /> <result column="created_date" property="createdDate" jdbcType="TIMESTAMP" />
<result column="updated_by" property="updatedBy" jdbcType="VARCHAR" /> <result column="updated_by" property="updatedBy" jdbcType="VARCHAR" />
...@@ -40,6 +42,7 @@ ...@@ -40,6 +42,7 @@
--> -->
id, report_template_id, merchant_id, merchant_name, yq_merchant_id, yq_merchant_name, scene_type, 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,
submission_status, submission_date,
created_by, created_date, updated_by, updated_date, deleted_flag created_by, created_date, updated_by, updated_date, deleted_flag
</sql> </sql>
<sql id="Blob_Column_List" > <sql id="Blob_Column_List" >
...@@ -52,6 +55,9 @@ ...@@ -52,6 +55,9 @@
select <include refid="Base_Column_List"/> select <include refid="Base_Column_List"/>
from dj_car_life_daily_report_record from dj_car_life_daily_report_record
<where> deleted_flag = 'N' <where> deleted_flag = 'N'
<if test="id != null">
and id = #{id,jdbcType=INTEGER}
</if>
<if test="templateType != null"> <if test="templateType != null">
and template_type = #{templateType,jdbcType=TINYINT} and template_type = #{templateType,jdbcType=TINYINT}
</if> </if>
...@@ -101,4 +107,28 @@ ...@@ -101,4 +107,28 @@
ORDER BY r.report_date DESC ORDER BY r.report_date DESC
LIMIT 1 LIMIT 1
</select> </select>
<select id="listDailyReportOverview" parameterType="cn.com.glsx.dj.daily.report.dto.DailyReportRecordDTO" resultMap="DTOResultMap">
select <include refid="Base_Column_List"/>
from dj_car_life_daily_report_record
where deleted_flag = 'N'
<if test="templateType != null">
and template_type = #{templateType,jdbcType=TINYINT}
</if>
<if test="merchantId != null">
and merchant_id = #{merchantId,jdbcType=INTEGER}
</if>
<if test="staffName != null and staffName != ''">
and staff_name like concat ('%', #{staffName}, '%')
</if>
<if test="reportDate != null and reportDate != ''">
and report_date = #{reportDate,jdbcType=CHAR}
</if>
<if test="templateType != null and templateType in {1,3}">
order by staff_uuid, merchant_id, scene_type desc
</if>
<if test="templateType != null and templateType == 2">
order by merchant_id, scene_type desc
</if>
</select>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!