Authored by unknown

Update: 更新站内信type

1 package com.yoho.yhmessage.inbox.service.impl; 1 package com.yoho.yhmessage.inbox.service.impl;
2 2
3 -import java.util.ArrayList;  
4 -import java.util.Arrays;  
5 -import java.util.Date;  
6 -import java.util.HashMap;  
7 -import java.util.List;  
8 -import java.util.Map;  
9 -import java.util.Map.Entry;  
10 - 3 +import com.yoho.error.exception.ServiceException;
  4 +import com.yoho.message.dal.InBoxMapper;
  5 +import com.yoho.message.dal.model.InBox;
  6 +import com.yoho.service.model.msgcenter.inbox.McBatchInboxBO;
  7 +import com.yoho.service.model.response.CommonRspBO;
  8 +import com.yoho.yhmessage.inbox.service.IInBoxService;
11 import com.yoho.yhmessage.util.EmojiUtil; 9 import com.yoho.yhmessage.util.EmojiUtil;
12 import org.apache.commons.collections.CollectionUtils; 10 import org.apache.commons.collections.CollectionUtils;
13 import org.apache.commons.collections.MapUtils; 11 import org.apache.commons.collections.MapUtils;
@@ -16,12 +14,8 @@ import org.slf4j.LoggerFactory; @@ -16,12 +14,8 @@ import org.slf4j.LoggerFactory;
16 import org.springframework.beans.factory.annotation.Autowired; 14 import org.springframework.beans.factory.annotation.Autowired;
17 import org.springframework.stereotype.Service; 15 import org.springframework.stereotype.Service;
18 16
19 -import com.yoho.error.exception.ServiceException;  
20 -import com.yoho.message.dal.InBoxMapper;  
21 -import com.yoho.message.dal.model.InBox;  
22 -import com.yoho.service.model.msgcenter.inbox.McBatchInboxBO;  
23 -import com.yoho.service.model.response.CommonRspBO;  
24 -import com.yoho.yhmessage.inbox.service.IInBoxService; 17 +import java.util.*;
  18 +import java.util.Map.Entry;
25 19
26 @Service 20 @Service
27 public class InBoxServiceImpl implements IInBoxService { 21 public class InBoxServiceImpl implements IInBoxService {
@@ -60,7 +54,7 @@ public class InBoxServiceImpl implements IInBoxService { @@ -60,7 +54,7 @@ public class InBoxServiceImpl implements IInBoxService {
60 map.put(tableName, list); 54 map.put(tableName, list);
61 } 55 }
62 InBox box = this.genDefaultInbox(); 56 InBox box = this.genDefaultInbox();
63 - box.setType(mcBatchInboxBO.getType()); 57 + box.setType(String.valueOf(mcBatchInboxBO.getBusinessType() / 100));
64 box.setTitle(mcBatchInboxBO.getTitle()); 58 box.setTitle(mcBatchInboxBO.getTitle());
65 box.setContent(EmojiUtil.filterEmoji(mcBatchInboxBO.getContent())); 59 box.setContent(EmojiUtil.filterEmoji(mcBatchInboxBO.getContent()));
66 box.setVerifyKey(mcBatchInboxBO.getVerifyKey()); 60 box.setVerifyKey(mcBatchInboxBO.getVerifyKey());