app接口。新增了两个接口1
This commit is contained in:
parent
262e576192
commit
d2cb421fa7
@ -34,6 +34,12 @@ public class CaseClinicalArticleDto {
|
||||
@JsonProperty("article_status")
|
||||
private Integer articleStatus;
|
||||
|
||||
/**
|
||||
* 删除状态(0:否 1:是)
|
||||
*/
|
||||
@JsonProperty("delete_status")
|
||||
private Integer deleteStatus;
|
||||
|
||||
/**
|
||||
* 阅读量
|
||||
*/
|
||||
|
||||
@ -34,6 +34,12 @@ public class CaseClinicalVideoDto {
|
||||
@JsonProperty("video_status")
|
||||
private Integer videoStatus;
|
||||
|
||||
/**
|
||||
* 删除状态(0:否 1:是)
|
||||
*/
|
||||
@JsonProperty("delete_status")
|
||||
private Integer deleteStatus;
|
||||
|
||||
/**
|
||||
* 阅读量
|
||||
*/
|
||||
|
||||
@ -43,6 +43,12 @@ public class CaseExchangeDto {
|
||||
@JsonProperty("exchange_status")
|
||||
private Integer exchangeStatus;
|
||||
|
||||
/**
|
||||
* 删除状态(0:否 1:是)
|
||||
*/
|
||||
@JsonProperty("delete_status")
|
||||
private Integer deleteStatus;
|
||||
|
||||
/**
|
||||
* 阅读量
|
||||
*/
|
||||
|
||||
@ -53,7 +53,7 @@ public class IndexService {
|
||||
LambdaQueryWrapper<CaseClinicalArticleModel> caseClinicalArticleQueryWrapper = new LambdaQueryWrapper<>();
|
||||
caseClinicalArticleQueryWrapper.eq(CaseClinicalArticleModel::getArticleStatus, 1) // 上线状态
|
||||
.orderByDesc(CaseClinicalArticleModel::getCreatedAt) // 按发布时间倒序
|
||||
.last("LIMIT 2"); // 只取2条记录
|
||||
.last("LIMIT 3"); // 只取2条记录
|
||||
List<CaseClinicalArticleModel> latestArticles = caseClinicalArticleDao.selectList(caseClinicalArticleQueryWrapper);
|
||||
for (CaseClinicalArticleModel article : latestArticles) {
|
||||
// 查找作者
|
||||
@ -129,7 +129,7 @@ public class IndexService {
|
||||
// 医生病例库推荐-2条
|
||||
LambdaQueryWrapper<StatsCaseClinicalDoctorModel> statsCaseClinicalDoctorModelQueryWrapper = new LambdaQueryWrapper<>();
|
||||
statsCaseClinicalDoctorModelQueryWrapper.orderByDesc(StatsCaseClinicalDoctorModel::getArticleNum) // 按文章数量倒序
|
||||
.last("LIMIT 2"); // 只取2条记录
|
||||
.last("LIMIT 3"); // 只取2条记录
|
||||
List<StatsCaseClinicalDoctorModel> statsCaseClinicalDoctors = statsCaseClinicalDoctorDao.selectList(statsCaseClinicalDoctorModelQueryWrapper);
|
||||
for (StatsCaseClinicalDoctorModel doctor : statsCaseClinicalDoctors) {
|
||||
// 查询医生数据
|
||||
|
||||
@ -138,4 +138,6 @@ public class RewardPointService {
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user