master
jiangyunjie 6 years ago
parent 9d939e1c43
commit 25b42d4f57

@ -445,11 +445,11 @@ public class CustomerService {
List<FriendDTO> earlyList = opSellerCustomerRelationDOMapper.selectFriendListByShopId(shopId, sellerId, search, null, earlyDate, type);
results.put("early", earlyList);
} else {
List<FriendDTO> thisList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(sellerId, search, thisDate, thisDate, type);
List<FriendDTO> thisList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(userId, search, thisDate, thisDate, type);
results.put("this", thisList);
List<FriendDTO> lastList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(sellerId, search, lastDate, lastDate, type);
List<FriendDTO> lastList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(userId, search, lastDate, lastDate, type);
results.put("last", lastList);
List<FriendDTO> earlyList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(sellerId, search, null, earlyDate, type);
List<FriendDTO> earlyList = opSellerCustomerRelationDOMapper.selectFriendListBySeller(userId, search, null, earlyDate, type);
results.put("early", earlyList);
}
return results;

@ -18,14 +18,14 @@ public interface OpSellerCustomerRelationDOMapper extends BaseMapper<OpSellerCus
/**
*
* @param sellerId
* @param userId
* @param search
* @param startDate
* @param endDate
* @param type
* @return
*/
List<FriendDTO> selectFriendListBySeller(@Param("sellerId") Long sellerId,
List<FriendDTO> selectFriendListBySeller(@Param("userId") Long userId,
@Param("search") String search,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,

@ -28,8 +28,8 @@
<if test="type == 2">
and t3.id is null
</if>
<if test="sellerId != null and sellerId != 0">
and t4.user_id = #{sellerId}
<if test="userId != null">
and t5.id = #{userId}
</if>
<if test="search != null and search !=''">
and

Loading…
Cancel
Save