|
|
@@ -16,10 +16,13 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import com.goafanti.app.bo.IndexBo;
|
|
|
import com.goafanti.common.dao.JpushEasemobAccountMapper;
|
|
|
+import com.goafanti.common.dao.JtMessageConsumerMapper;
|
|
|
import com.goafanti.common.dao.MessageFromSystemMapper;
|
|
|
import com.goafanti.common.dao.MessageProducerMapper;
|
|
|
import com.goafanti.common.model.Admin;
|
|
|
import com.goafanti.common.model.JpushEasemobAccount;
|
|
|
+import com.goafanti.common.model.JtMessageConsumer;
|
|
|
+import com.goafanti.common.model.JtMessageProducer;
|
|
|
import com.goafanti.common.model.MessageConsumer;
|
|
|
import com.goafanti.common.model.MessageFromSystem;
|
|
|
import com.goafanti.common.model.MessageProducer;
|
|
|
@@ -45,6 +48,8 @@ public class MessageServiceImpl extends BaseMybatisDao<MessageFromSystemMapper>
|
|
|
private JpushEasemobAccountMapper jpushEasemobAccountMapper;
|
|
|
@Autowired
|
|
|
private JGMessageHelper jgMessageHelper;
|
|
|
+ @Autowired
|
|
|
+ private JtMessageConsumerMapper jtMessageConsumerMapper;
|
|
|
@Override
|
|
|
public String selectSendUser(Map<Integer, String> selectMap,Integer type) {
|
|
|
if(selectMap.containsKey(ConsumerType.PERSON_CUSTOMER_RETAIL.getTypeCode())){ //客户散户
|
|
|
@@ -429,4 +434,39 @@ public class MessageServiceImpl extends BaseMybatisDao<MessageFromSystemMapper>
|
|
|
return jpushEasemobAccountMapper.insert(jea);
|
|
|
}
|
|
|
|
|
|
+ @SuppressWarnings("unchecked")
|
|
|
+ @Override
|
|
|
+ public Pagination<MessageListBo> applistMessage(Integer pageNo, Integer pageSize) {
|
|
|
+ Map<String,Object> params = new HashMap<String,Object>();
|
|
|
+ if(null==pageNo||pageNo<0)pageNo=1;
|
|
|
+ if(null==pageSize||pageSize<0)pageNo=10;
|
|
|
+ params.put("uid", TokenManager.getUserId());
|
|
|
+ params.put("uid", "2160baeb-8ea4-4192-a6f4-fccf8738e248");
|
|
|
+ return (Pagination<MessageListBo>)findPage("appMessageList", "appMessageCount", params, pageNo, pageSize);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public MessageListBo appReadMessage(String id) {
|
|
|
+ JtMessageConsumer mc=new JtMessageConsumer();
|
|
|
+ mc.setId(id);
|
|
|
+ mc.setIsRead((byte)1);
|
|
|
+ jtMessageConsumerMapper.updateByPrimaryKeySelective(mc);
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int addMessage(JtMessageProducer messageProducer) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public int sendMessage(String messageId) {
|
|
|
+ // TODO Auto-generated method stub
|
|
|
+ return 0;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|