wuxw
2021-04-23 e9be8d15ab3ee20685793e16071c56485b32e33a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package com.java110.api.bmo.msg.impl;
 
import com.alibaba.fastjson.JSONObject;
import com.java110.api.bmo.ApiBaseBMO;
import com.java110.api.bmo.msg.IMsgBMO;
import com.java110.core.context.DataFlowContext;
import com.java110.po.message.MsgReadPo;
import com.java110.utils.constant.BusinessTypeConstant;
import com.java110.utils.util.BeanConvertUtil;
import org.springframework.stereotype.Service;
 
/**
 * @ClassName MsgBMOImpl
 * @Description TODO
 * @Author wuxw
 * @Date 2020/3/9 23:00
 * @Version 1.0
 * add by wuxw 2020/3/9
 **/
@Service("msgBMOImpl")
public class MsgBMOImpl extends ApiBaseBMO implements IMsgBMO {
 
 
    public void addReadMsg(JSONObject paramInJson, DataFlowContext context) {
 
        JSONObject businessMsgRead = new JSONObject();
        businessMsgRead.put("msgReadId", "-1");
        businessMsgRead.putAll(paramInJson);
        MsgReadPo msgReadPo = BeanConvertUtil.covertBean(businessMsgRead, MsgReadPo.class);
 
        super.insert(context, msgReadPo, BusinessTypeConstant.BUSINESS_TYPE_SAVE_MSG_READ);
    }
}