修改删除状态判断
This commit is contained in:
parent
ced4568e8d
commit
e0894211b5
@ -26,7 +26,7 @@ public class CaseClinicalArticleQueryForm extends PageParam {
|
|||||||
private Integer articleStatus;
|
private Integer articleStatus;
|
||||||
|
|
||||||
@Schema(description = "删除状态")
|
@Schema(description = "删除状态")
|
||||||
private Integer deleteStatus;
|
private Integer deleteStatus = 0;
|
||||||
|
|
||||||
@Schema(description = "发表时间")
|
@Schema(description = "发表时间")
|
||||||
private LocalDate pushDateBegin;
|
private LocalDate pushDateBegin;
|
||||||
|
|||||||
@ -26,7 +26,7 @@ public class CaseClinicalVideoQueryForm extends PageParam {
|
|||||||
private Integer videoStatus;
|
private Integer videoStatus;
|
||||||
|
|
||||||
@Schema(description = "删除状态")
|
@Schema(description = "删除状态")
|
||||||
private Integer deleteStatus;
|
private Integer deleteStatus = 0;
|
||||||
|
|
||||||
@Schema(description = "发表时间")
|
@Schema(description = "发表时间")
|
||||||
private LocalDate pushDateBegin;
|
private LocalDate pushDateBegin;
|
||||||
|
|||||||
@ -25,4 +25,7 @@ public class CaseExchangeQueryForm extends PageParam {
|
|||||||
|
|
||||||
@Schema(description = "是否被精选(0:否 1:是)")
|
@Schema(description = "是否被精选(0:否 1:是)")
|
||||||
private Integer isSelected;
|
private Integer isSelected;
|
||||||
|
|
||||||
|
@Schema(description = "deleteStatus(0:否 1:是)")
|
||||||
|
private Integer deleteStatus = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -45,7 +45,9 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<!--删除状态-->
|
<!--删除状态-->
|
||||||
AND case_clinical_article.delete_status = 0
|
<if test="queryForm.deleteStatus != null">
|
||||||
|
AND case_clinical_article.delete_status = #{queryForm.deleteStatus}
|
||||||
|
</if>
|
||||||
<!--状态-->
|
<!--状态-->
|
||||||
<if test="queryForm.articleStatus != null">
|
<if test="queryForm.articleStatus != null">
|
||||||
AND case_clinical_article.article_status = #{queryForm.articleStatus}
|
AND case_clinical_article.article_status = #{queryForm.articleStatus}
|
||||||
|
|||||||
@ -45,7 +45,9 @@
|
|||||||
)
|
)
|
||||||
</if>
|
</if>
|
||||||
<!--删除状态-->
|
<!--删除状态-->
|
||||||
AND case_clinical_video.delete_status = 0
|
<if test="queryForm.deleteStatus != null">
|
||||||
|
AND case_clinical_video.delete_status = #{queryForm.deleteStatus}
|
||||||
|
</if>
|
||||||
<!--状态-->
|
<!--状态-->
|
||||||
<if test="queryForm.videoStatus != null">
|
<if test="queryForm.videoStatus != null">
|
||||||
AND case_clinical_video.video_status = #{queryForm.videoStatus}
|
AND case_clinical_video.video_status = #{queryForm.videoStatus}
|
||||||
|
|||||||
@ -46,6 +46,9 @@
|
|||||||
<if test="queryForm.isSelected != null">
|
<if test="queryForm.isSelected != null">
|
||||||
AND case_exchange.is_selected = #{queryForm.isSelected}
|
AND case_exchange.is_selected = #{queryForm.isSelected}
|
||||||
</if>
|
</if>
|
||||||
|
<if test="queryForm.deleteStatus != null">
|
||||||
|
AND case_exchange.delete_status = #{queryForm.isSelected}
|
||||||
|
</if>
|
||||||
</where>
|
</where>
|
||||||
ORDER BY case_exchange.created_at DESC
|
ORDER BY case_exchange.created_at DESC
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user