Commit 7e0525a4 by 王璐琦

feat(dailyreport): 实现日报概览分页查询功能

- 新增日报概览分页查询接口及相关Request和Response类
- 实现日报概览分页查询服务及Mapper支持查询和分页
- 在转换层增加日报概览和详情响应对象映射
- 门店工作汇报Controller支持分页查询日报概览数据
- 添加日报白名单商户接口及相关DTO转换
- rpc-daily-report模块及其API版本升级至5.8.4-SNAPSHOT
- 删除日报详情查询时部分冗余参数校验,仅保留id校验
- 在日报概览查询中增加对今日出勤和驻店人数信息的补充读取和设置
- 新增Dubbo配置类注册日报记录远程服务Bean
- 修改项目依赖增加rpc-dj-daily-report-api依赖支持新接口
1 parent 090d5b5f
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
<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.4-SNAPSHOT</daily-report.api.version>
<smartcarlife.api.version>5.8.2.1-SNAPSHOT</smartcarlife.api.version> <smartcarlife.api.version>5.8.2.1-SNAPSHOT</smartcarlife.api.version>
</properties> </properties>
<dependencies> <dependencies>
......
...@@ -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;
} }
...@@ -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,9 @@ public interface DailyReportRecordRemote { ...@@ -52,4 +53,9 @@ 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);
} }
...@@ -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.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.2.1-SNAPSHOT</daily-report.api.version> <daily-report.api.version>5.8.4-SNAPSHOT</daily-report.api.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
......
...@@ -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,15 @@ public class DailyReportRecordRemoteImpl implements DailyReportRecordRemote { ...@@ -102,4 +106,15 @@ 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);
}
}
} }
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,7 +13,13 @@ import cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum; ...@@ -11,7 +13,13 @@ 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.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;
......
...@@ -15,6 +15,7 @@ import cn.com.glsx.dj.daily.report.model.DailyReportFieldData; ...@@ -15,6 +15,7 @@ import cn.com.glsx.dj.daily.report.model.DailyReportFieldData;
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.model.DailyReportSubformData; import cn.com.glsx.dj.daily.report.model.DailyReportSubformData;
import cn.com.glsx.dj.daily.report.util.CommonUtil; import cn.com.glsx.dj.daily.report.util.CommonUtil;
import cn.com.glsx.dj.smartcarlife.dto.CouponDayReportDTO;
import cn.com.glsx.dj.smartcarlife.dto.SceneMerchantRefDTO; import cn.com.glsx.dj.smartcarlife.dto.SceneMerchantRefDTO;
import cn.com.glsx.dj.smartcarlife.model.MerchantDailyReport; import cn.com.glsx.dj.smartcarlife.model.MerchantDailyReport;
import cn.com.glsx.dj.smartcarlife.model.MerchantDailyReportHuawei; import cn.com.glsx.dj.smartcarlife.model.MerchantDailyReportHuawei;
...@@ -24,15 +25,19 @@ import cn.com.glsx.dj.smartcarlife.remote.MerchantDailyReportHuaweiRemote; ...@@ -24,15 +25,19 @@ import cn.com.glsx.dj.smartcarlife.remote.MerchantDailyReportHuaweiRemote;
import cn.com.glsx.dj.smartcarlife.remote.SceneMerchantRefRemote; import cn.com.glsx.dj.smartcarlife.remote.SceneMerchantRefRemote;
import cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum; import cn.com.glsx.dj.smartcarlife.enums.SceneTypeEnum;
import cn.com.glsx.dj.smartcarlife.remote.StaffDailyReportRemote; import cn.com.glsx.dj.smartcarlife.remote.StaffDailyReportRemote;
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.enums.DefaultErrorEnum; 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 com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.google.common.collect.Maps; import com.google.common.collect.Maps;
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.lang.StringUtils;
import org.oreframework.boot.env.OrePropertyConfigurer; import org.oreframework.boot.env.OrePropertyConfigurer;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.task.TaskExecutor; import org.springframework.core.task.TaskExecutor;
...@@ -962,10 +967,7 @@ public class DailyReportRecordService { ...@@ -962,10 +967,7 @@ public class DailyReportRecordService {
*/ */
public DailyReportRecordDTO getDailyReportDetail(DailyReportRecordDTO dailyReportRecordDTO) { public DailyReportRecordDTO getDailyReportDetail(DailyReportRecordDTO dailyReportRecordDTO) {
RpcAssert.assertNotNull(dailyReportRecordDTO, DefaultErrorEnum.DATA_NULL, "dailyReportRecordDTO must not be null"); RpcAssert.assertNotNull(dailyReportRecordDTO, DefaultErrorEnum.DATA_NULL, "dailyReportRecordDTO must not be null");
RpcAssert.assertNotNull(dailyReportRecordDTO.getReportDate(), DefaultErrorEnum.DATA_NULL, "dailyReportRecordDTO.getReportDate must not be null"); RpcAssert.assertNotNull(dailyReportRecordDTO.getId(), DefaultErrorEnum.DATA_NULL, "dailyReportRecordDTO.getId must not be null");
RpcAssert.assertNotNull(dailyReportRecordDTO.getMerchantId(), DefaultErrorEnum.DATA_NULL, "dailyReportRecordDTO.getMerchantId() must not be null");
RpcAssert.assertNotNull(dailyReportRecordDTO.getTemplateType(), DefaultErrorEnum.DATA_NULL, "dailyReportRecordDTO.getTemplateType must not be null");
RpcAssert.assertNotNull(dailyReportRecordDTO.getSceneType(), DefaultErrorEnum.DATA_NULL, "dailyReportRecordDTO.getSceneType must not be null");
try { try {
return CommonUtil.getFirst(dailyReportRecordMapper.listDailyReportRecord(dailyReportRecordDTO)); return CommonUtil.getFirst(dailyReportRecordMapper.listDailyReportRecord(dailyReportRecordDTO));
} catch (RpcServiceException e) { } catch (RpcServiceException e) {
...@@ -1023,6 +1025,113 @@ public class DailyReportRecordService { ...@@ -1023,6 +1025,113 @@ public class DailyReportRecordService {
} }
} }
public Page<DailyReportRecordDTO> listDailyReportOverview(RpcPagination<DailyReportRecordDTO> pagination) {
RpcAssert.assertNotNull(pagination, DefaultErrorEnum.DATA_NULL,"RpcPagination not be null");
DailyReportRecordDTO condition = pagination.getCondition();
RpcAssert.assertNotNull(condition, DefaultErrorEnum.DATA_NULL,"RpcPagination.getCondition not be null");
RpcAssert.assertNotNull(condition.getReportDate(), DefaultErrorEnum.DATA_NULL,"reportDate not be null");
RpcAssert.assertNotNull(condition.getTemplateType(), DefaultErrorEnum.DATA_NULL,"templateType not be null");
try{
log.info("condition:{}", condition);
Page<DailyReportRecordDTO> page = PageHelper.startPage(pagination.getPageNum(), pagination.getPageSize(),pagination.isNeedCount());
dailyReportRecordMapper.listDailyReportOverview(condition);
if (Objects.equals(condition.getTemplateType(),DailyReportTemplateTypeEnum.STAFF_DAILY_REPORT.getValue()) && CollectionUtils.isNotEmpty(page.getResult())) {
populateOnBreak(page.getResult(), condition);
}
if (Objects.equals(condition.getTemplateType(),DailyReportTemplateTypeEnum.MERCHANT_DAILY_REPORT.getValue()) && CollectionUtils.isNotEmpty(page.getResult())) {
populateStaffCount(page.getResult(), condition);
}
return page;
}catch(Exception e){
log.info(e.getMessage(),e);
throw new RpcServiceException(DefaultErrorEnum.DATABASE_ERROR,e.getMessage());
}
}
private void populateOnBreak(List<DailyReportRecordDTO> dtoList, DailyReportRecordDTO condition) {
Example recordExample = new Example(DailyReportRecord.class);
Example.Criteria criteria = recordExample.createCriteria()
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue())
.andEqualTo("templateType", DailyReportTemplateTypeEnum.STAFF_DAILY_REPORT.getValue());
if (condition.getMerchantId() != null) {
criteria.andEqualTo("merchantId", condition.getMerchantId());
}
if (StringUtils.isNotBlank(condition.getReportDate())) {
criteria.andEqualTo("reportDate", condition.getReportDate());
}
if (StringUtils.isNotBlank(condition.getStaffName())) {
criteria.andLike("staffName", "%" + condition.getStaffName() + "%");
}
List<DailyReportRecord> allRecords = dailyReportRecordMapper.selectByExample(recordExample);
if (CollectionUtils.isEmpty(allRecords)) {
return;
}
List<Integer> recordIds = allRecords.stream().map(DailyReportRecord::getId).distinct().collect(Collectors.toList());
Example fieldExample = new Example(DailyReportFieldData.class);
fieldExample.createCriteria()
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue())
.andEqualTo("fieldKey", DailyReportFieldEnum.F1_1.getValue())
.andIn("reportRecordId", recordIds);
List<DailyReportFieldData> fieldDataList = dailyReportFieldDataMapper.selectByExample(fieldExample);
if (CollectionUtils.isEmpty(fieldDataList)) {
return;
}
Map<Integer, String> onBreakMap = fieldDataList.stream()
.collect(Collectors.toMap(
DailyReportFieldData::getReportRecordId,
DailyReportFieldData::getFieldValue,
(v1, v2) -> v2));
for (DailyReportRecordDTO dto : dtoList) {
dto.setOnBreak(onBreakMap.get(dto.getId()));
}
}
private void populateStaffCount(List<DailyReportRecordDTO> dtoList, DailyReportRecordDTO condition) {
Example recordExample = new Example(DailyReportRecord.class);
Example.Criteria criteria = recordExample.createCriteria()
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue())
.andEqualTo("templateType", DailyReportTemplateTypeEnum.MERCHANT_DAILY_REPORT.getValue());
if (condition.getMerchantId() != null) {
criteria.andEqualTo("merchantId", condition.getMerchantId());
}
if (StringUtils.isNotBlank(condition.getReportDate())) {
criteria.andEqualTo("reportDate", condition.getReportDate());
}
List<DailyReportRecord> allRecords = dailyReportRecordMapper.selectByExample(recordExample);
if (CollectionUtils.isEmpty(allRecords)) {
return;
}
List<Integer> recordIds = allRecords.stream()
.map(DailyReportRecord::getId)
.distinct()
.collect(Collectors.toList());
Example fieldExample = new Example(DailyReportFieldData.class);
fieldExample.createCriteria()
.andEqualTo("deletedFlag", DeleteFlagEnum.N.getValue())
.andEqualTo("fieldKey", DailyReportFieldEnum.F2_2.getValue())
.andIn("reportRecordId", recordIds);
List<DailyReportFieldData> fieldDataList = dailyReportFieldDataMapper.selectByExample(fieldExample);
if (CollectionUtils.isEmpty(fieldDataList)) {
return;
}
Map<Integer, Integer> staffCountMap = fieldDataList.stream()
.filter(fd -> StringUtils.isNotBlank(fd.getFieldValue()))
.collect(Collectors.toMap(
DailyReportFieldData::getReportRecordId,
fd -> Integer.valueOf(fd.getFieldValue()),
(v1, v2) -> v2));
for (DailyReportRecordDTO dto : dtoList) {
dto.setStaffCount(staffCountMap.get(dto.getId()));
}
}
/** /**
* 华为子品牌字段映射:(个人大定触客/进群数-轻改, 个人售后触客数-轻改, 个人交付引荐数-轻改, 实际售前触客数-延保, 实际售后触客数-延保, 未触客返店人数-延保) * 华为子品牌字段映射:(个人大定触客/进群数-轻改, 个人售后触客数-轻改, 个人交付引荐数-轻改, 实际售前触客数-延保, 实际售后触客数-延保, 未触客返店人数-延保)
*/ */
......
...@@ -52,6 +52,9 @@ ...@@ -52,6 +52,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 +104,28 @@ ...@@ -101,4 +104,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!