Commit 15fb7c8d by lili

删除不用的方法

parent 94ec948a
......@@ -241,16 +241,6 @@ public interface BookBiz {
List<Long> getIdsByName(String bookName, Long adviserId) throws BizException;
/**
* 图书收益,获取书籍列表(编辑)
*
* @param paramMap
* @param pageParam
* 分页参数传递工具类
* @return
*/
PageBean getListPage4AdviserProfit(Map<String, Object> paramMap, PageParam pageParam) throws BizException;
/**
* 图书收益,获取单个书籍基础信息(包含统计信息)
*
* @param bookId
......@@ -505,15 +495,6 @@ public interface BookBiz {
void updateTimeByIds(BookAdviserUpdateTimeDTO bookAdviserUpdateTimeDTO)throws BizException;
/**
* 平台端--数据分析-书刊分析
* @param pageParam
* @param bookAnalysic4PCVO
* @return
* @throws BizException
*/
PageBean getBookAnalysis4PC(PageParam pageParam, BookAnalysic4PCVO bookAnalysic4PCVO)throws BizException;
/**
* 获取书刊信息
* @return
* @throws BizException
......
......@@ -32,8 +32,6 @@ import com.pcloud.book.book.dto.BookInfoAnalysicsDTO;
import com.pcloud.book.book.entity.Book;
import com.pcloud.book.book.entity.BookAdviser;
import com.pcloud.book.book.set.BookSet;
import com.pcloud.book.book.tools.BookTools;
import com.pcloud.book.book.vo.BookAnalysic4PCVO;
import com.pcloud.book.consumer.analysisengine.SceneRecordConsr;
import com.pcloud.book.consumer.app.AssistTempletConsr;
import com.pcloud.book.consumer.channel.QrcodeSceneConsr;
......@@ -812,20 +810,6 @@ public class BookBizImpl implements BookBiz {
}
/**
* 图书收益,获取书籍列表(编辑)
*/
@Override
public PageBean getListPage4AdviserProfit(Map<String, Object> paramMap, PageParam pageParam) throws BizException {
LOGGER.info("【书籍收益】获取书籍列表,<START>.[START]=" + paramMap.toString());
try {
return bookDao.listPage(pageParam, paramMap, "getList4AdviserProfit");
} catch (Exception e) {
LOGGER.error("【书籍收益】获取书籍列表,<ERROR>.[getList4AdviserProfit]:" + e.getMessage(), e);
throw BizException.DB_SELECT_IS_FAIL;
}
}
/**
* 图书收益,获取单个书籍基础信息(包含统计信息)
*/
@Override
......@@ -1491,73 +1475,6 @@ public class BookBizImpl implements BookBiz {
bookDao.updateTimeByIds(paramMap);
}
@ParamLog(description = "平台端--数据分析-书刊分析")
@Override
public PageBean getBookAnalysis4PC(PageParam pageParam, BookAnalysic4PCVO bookAnalysic4PCVO) throws BizException {
Map<String,Object> paramMap = Maps.newHashMap();
if(!StringUtil.isEmpty(bookAnalysic4PCVO.getBookName())){
paramMap.put("bookName",bookAnalysic4PCVO.getBookName());
}
if(!StringUtil.isEmpty(bookAnalysic4PCVO.getStatisTime())){
if(BookTools.isValidDate(bookAnalysic4PCVO.getStatisTime(),"yyyy-MM")){
paramMap.put("statisTime",bookAnalysic4PCVO.getStatisTime());
}else{
throw new BookBizException(BookBizException.PARAM_IS_ERROR,"请检查数据统计年月格式~");
}
}
if(!StringUtil.isEmpty(bookAnalysic4PCVO.getIsbn())){
paramMap.put("isbn",bookAnalysic4PCVO.getIsbn());
}
if(null != bookAnalysic4PCVO.getTempletId()){
/*List<Long> ids = assistTempletConsr.getChildIdListByParentId(bookAnalysic4PCVO.getTempletId());
if(!ListUtils.isEmpty(ids)){
paramMap.put("templetId",bookAnalysic4PCVO.getTempletId());
}*/
paramMap.put("templetId",bookAnalysic4PCVO.getTempletId());
}
if(!ListUtils.isEmpty(bookAnalysic4PCVO.getAgentIds())){
List<Long> channelIds = Lists.newArrayList();
List<Long> agentIds = bookAnalysic4PCVO.getAgentIds();
for(Long agentId:agentIds){
List<Long> ids = channelConsr.getApproveIdList(agentId);
if(!ListUtils.isEmpty(ids)){
channelIds.addAll(ids);
}
}
if(!ListUtils.isEmpty(channelIds)){
paramMap.put("channelIds",channelIds);
}else{
return new PageBean();
}
}
if(!ListUtils.isEmpty(bookAnalysic4PCVO.getAdviserIds())){
paramMap.put("adviserIds",bookAnalysic4PCVO.getAdviserIds());
}
if(null != bookAnalysic4PCVO.getIsFundSupport()){
paramMap.put("isFundSupport",bookAnalysic4PCVO.getIsFundSupport());
}
PageBean pageBean = bookDao.listPage(pageParam,paramMap,"getBookAnalysis4PC");
if(null != pageBean && !ListUtils.isEmpty(pageBean.getRecordList())){
// 设置出版信息
bookSet.setAgentInfo4Anlysics(pageBean.getRecordList());
// 设置编辑信息
bookSet.setAdviserInfo4Anlysics(pageBean.getRecordList());
// 设置书刊分类信息
bookSet.setTempletName4Anlysics(pageBean.getRecordList());
// 设置关联二维码数量
bookSet.setBookAssocQRCount(pageBean.getRecordList(),bookAnalysic4PCVO.getStatisTime());
// 设置浏览量 设置读者量 扫码平均转化率
bookSet.setAnalysicsInfo(pageBean.getRecordList(),bookAnalysic4PCVO.getStatisTime());
// 设置累计收益
bookSet.setBookIncome4Analysics(pageBean.getRecordList(),bookAnalysic4PCVO.getStatisTime());
//设置默认值
bookSet.setDefaultValue(pageBean.getRecordList());
}
return pageBean;
}
@ParamLog(description = "获取书刊信息")
@Override
public Map<String, BookInfoAnalysicsDTO> getBookInfoBy(List<BookInfoAnalysicsDTO> bookInfoAnalysicsDTOS, String
......
......@@ -3,17 +3,6 @@
*/
package com.pcloud.book.book.service.impl;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import com.pcloud.book.book.biz.BookBiz;
import com.pcloud.book.book.dto.BookAdviserUpdateTimeDTO;
import com.pcloud.book.book.dto.BookDetialDTO;
......@@ -24,6 +13,17 @@ import com.pcloud.book.book.service.BookService;
import com.pcloud.common.dto.ResponseDto;
import com.pcloud.common.exceptions.BizException;
import com.pcloud.common.utils.ResponseHandleUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
/**
* @描述:
......
......@@ -58,31 +58,5 @@ public class TemplateConsr {
}
LOGGER.info("【模板消息(消)】发送模板消息topic(管理公众号),<END>");
}
/**
* 发送模板消息topic(运营公众号)
*/
public void sendChannel(String SceneCode, Long wechatUserId, Long sendPartyId, String url,
Map<String, String> temParam, boolean isApp, String appType) throws BizException {
LOGGER.info("【模板消息(消)】发送模板消息topic(运营公众号),<START>.[wechatUserId]=" + wechatUserId + ",[sendPartyId]="
+ sendPartyId + ",[temParam]=" + temParam.toString());
// 组装参数对象
TemplateMessageDto templateMessageDto = new TemplateMessageDto();
templateMessageDto.setSceneCode(SceneCode);
templateMessageDto.setWechatUserId(wechatUserId);
templateMessageDto.setSendPartyId(sendPartyId);
templateMessageDto.setSendPartyRole(WechatCode.CHANNEL.value);
templateMessageDto.setUrl(url);
templateMessageDto.setTemParam(temParam);
templateMessageDto.setSendType(SendType.SEND_BY_WECHAT_USER_ID.value);
templateMessageDto.setIsApp(isApp);
templateMessageDto.setAppType(appType);
try {
templateQueueBiz.sendMessageQueue(templateMessageDto);
} catch (Exception e) {
LOGGER.error("【模板消息(消)】发送模板消息topic(运营公众号),<ERROR>.[sendMessageQueue]:" + e.getMessage(), e);
}
LOGGER.info("【模板消息(消)】发送模板消息topic(运营公众号),<END>");
}
}
package com.pcloud.book.consumer.trade;
import com.pcloud.common.core.aspect.ParamLog;
import com.pcloud.common.exceptions.BizException;
import com.pcloud.common.utils.ResponseHandleUtil;
import com.pcloud.facade.tradecenter.dto.BookIncomeQueryVo;
import com.pcloud.facade.tradecenter.service.OrderFormService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.util.List;
import java.util.Map;
@Component("orderFormConsr")
public class OrderFormConsr {
@Autowired
private OrderFormService orderFormService;
private static final Logger LOGGER = LoggerFactory.getLogger(OrderFormConsr.class);
@ParamLog(description = "获取图书收益")
public Map<String, BigDecimal> getBookIncome(List<BookIncomeQueryVo> bookIncomeQueryVos,String date)throws BizException {
Map<String, BigDecimal> incomeMap = null;
try {
incomeMap = ResponseHandleUtil.parseMapResponse(orderFormService.getBookIncome(bookIncomeQueryVos,date),String.class,BigDecimal.class);
} catch (Exception e) {
LOGGER.error("[消TRADECENTER.orderFormService.getBookIncome]出现异常,信息为:"+e.getMessage(),e);
}
return incomeMap;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment