From 749b84468654c3b5dc36d34174c89d1a4e6efdaa Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Wed, 8 May 2024 17:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/DcPublishManageController.java | 19 ++++++ .../zc/business/domain/DcPublishManage.java | 9 +-- .../mapper/DcPublishManageMapper.java | 6 ++ .../service/IDcPublishManageService.java | 7 ++ .../impl/DcPublishManageServiceImpl.java | 16 +++++ .../mapper/business/DcPublishManageMapper.xml | 65 +++++++++++++++++-- 6 files changed, 110 insertions(+), 12 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/controller/DcPublishManageController.java b/zc-business/src/main/java/com/zc/business/controller/DcPublishManageController.java index 94908506..86b185ba 100644 --- a/zc-business/src/main/java/com/zc/business/controller/DcPublishManageController.java +++ b/zc-business/src/main/java/com/zc/business/controller/DcPublishManageController.java @@ -114,4 +114,23 @@ public class DcPublishManageController extends BaseController { return toAjax(dcPublishManageService.deleteDcPublishManageByIds(ids)); } + //统计服务,今日发布渠道分析 + @PostMapping("/statisticsPublishManage") + public AjaxResult statisticsPublishManage() + { + return AjaxResult.success(dcPublishManageService.statisticsPublishManage()); + } + //统计服务,今日发布事件类型分析 + @PostMapping("/eventTypePublishManage") + public AjaxResult eventTypePublishManage() + { + return AjaxResult.success(dcPublishManageService.eventTypePublishManage()); + } + //统计服务,今日发布趋势分析 + @PostMapping("/trendsPublishManage") + public AjaxResult releaseTrendsPublishManage() + { + return AjaxResult.success(dcPublishManageService.releaseTrendsPublishManage()); + } + } diff --git a/zc-business/src/main/java/com/zc/business/domain/DcPublishManage.java b/zc-business/src/main/java/com/zc/business/domain/DcPublishManage.java index ad4fe4ef..abed367f 100644 --- a/zc-business/src/main/java/com/zc/business/domain/DcPublishManage.java +++ b/zc-business/src/main/java/com/zc/business/domain/DcPublishManage.java @@ -120,8 +120,7 @@ public class DcPublishManage extends BaseEntity private Integer eventState; //关联情报板id private Long logId; - //关联语音广告发布id - private Long voiceId; + public Long getLogId() { return logId; @@ -131,13 +130,7 @@ public class DcPublishManage extends BaseEntity this.logId = logId; } - public Long getVoiceId() { - return voiceId; - } - public void setVoiceId(Long voiceId) { - this.voiceId = voiceId; - } public Integer getEventState() { return eventState; diff --git a/zc-business/src/main/java/com/zc/business/mapper/DcPublishManageMapper.java b/zc-business/src/main/java/com/zc/business/mapper/DcPublishManageMapper.java index 07853632..7076aaf3 100644 --- a/zc-business/src/main/java/com/zc/business/mapper/DcPublishManageMapper.java +++ b/zc-business/src/main/java/com/zc/business/mapper/DcPublishManageMapper.java @@ -67,4 +67,10 @@ public interface DcPublishManageMapper public DcPublishManage selectPublishManage(@Param("dataCategory")Integer dataCategory); //查询信息发布列表 public List> selectDcPublishManageListMap(DcPublishManage dcPublishManage); + //统计今日发布渠道分析 + public List> statisticsPublishManage(); + //统计今日发布事件类型分析 + public List> eventTypePublishManage(); + //统计今日发布趋势分析 + public List> releaseTrendsPublishManage(); } diff --git a/zc-business/src/main/java/com/zc/business/service/IDcPublishManageService.java b/zc-business/src/main/java/com/zc/business/service/IDcPublishManageService.java index e2d48f76..a0333386 100644 --- a/zc-business/src/main/java/com/zc/business/service/IDcPublishManageService.java +++ b/zc-business/src/main/java/com/zc/business/service/IDcPublishManageService.java @@ -1,5 +1,6 @@ package com.zc.business.service; +import java.util.HashMap; import java.util.List; import com.zc.business.domain.DcPublishManage; @@ -59,4 +60,10 @@ public interface IDcPublishManageService * @return 结果 */ int deleteDcPublishManageById(Long id); + //统计今日发布渠道分析 + public List> statisticsPublishManage(); + //统计今日发布事件类型分析 + public List> eventTypePublishManage(); + //统计今日发布趋势分析 + public List> releaseTrendsPublishManage(); } diff --git a/zc-business/src/main/java/com/zc/business/service/impl/DcPublishManageServiceImpl.java b/zc-business/src/main/java/com/zc/business/service/impl/DcPublishManageServiceImpl.java index 9541ae3e..a6602b50 100644 --- a/zc-business/src/main/java/com/zc/business/service/impl/DcPublishManageServiceImpl.java +++ b/zc-business/src/main/java/com/zc/business/service/impl/DcPublishManageServiceImpl.java @@ -9,6 +9,7 @@ import org.apache.commons.lang3.StringUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; +import java.util.HashMap; import java.util.List; /** @@ -109,4 +110,19 @@ public class DcPublishManageServiceImpl implements IDcPublishManageService { return dcPublishManageMapper.deleteDcPublishManageById(id); } + //统计今日发布渠道分析 + @Override + public List> statisticsPublishManage() { + return dcPublishManageMapper.statisticsPublishManage(); + } + //统计今日发布事件类型分析 + @Override + public List> eventTypePublishManage() { + return dcPublishManageMapper.eventTypePublishManage(); + } + //统计今日发布趋势分析 + @Override + public List> releaseTrendsPublishManage() { + return dcPublishManageMapper.releaseTrendsPublishManage(); + } } diff --git a/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml b/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml index 65358545..8db6431a 100644 --- a/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml +++ b/zc-business/src/main/resources/mapper/business/DcPublishManageMapper.xml @@ -33,7 +33,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" - + @@ -62,6 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + insert into dc_publish_manage @@ -126,7 +128,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update_time, create_time, log_id, - voice_id, + #{eventId}, @@ -149,7 +151,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{updateTime}, #{createTime}, #{logId}, - #{voiceId}, + @@ -176,7 +178,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update_time = #{updateTime}, create_time = #{createTime}, log_id = #{logId}, - voice_id = #{voiceId}, where id = #{id} @@ -191,4 +192,60 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{id} + + + \ No newline at end of file