案例萃取,类型修改

This commit is contained in:
yang
2024-09-14 13:15:21 +08:00
parent e6feea6dbf
commit c2de2a433b
4 changed files with 4 additions and 4 deletions

View File

@@ -686,7 +686,7 @@ public class CasesApi extends ApiBaseController {
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
@GetMapping("/queryPopularityOfMajor") @GetMapping("/queryPopularityOfMajor")
public JsonResponse<List<Cases>> queryPopularityOfMajor(@RequestParam(required = false) Integer pageSize, public JsonResponse<List<Cases>> queryPopularityOfMajor(@RequestParam(required = false) Integer pageSize,
@RequestParam Long majorId, @RequestParam String majorId,
@RequestParam LocalDateTime rankMonth) { @RequestParam LocalDateTime rankMonth) {
String accountId = getCurrent().getAccountId(); String accountId = getCurrent().getAccountId();
List<Cases> caseRankingVoList =casesService.queryPopularityOfMajor(pageSize,majorId,rankMonth,accountId); List<Cases> caseRankingVoList =casesService.queryPopularityOfMajor(pageSize,majorId,rankMonth,accountId);

View File

@@ -63,7 +63,7 @@ public class CasesRankDao extends BaseDao<CasesRank> {
} }
public List<HashMap<String, Object>> findPopularityOfMajor(Integer pageSize, LocalDateTime startTime, LocalDateTime endTime, Long majorId) { public List<HashMap<String, Object>> findPopularityOfMajor(Integer pageSize, LocalDateTime startTime, LocalDateTime endTime, String majorId) {
String sql = String sql =
"SELECT bcr.case_id,bcr.rank\n" + "SELECT bcr.case_id,bcr.rank\n" +

View File

@@ -133,7 +133,7 @@ public interface ICasesService{
List<CaseRankingVo> queryRank(Integer pageSize, Integer rankType); List<CaseRankingVo> queryRank(Integer pageSize, Integer rankType);
List<Cases> queryPopularityOfMajor(Integer pageSize, Long majorId, LocalDateTime month, String accountId); List<Cases> queryPopularityOfMajor(Integer pageSize, String majorId, LocalDateTime month, String accountId);
PageList<FavoriteCaseOfIndexVo> queryFavoriteCaseOfIndex(Integer pageIndex, Integer pageSize, String accountId); PageList<FavoriteCaseOfIndexVo> queryFavoriteCaseOfIndex(Integer pageIndex, Integer pageSize, String accountId);

View File

@@ -1262,7 +1262,7 @@ public class CasesServiceImpl implements ICasesService {
@Override @Override
public List<Cases> queryPopularityOfMajor(Integer pageSize, Long majorId, LocalDateTime month, String accountId) { public List<Cases> queryPopularityOfMajor(Integer pageSize, String majorId, LocalDateTime month, String accountId) {
if (pageSize == null) { if (pageSize == null) {
pageSize = 10; pageSize = 10;
} }