package com.yeshi.fanli.service.impl.msg;
|
|
import java.util.Date;
|
|
import javax.annotation.Resource;
|
|
import org.springframework.stereotype.Service;
|
|
import com.yeshi.fanli.dao.mybatis.msg.MsgExtraMapper;
|
import com.yeshi.fanli.entity.bus.msg.MsgExtra;
|
import com.yeshi.fanli.service.inter.msg.MsgExtraService;
|
|
@Service
|
public class MsgExtraServiceImpl implements MsgExtraService {
|
|
@Resource
|
private MsgExtraMapper msgExtraMapper;
|
|
@Override
|
public void addMsgExtra(long rid, String content, String type){
|
MsgExtra msgExtra = new MsgExtra();
|
msgExtra.setRid(rid);
|
msgExtra.setType(type);
|
msgExtra.setContent(content);
|
msgExtra.setCreateTime(new Date());
|
msgExtraMapper.insertSelective(msgExtra);
|
}
|
|
}
|