Thymeleaf常用语法:条件判断 if、switch case
<div class="ibox-diy" th:if="${activity.activityType} eq 3"> <div class="ibox-content-diy"> <small>已付尾款订单数量</small> <h1>[[${dailyData.tailOrderNum}]]</h1> </div> </div> <div class="ibox-diy" th:if="${activity.activityType} ne 3"> <div class="ibox-content-diy"> <small>订单数量</small> <h1>[[${dailyData.orderNum}]]</h1> </div> </div>
https://www.cnblogs.com/gdjlc/p/11695517.html