From 62a447d89331aee1feae7724c7616aa1bb2cfe79 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 16 十月 2024 14:28:37 +0800 Subject: [PATCH] 将CMQ替换为rabbitmq --- fanli/src/main/java/com/yeshi/fanli/service/inter/customerservice/CustomerServiceCommonQuestionService.java | 178 +++++++++++++++++++++++++++++++++++------------------------ 1 files changed, 106 insertions(+), 72 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/inter/customerservice/CustomerServiceCommonQuestionService.java b/fanli/src/main/java/com/yeshi/fanli/service/inter/customerservice/CustomerServiceCommonQuestionService.java index 7ff05d8..92e733b 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/inter/customerservice/CustomerServiceCommonQuestionService.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/inter/customerservice/CustomerServiceCommonQuestionService.java @@ -1,72 +1,106 @@ -package com.yeshi.fanli.service.inter.customerservice; - -import java.util.List; - -import com.yeshi.fanli.entity.customerservice.CustomerServiceCommonQuestion; -import com.yeshi.fanli.exception.CustomerServiceCommonQuestionException; - -public interface CustomerServiceCommonQuestionService { - /** - * 閫氳繃鍏抽敭瀛楁绱� - * - * @param key - * @return - */ - public CustomerServiceCommonQuestion searchByKey(String key); - - /** - * 閫氳繃鍏抽敭瀛楁绱紙甯︽湁缂撳瓨锛� - * - * @param key - * @return - */ - public CustomerServiceCommonQuestion searchByKeyCache(String key); - - /** - * 娣诲姞闂 - * - * @param question - */ - public void addCustomerServiceCommonQuestion(CustomerServiceCommonQuestion question) - throws CustomerServiceCommonQuestionException; - - /** - * 鏇存柊鏌愪釜甯歌闂锛堜富閿洿鏂帮級 - * - * @param question - * @throws CustomerServiceCommonQuestionException - */ - public void updateCustomerServiceCommonQuestion(CustomerServiceCommonQuestion question) - throws CustomerServiceCommonQuestionException; - - /** - * 鍒犻櫎闂 - * - * @param id-涓婚敭ID - */ - public void deleteCustomerServiceCommonQuestion(Long id); - - /** - * 鏌ヨ鎵�鏈夌殑KEY鍊硷紙鎸夋潈閲嶅ぇ灏忔帓搴忥級 - * - * @return - */ - public List<String> listKeysCache(); - - /** - * 鑾峰彇甯歌闂鍒楄〃锛堟寜鏇存柊鏃堕棿鎺掑簭-鍊掑簭锛� - * - * @param page - * @param pageSize - * @return - */ - public List<CustomerServiceCommonQuestion> listCustomerServiceCommonQuestion(int page, int pageSize); - - /** - * 鏌ヨ鎬诲叡鏈夊灏戞潯淇℃伅 - * - * @return - */ - public Long countCustomerServiceCommonQuestion(); - -} +package com.yeshi.fanli.service.inter.customerservice; + +import java.util.List; + +import com.yeshi.fanli.entity.customerservice.CustomerServiceCommonQuestion; +import com.yeshi.fanli.exception.user.CustomerServiceCommonQuestionException; + +public interface CustomerServiceCommonQuestionService { + /** + * 閫氳繃鍏抽敭瀛楁绱� + * + * @param key + * @return + */ + public CustomerServiceCommonQuestion searchByKey(String key); + + /** + * 閫氳繃鍏抽敭瀛楁绱紙甯︽湁缂撳瓨锛� + * + * @param key + * @return + */ + public CustomerServiceCommonQuestion searchByKeyCache(String key); + + /** + * 娣诲姞闂 + * + * @param question + */ + public void addCustomerServiceCommonQuestion(CustomerServiceCommonQuestion question) + throws CustomerServiceCommonQuestionException; + + /** + * 鏇存柊鏌愪釜甯歌闂锛堜富閿洿鏂帮級 + * + * @param question + * @throws CustomerServiceCommonQuestionException + */ + public void updateCustomerServiceCommonQuestion(CustomerServiceCommonQuestion question) + throws CustomerServiceCommonQuestionException; + + /** + * 鍒犻櫎闂 + * + * @param id-涓婚敭ID + */ + public void deleteCustomerServiceCommonQuestion(Long id); + + /** + * 鏌ヨ鎵�鏈夌殑KEY鍊硷紙鎸夋潈閲嶅ぇ灏忔帓搴忥級 + * + * @return + */ + public List<String> listKeysCache(); + + /** + * 鑾峰彇甯歌闂鍒楄〃锛堟寜鏇存柊鏃堕棿鎺掑簭-鍊掑簭锛� + * + * @param page + * @param pageSize + * @return + */ + public List<CustomerServiceCommonQuestion> listCustomerServiceCommonQuestion(int page, int pageSize); + + /** + * 鏌ヨ鎬诲叡鏈夊灏戞潯淇℃伅 + * + * @return + */ + public Long countCustomerServiceCommonQuestion(); + + CustomerServiceCommonQuestion selectByPrimaryKey(Long id); + + int deleteBatchByPrimaryKey(List<Long> list); + + int insert(CustomerServiceCommonQuestion record); + + int insertSelective(CustomerServiceCommonQuestion record); + + int updateByPrimaryKeySelective(CustomerServiceCommonQuestion record); + + int updateByPrimaryKey(CustomerServiceCommonQuestion record); + + /** + * 鍚庡彴鏌ヨ鍒楄〃 + * @param start + * @param count + * @param key 鍏抽敭璇� 銆佸唴瀹规悳绱� + * @param type 绫诲瀷 + * @param state 鐘舵�� + * @param sort 鎺掑簭锛� 1鏉冮噸浣庡埌楂� 2鏉冮噸楂樺埌浣� + * @return + */ + public List<CustomerServiceCommonQuestion> listQuery(long start, int count, String key, String type, + Integer state, Integer sort); + + public long countQuery(String key, String type, Integer state); + + /** + * 淇濆瓨 + * @param record + * @throws CustomerServiceCommonQuestionException + */ + public void save(CustomerServiceCommonQuestion record) throws Exception, CustomerServiceCommonQuestionException; + +} -- Gitblit v1.8.0