You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
4.2 KiB
Java
117 lines
4.2 KiB
Java
package com.kiisoo.ic.customer.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.kiisoo.ic.customer.bean.FriendDTO;
|
|
import com.kiisoo.ic.customer.entity.OpSellerCustomerRelation;
|
|
import org.apache.ibatis.annotations.Param;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 导购客户
|
|
*/
|
|
@Repository
|
|
public interface OpSellerCustomerRelationDOMapper extends BaseMapper<OpSellerCustomerRelation> {
|
|
|
|
/**
|
|
* 查询用户
|
|
* @param userId
|
|
* @param search
|
|
* @param startDate
|
|
* @param endDate
|
|
* @param type
|
|
* @return
|
|
*/
|
|
IPage<FriendDTO> selectFriendListBySeller(Page<FriendDTO> page,@Param("userId") Long userId,
|
|
@Param("search") String search,
|
|
@Param("startDate") Date startDate,
|
|
@Param("endDate") Date endDate,
|
|
@Param("type") Integer type);
|
|
|
|
/**
|
|
* 查询用户
|
|
* @param shopId
|
|
* @param sellerId
|
|
* @param search
|
|
* @param startDate
|
|
* @param endDate
|
|
* @param type
|
|
* @return
|
|
*/
|
|
IPage<FriendDTO> selectFriendListByShopId(Page<FriendDTO> page, @Param("shopId") Long shopId,
|
|
@Param("sellerId") Long sellerId,
|
|
@Param("search") String search,
|
|
@Param("startDate") Date startDate,
|
|
@Param("endDate") Date endDate,
|
|
@Param("type") Integer type);
|
|
|
|
/**
|
|
* 根据导购id查询导购名
|
|
* @param id
|
|
* @return
|
|
*/
|
|
String selectStaffName(@Param("id") Long id);
|
|
|
|
List<Map<String, Object>> selectAllCustomer(@Param("ids") List<Long> ids);
|
|
List<Map<String, Object>> selectAllCustomer1(@Param("ids") List<Long> ids);
|
|
|
|
List<Map<String, Object>> selectAllCustomerShop(@Param("ids") List<Long> ids);
|
|
List<Map<String, Object>> selectAllCustomerShop1(@Param("ids") List<Long> ids);
|
|
|
|
/**
|
|
* 查询好友列表,可根据导购、日期、搜索
|
|
* @param shopId 店铺ID
|
|
* @param sellerId 导购ID
|
|
* @param search 搜索内容
|
|
* @param startDate 开始日期
|
|
* @param endDate 结束日期
|
|
* @param type 类型
|
|
* @return 返回集合
|
|
* @author dexiang.jiang
|
|
* @date 2020/05/10 21:50
|
|
*/
|
|
IPage<FriendDTO> selectFriendListByShopIdAndDate(Page<FriendDTO> page, @Param("shopId") Long shopId,
|
|
@Param("sellerId") Long sellerId,
|
|
@Param("search") String search,
|
|
@Param("startDate") Date startDate,
|
|
@Param("endDate") Date endDate,
|
|
@Param("type") Integer type);
|
|
|
|
/**
|
|
* 查询用户
|
|
* @param userId
|
|
* @param search
|
|
* @param startDate
|
|
* @param endDate
|
|
* @param type
|
|
* @return
|
|
* @author dexiang.jiang
|
|
* @date 2020/05/10 22:01
|
|
*/
|
|
IPage<FriendDTO> selectFriendListBySellerAndDate(Page<FriendDTO> page,@Param("userId") Long userId,
|
|
@Param("search") String search,
|
|
@Param("startDate") Date startDate,
|
|
@Param("endDate") Date endDate,
|
|
@Param("type") Integer type);
|
|
|
|
Long selectSellerCustomerRelation(@Param("customerId") Long customerId, @Param("userId") Long userId, @Param("storeId") Long storeId);
|
|
|
|
|
|
List<Map<String, Object>> selectCustomersByCpUserId();
|
|
|
|
List<Map<String, Object>> selectCustomersByCpUserIdByList(@Param("cpUserIds")List<String> cpUserIds);
|
|
|
|
/**
|
|
* 查询好友关系
|
|
* @param storeCode
|
|
* @param unionId
|
|
* @return
|
|
*/
|
|
OpSellerCustomerRelation selectCustomerStoreRelation(@Param("storeCode")String storeCode,@Param("unionId") String unionId);
|
|
}
|