|
@@ -475,4 +475,30 @@ public class CmsUserController{
|
|
|
Integer newConsumerCount = userMapper.getNewMaliceUser(beginOfDay);
|
|
Integer newConsumerCount = userMapper.getNewMaliceUser(beginOfDay);
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(newConsumerCount > 0 ? true : false);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(newConsumerCount > 0 ? true : false);
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户ip列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/get/ip/list")
|
|
|
|
|
+ public Result<SearchResult<OrderDonLocationRelateView>> orderDonLocationRelateResult(Long userId) {
|
|
|
|
|
+ if (userId == null) {
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
|
|
+ }
|
|
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
|
|
+ SearchResult<OrderDonLocationRelateView> search = beanSearcher.search(OrderDonLocationRelateView.class, MapUtils.flatBuilder(request.getParameterMap()).put("userId", String.format("where user_id in (%s)", userIdList.toString().replaceAll("\\[", "").replaceAll("]", ""))).build());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 用户支付宝列表
|
|
|
|
|
+ */
|
|
|
|
|
+ @GetMapping("/get/zfb/list")
|
|
|
|
|
+ public Result<List<OrderDonBuyerView>> getZfbBuyers(Long userId) {
|
|
|
|
|
+ if (userId == null) {
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
|
|
+ }
|
|
|
|
|
+ List<Long> userIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
|
|
+ List<OrderDonBuyerView> orderDonBuyerViews = beanSearcher.searchAll(OrderDonBuyerView.class, MapUtils.flatBuilder(request.getParameterMap()).field(OrderDonBuyerView::getUserId, userIdList).op(Operator.InList).build());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(orderDonBuyerViews);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|