From ee2316e2cb7afde1c54f5e4216a1b0d1e055749e Mon Sep 17 00:00:00 2001 From: xinyb <574600396@qq.com> Date: 星期五, 27 九月 2024 17:33:14 +0800 Subject: [PATCH] CRM邮箱配置调整 --- src/com/yc/crm/mail/service/MailIfc.java | 106 +++++++++++++++++++++++++++++++++++++--------------- 1 files changed, 75 insertions(+), 31 deletions(-) diff --git a/src/com/yc/crm/mail/service/MailIfc.java b/src/com/yc/crm/mail/service/MailIfc.java index 4aa6290..43b66b3 100644 --- a/src/com/yc/crm/mail/service/MailIfc.java +++ b/src/com/yc/crm/mail/service/MailIfc.java @@ -1,13 +1,10 @@ package com.yc.crm.mail.service; -import com.yc.crm.mail.entity.T482102Entity; +import com.yc.crm.mail.entity.MailModuleBelowEntity; +import com.yc.crm.mail.entity.MailModuleEntity; import com.yc.crm.mail.entity.t482101HEntity; import com.yc.crm.mail.entity.t482101HList; -import com.yc.entity.attachment.AttachmentEntity; -import javax.mail.MessagingException; -import javax.servlet.http.HttpServletRequest; -import java.io.IOException; import java.util.List; /** @@ -31,7 +28,7 @@ * * @param mail */ - void saveReceivingMailList(List<t482101HEntity> mail); + String saveReceivingMailList(List<t482101HEntity> mail); /** * 鏇存柊鏀朵欢鍐呭 @@ -43,28 +40,32 @@ /** * 淇敼deleteFlag + * * @param userCode * @param docCode * @return */ - Integer updateDeleteFlag(String userCode,String docCode); + Integer updateDeleteFlag(String userCode, String docCode); /** * 鍒犻櫎閭欢 + * * @param docCode * @return */ - Integer deleteReceivingMail(String userCode,String docCode); + Integer deleteEmail(String userCode, String docCode); /** - * 鍒犻櫎閭欢(鏍规嵁messageId鍒犻櫎) + * 鍒犻櫎閭欢(鏍规嵁messageId) + * * @param messagesId * @return */ - Integer deleteReceivingMail(String messageId); + Integer deleteEmail(String messageId); /** * 鑾峰彇閭欢鐨勮鎯呭唴瀹� + * * @param email * @param docCode * @return @@ -73,33 +74,41 @@ /** * 鑾峰彇閭欢涓嶅悓绫诲瀷鍒楄〃 + * * @param email * @param mailType - * @param isRead 鏄惁宸茶 + * @param isRead 鏄惁宸茶 * @return */ - List<t482101HList> getReceivingMailList(String email, Integer mailType, boolean isNoRead); - + List<t482101HList> getReceivingMailList(String email, Integer mailType, boolean isNoRead, String userCode, Integer page, Integer limit); /** - * 鑾峰彇閭鐨勬敹浠朵俊鎭� + * 鑾峰彇寰呭鐞嗛偖浠跺垪琛� * - * @param emailEntity + * @param email * @return */ - abstract List<t482101HEntity> getMailReceiving(T482102Entity emailEntity, HttpServletRequest request) throws MessagingException; + List<t482101HList> getHandleMailList(String email, String userCode, Integer page, Integer limit); /** - * 鍙戦�侀偖浠� - * @param t482101H 閭欢淇℃伅 - * @param request - * @throws MessagingException - * @throws IOException + * 鑾峰彇鏂囦欢澶归偖浠跺垪琛� + * + * @param email + * @return */ - abstract void sendingMail(t482101HEntity t482101H, HttpServletRequest request) throws Exception; + List<t482101HList> getFolderMailList(String type, String userCode, Integer page, Integer limit) throws Exception; + + /** + * 鑾峰彇鐢ㄦ埛鐨勫叏閮ㄩ偖浠� + * + * @param userCode + * @return + */ + List<t482101HList> getUserMailList(String userCode); /** * 鏇存柊鑽夌绠� + * * @param docCode * @return */ @@ -110,17 +119,11 @@ * @param docCode * @return */ - Integer deleteMailDrafts(String userCode,String docCode); - - /** - * 閭欢闄勪欢鐨勮皟鐢ㄥ鐞� - * @param unid - * @return - */ - abstract List<AttachmentEntity> getAttachmentEntityList(String unIdSeq); +// Integer deleteMailDrafts(String userCode,String docCode); /** * 鑾峰彇鏀朵欢閭宸茬粡瀛樺湪鐨凪essageId闆嗗悎 + * * @param receiver * @return */ @@ -128,7 +131,48 @@ /** * 鏇存柊涓哄凡璇� + * * @param docCode */ - abstract void updateRead(String docCode); + abstract void updateRead(String docCode, boolean status); + + /** + * 鏇存柊绉诲姩閭欢浣嶇疆 + * + * @param userCode + * @param docCode + * @param folderId + * @param tagId + * @return + */ + abstract void updateMailType(String docCode, Integer folderId, String tagId); + + /** + * 缁戝畾璐﹀彿鐨勯偖绠辨ā鍧� + * + * @param userCode + * @return + */ + abstract List<MailModuleEntity> getMailModuleList(String userCode); + + abstract List<MailModuleBelowEntity> getMailModuleBelowList(String userCode); + + /** + * 寰呭鐞嗛偖浠� + * + * @param handleTime + * @param docCode + */ + abstract void updateMailHandle(String handleTime, String docCode); + + /** + * 鏌ユ�绘暟 + * @param email + * @param mailType + * @param isNoRead + * @param id + * @param userCode + * @return + */ + abstract Integer getMailTotal(String email, Integer mailType, boolean isNoRead, String id, String userCode); } -- Gitblit v1.8.0