| | |
| | | package com.yeshi.fanli.service.inter.order.msg;
|
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgOrderDetail;
|
| | | import com.yeshi.fanli.exception.msg.MsgOrderDetailException;
|
| | |
|
| | | public interface MsgOrderDetailService {
|
| | | /**
|
| | | * 添加到订单消息
|
| | | * |
| | | * @param detail
|
| | | * @throws MsgOrderDetailException
|
| | | */
|
| | | public void addMsgOrderDetail(MsgOrderDetail detail,boolean needNotify) throws MsgOrderDetailException;
|
| | |
|
| | | /**
|
| | | * 根据订单号用户ID更新数据
|
| | | * |
| | | * @param detail
|
| | | * @param needNotify-是否需要通知
|
| | | * @throws MsgOrderDetailException
|
| | | */
|
| | | public void updateMsgOrderDetail(MsgOrderDetail detail,boolean needNotify) throws MsgOrderDetailException;
|
| | |
|
| | | /**
|
| | | * 订单消息列表
|
| | | * |
| | | * @param uid
|
| | | * @param page
|
| | | * @return
|
| | | */
|
| | | public List<MsgOrderDetail> listMsgOrderDetail(Long uid, int page);
|
| | |
|
| | | /**
|
| | | * 根据订单号获取
|
| | | * @return
|
| | | */
|
| | | public List<MsgOrderDetail> listMsgOrderByOrderId(String orderId);
|
| | |
|
| | | /**
|
| | | * 订单消息数
|
| | | * |
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | | public long countMsgOrderDetail(Long uid);
|
| | |
|
| | | /**
|
| | | * 设置所有消息已读
|
| | | * |
| | | * @param uid
|
| | | */
|
| | | public void readMsgByUid(Long uid);
|
| | |
|
| | | public MsgOrderDetail selectByPrimaryKey(Long id);
|
| | |
|
| | | public void deleteByPrimaryKey(Long id);
|
| | | }
|
| | | package com.yeshi.fanli.service.inter.order.msg; |
| | | |
| | | import java.util.List; |
| | | |
| | | import com.yeshi.fanli.entity.bus.msg.MsgMoneyDetail; |
| | | import com.yeshi.fanli.entity.bus.msg.MsgOrderDetail; |
| | | import com.yeshi.fanli.exception.msg.MsgOrderDetailException; |
| | | |
| | | public interface MsgOrderDetailService { |
| | | /** |
| | | * 添加到订单消息 |
| | | * |
| | | * @param detail |
| | | * @throws MsgOrderDetailException |
| | | */ |
| | | public void addMsgOrderDetail(MsgOrderDetail detail,boolean needNotify) throws MsgOrderDetailException; |
| | | |
| | | /** |
| | | * 根据订单号用户ID更新数据 |
| | | * |
| | | * @param detail |
| | | * @param needNotify-是否需要通知 |
| | | * @throws MsgOrderDetailException |
| | | */ |
| | | public void updateMsgOrderDetail(MsgOrderDetail detail,boolean needNotify) throws MsgOrderDetailException; |
| | | |
| | | /** |
| | | * 订单消息列表 |
| | | * |
| | | * @param uid |
| | | * @param page |
| | | * @return |
| | | */ |
| | | public List<MsgOrderDetail> listMsgOrderDetail(Long uid, int page); |
| | | |
| | | public List<MsgOrderDetail> listDetail(List<Long> ids); |
| | | |
| | | /** |
| | | * 根据订单号获取 |
| | | * @return |
| | | */ |
| | | public List<MsgOrderDetail> listMsgOrderByOrderId(String orderId); |
| | | |
| | | /** |
| | | * 订单消息数 |
| | | * |
| | | * @param uid |
| | | * @return |
| | | */ |
| | | public long countMsgOrderDetail(Long uid); |
| | | |
| | | /** |
| | | * 设置所有消息已读 |
| | | * |
| | | * @param uid |
| | | */ |
| | | public void readMsgByUid(Long uid); |
| | | |
| | | public MsgOrderDetail selectByPrimaryKey(Long id); |
| | | |
| | | public void deleteByPrimaryKey(Long id); |
| | | } |