mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 19:06:49 +08:00
案例萃取,刷新排行与推荐案例
This commit is contained in:
@@ -46,12 +46,6 @@ public class CasesRank extends BaseEntity {
|
||||
private Integer monthlyIncrement;
|
||||
|
||||
|
||||
/**
|
||||
* 排行类型
|
||||
*/
|
||||
@Column(name = "rank_type")
|
||||
private Integer rankType;
|
||||
|
||||
@Column(name = "rise_rank_time")
|
||||
private LocalDateTime riseRankTime;
|
||||
|
||||
|
||||
@@ -1158,7 +1158,7 @@ public class CasesServiceImpl implements ICasesService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void refreshViewsRankOfMajor(){
|
||||
LocalDateTime riseRankTime = LocalDateTime.now().plusMonths(1).withDayOfMonth(1).minusDays(1).toLocalDate().atTime(23, 59, 59); // 上月最后一天的结束时间
|
||||
LocalDateTime riseRankTime = LocalDateTime.now().withDayOfMonth(1).minusDays(1).toLocalDate().atTime(23, 59, 59); // 上月最后一天的结束时间
|
||||
int count = casesRankDao.sqlCount("SELECT count(1) FROM boe_cases_rank WHERE deleted=0 AND rise_rank_time = ?1", riseRankTime);
|
||||
if (count > 0){
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user