Browse Source

统计

develop
wangsixiang 11 months ago
parent
commit
f71b94889a
  1. 11
      zc-business/src/main/java/com/zc/business/controller/DcPublishManageController.java
  2. 5
      zc-business/src/main/java/com/zc/business/mapper/DcPublishManageMapper.java
  3. 2
      zc-business/src/main/java/com/zc/business/service/IDcPublishManageService.java
  4. 5
      zc-business/src/main/java/com/zc/business/service/impl/DcPublishManageServiceImpl.java

11
zc-business/src/main/java/com/zc/business/controller/DcPublishManageController.java

@ -1,5 +1,6 @@
package com.zc.business.controller;
import java.util.HashMap;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
@ -132,5 +133,13 @@ public class DcPublishManageController extends BaseController
{
return AjaxResult.success(dcPublishManageService.releaseTrendsPublishManage());
}
//统计服务,月发布渠道趋势分析
@PostMapping("/monthTrendsPublishManage")
public AjaxResult monthTrendsPublishManage(@RequestBody DcPublishManage dcPublishManage)
{
if (dcPublishManage==null||dcPublishManage.getPublishTime()==null){
return AjaxResult.error("参数错误");
}
return AjaxResult.success(dcPublishManageService.monthTrendsPublishManage(dcPublishManage));
}
}

5
zc-business/src/main/java/com/zc/business/mapper/DcPublishManageMapper.java

@ -53,7 +53,8 @@ public interface DcPublishManageMapper
* @return 结果
*/
int deleteDcPublishManageById(Long id);
//删除事件发布记录 params 事件id
int deleteDcPublishManageEventId(String eventId);
/**
* 批量删除信息发布管理记录
*
@ -73,4 +74,6 @@ public interface DcPublishManageMapper
public List<HashMap<String,Object>> eventTypePublishManage();
//统计今日发布趋势分析
public List<HashMap<String,Object>> releaseTrendsPublishManage();
//统计月发布趋势分析
public List<HashMap<String,Object>> monthTrendsPublishManage(DcPublishManage dcPublishManage);
}

2
zc-business/src/main/java/com/zc/business/service/IDcPublishManageService.java

@ -66,4 +66,6 @@ public interface IDcPublishManageService
public List<HashMap<String,Object>> eventTypePublishManage();
//统计今日发布趋势分析
public List<HashMap<String,Object>> releaseTrendsPublishManage();
//统计月发布趋势分析
public List<HashMap<String,Object>> monthTrendsPublishManage(DcPublishManage dcPublishManage);
}

5
zc-business/src/main/java/com/zc/business/service/impl/DcPublishManageServiceImpl.java

@ -125,4 +125,9 @@ public class DcPublishManageServiceImpl implements IDcPublishManageService
public List<HashMap<String, Object>> releaseTrendsPublishManage() {
return dcPublishManageMapper.releaseTrendsPublishManage();
}
//统计月发布趋势分析
@Override
public List<HashMap<String, Object>> monthTrendsPublishManage(DcPublishManage dcPublishManage) {
return dcPublishManageMapper.monthTrendsPublishManage(dcPublishManage);
}
}

Loading…
Cancel
Save