Authored by unknown

Update: 更新站内信type

package com.yoho.yhmessage.inbox.service.impl;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import com.yoho.error.exception.ServiceException;
import com.yoho.message.dal.InBoxMapper;
import com.yoho.message.dal.model.InBox;
import com.yoho.service.model.msgcenter.inbox.McBatchInboxBO;
import com.yoho.service.model.response.CommonRspBO;
import com.yoho.yhmessage.inbox.service.IInBoxService;
import com.yoho.yhmessage.util.EmojiUtil;
import org.apache.commons.collections.CollectionUtils;
import org.apache.commons.collections.MapUtils;
... ... @@ -16,12 +14,8 @@ import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yoho.error.exception.ServiceException;
import com.yoho.message.dal.InBoxMapper;
import com.yoho.message.dal.model.InBox;
import com.yoho.service.model.msgcenter.inbox.McBatchInboxBO;
import com.yoho.service.model.response.CommonRspBO;
import com.yoho.yhmessage.inbox.service.IInBoxService;
import java.util.*;
import java.util.Map.Entry;
@Service
public class InBoxServiceImpl implements IInBoxService {
... ... @@ -60,7 +54,7 @@ public class InBoxServiceImpl implements IInBoxService {
map.put(tableName, list);
}
InBox box = this.genDefaultInbox();
box.setType(mcBatchInboxBO.getType());
box.setType(String.valueOf(mcBatchInboxBO.getBusinessType() / 100));
box.setTitle(mcBatchInboxBO.getTitle());
box.setContent(EmojiUtil.filterEmoji(mcBatchInboxBO.getContent()));
box.setVerifyKey(mcBatchInboxBO.getVerifyKey());
... ...