| | |
| | | * @return |
| | | */ |
| | | Long countByUid(@Param("uid") Long uid); |
| | | |
| | | |
| | | /** |
| | | * 设置消息已读时 |
| | | * |
| | |
| | | */ |
| | | void setMsgReadByUid(Long uid); |
| | | |
| | | /** |
| | | * 根据邀请关系ID删除 |
| | | * |
| | | * @param threeSaleId |
| | | * @return |
| | | */ |
| | | int deleteByThreeSaleId(Long threeSaleId); |
| | | |
| | | } |
| | |
| | | <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">delete from |
| | | yeshi_ec_msg_invite where mi_id = #{id,jdbcType=BIGINT} |
| | | </delete> |
| | | |
| | | <delete id="deleteByThreeSaleId"> |
| | | delete from |
| | | yeshi_ec_msg_invite where mi_invite_id = #{0} |
| | | </delete> |
| | | |
| | | |
| | | <insert id="insert" parameterType="com.yeshi.fanli.entity.bus.msg.MsgInviteDetail" |
| | | useGeneratedKeys="true" keyProperty="id">insert into yeshi_ec_msg_invite |
| | | (mi_id,mi_uid,mi_type,mi_invite_id,mi_desc,mi_beizhu,mi_read,mi_create_time,mi_update_time) |
| | |
| | | msgInviteDetailMapper.setMsgReadByUid(uid);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void deleteByThreeSale(ThreeSale sale) {
|
| | | if (sale == null)
|
| | | return;
|
| | | msgInviteDetailMapper.deleteByThreeSaleId(sale.getId());
|
| | | }
|
| | |
|
| | | }
|
| | |
| | | import java.util.List;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.msg.MsgInviteDetail;
|
| | | import com.yeshi.fanli.entity.bus.user.ThreeSale;
|
| | | import com.yeshi.fanli.exception.msg.MsgInviteDetailException;
|
| | |
|
| | | public interface MsgInviteDetailService {
|
| | |
| | | * @return
|
| | | */
|
| | | public long countMsgInviteDetail(Long uid);
|
| | | |
| | |
|
| | | /**
|
| | | * 设置所有消息已读
|
| | | *
|
| | | * @param uid
|
| | | */
|
| | | public void readMsgByUid(Long uid);
|
| | |
|
| | | /**
|
| | | * 根据邀请关系ID删除
|
| | | * |
| | | * @param sale
|
| | | */
|
| | | public void deleteByThreeSale(ThreeSale sale);
|
| | | }
|