update:
1. fix
This commit is contained in:
@@ -39,7 +39,9 @@ import org.springblade.core.secure.annotation.PreAuth;
|
|||||||
import org.springblade.core.tool.api.R;
|
import org.springblade.core.tool.api.R;
|
||||||
import org.springblade.core.tool.utils.Func;
|
import org.springblade.core.tool.utils.Func;
|
||||||
import org.springblade.modules.market.manager.MarketUserManager;
|
import org.springblade.modules.market.manager.MarketUserManager;
|
||||||
|
import org.springblade.modules.market.pojo.entity.MarketDailySummaryEntity;
|
||||||
import org.springblade.modules.market.pojo.vo.*;
|
import org.springblade.modules.market.pojo.vo.*;
|
||||||
|
import org.springblade.modules.market.service.IMarketDailySummaryService;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
import org.springblade.modules.market.pojo.entity.MarketInfoEntity;
|
||||||
@@ -48,7 +50,7 @@ import org.springblade.modules.market.service.IMarketInfoService;
|
|||||||
import org.springblade.core.boot.ctrl.BladeController;
|
import org.springblade.core.boot.ctrl.BladeController;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
/**
|
/**
|
||||||
* 用户拓展信息表 控制器
|
* 用户拓展信息表 控制器
|
||||||
*
|
*
|
||||||
@@ -64,6 +66,7 @@ public class MarketInfoController extends BladeController {
|
|||||||
|
|
||||||
private final IMarketInfoService marketInfoService;
|
private final IMarketInfoService marketInfoService;
|
||||||
private final MarketUserManager marketUserManager;
|
private final MarketUserManager marketUserManager;
|
||||||
|
private final IMarketDailySummaryService summaryService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户拓展信息表 详情
|
* 用户拓展信息表 详情
|
||||||
@@ -169,12 +172,17 @@ public class MarketInfoController extends BladeController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/getUserPerformance")
|
@GetMapping("/getUserPerformance")
|
||||||
@ApiOperationSupport(order = 11)
|
@ApiOperationSupport(order = 12)
|
||||||
@Operation(summary = "用户业绩统计", description = "传入userId")
|
@Operation(summary = "用户业绩统计", description = "传入userId")
|
||||||
public R<UserPerformanceVO> getUserPerformance(@RequestParam Long userId) {
|
public R<UserPerformanceVO> getUserPerformance(@RequestParam Long userId) {
|
||||||
return R.data(marketUserManager.getUserPerformance(userId));
|
return R.data(marketUserManager.getUserPerformance(userId));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@GetMapping("/daily-summary-list")
|
||||||
|
@ApiOperationSupport(order = 13)
|
||||||
|
@Operation(summary = "用户统计数据", description = "传入userId")
|
||||||
|
public R<List<MarketDailySummaryEntity>> dailySummaryList(@RequestParam Long userId) {
|
||||||
|
return R.data(summaryService.selectListByUserId(userId));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -60,4 +60,7 @@ public interface IMarketDailySummaryService extends BaseService<MarketDailySumma
|
|||||||
List<MarketDailySummaryExcel> exportDailySummary(Wrapper<MarketDailySummaryEntity> queryWrapper);
|
List<MarketDailySummaryExcel> exportDailySummary(Wrapper<MarketDailySummaryEntity> queryWrapper);
|
||||||
|
|
||||||
List<MarketSummaryInfoApiVO> selectInfoListByPid(Long userId);
|
List<MarketSummaryInfoApiVO> selectInfoListByPid(Long userId);
|
||||||
|
|
||||||
|
List<MarketDailySummaryEntity> selectListByUserId(Long userId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,6 +25,7 @@
|
|||||||
*/
|
*/
|
||||||
package org.springblade.modules.market.service.impl;
|
package org.springblade.modules.market.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
||||||
import lombok.AllArgsConstructor;
|
import lombok.AllArgsConstructor;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springblade.core.log.exception.ServiceException;
|
import org.springblade.core.log.exception.ServiceException;
|
||||||
@@ -112,6 +113,11 @@ public class MarketDailySummaryServiceImpl extends BaseServiceImpl<MarketDailySu
|
|||||||
return voList;
|
return voList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public List<MarketDailySummaryEntity> selectListByUserId(Long userId) {
|
||||||
|
return list(Wrappers.lambdaQuery(MarketDailySummaryEntity.class).eq(MarketDailySummaryEntity::getUserId, userId).eq(MarketDailySummaryEntity::getIsDeleted, 0).orderByDesc(MarketDailySummaryEntity::getId));
|
||||||
|
}
|
||||||
|
|
||||||
private String desensitizationByName(String name) {
|
private String desensitizationByName(String name) {
|
||||||
return name.replaceAll("^(.).*$", "$1" + "*".repeat(name.length() - 1));
|
return name.replaceAll("^(.).*$", "$1" + "*".repeat(name.length() - 1));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user