mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 09:26:48 +08:00
Merge branch 'zcwy-0913-yang-case'
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
@@ -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" +
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
@@ -509,7 +509,11 @@ public class CasesServiceImpl implements ICasesService {
|
|||||||
|
|
||||||
// 拼接生成年度最佳标签
|
// 拼接生成年度最佳标签
|
||||||
if (e.getExcellent()!=null && e.getExcellent()) {
|
if (e.getExcellent()!=null && e.getExcellent()) {
|
||||||
e.setExcellentTag(e.getExcellentTime().format(DateTimeFormatter.ofPattern("yy年"))+"度最佳");
|
if (e.getDraftingTime()!=null){
|
||||||
|
e.setExcellentTag(e.getDraftingTime().format(DateTimeFormatter.ofPattern("yy年"))+"度最佳");
|
||||||
|
} else {
|
||||||
|
e.setExcellentTag(e.getSysCreateTime().format(DateTimeFormatter.ofPattern("yy年"))+"度最佳");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> authorTags = new ArrayList<>();
|
List<String> authorTags = new ArrayList<>();
|
||||||
@@ -1268,7 +1272,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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user