<table>
<thead>
<tr>
<th>用户名</th>
<th>日期</th>
<th>签到时间</th>
</tr>
</thead>
<tbody>
<tr th:if="${signList!=null}" th:each="sign,sStat:${signList}">
<td th:text="${sign.getUserName()}"></td>
<td th:text="${#dates.format(sign.getSignDate(),'MM-dd')}"></td>
<!-- 这个判断怎么写
判断日期是否为今天
是
判断签到时间是否为空
是
显示签到按钮
否
显示签到时间
否
判断签到时间是否为空
是
显示'-'
否
显示签到时间
-->
</tr>
</tbody>
</table>
数据
签到情况列表
用户名 日期 签到时间
aaa 8-17 08:00
aaa 8-18 08:00
aaa 8-19 null
aaa 8-20 08:00
aaa 8-21 08:00
aaa 8-22 null
期望结果
用户名 日期 签到时间
aaa 8-17 08:00
aaa 8-18 08:00
aaa 8-19 -
aaa 8-20 08:00
aaa 8-21 08:00
aaa 8-22 签到按钮
<thead>
<tr>
<th>用户名</th>
<th>日期</th>
<th>签到时间</th>
</tr>
</thead>
<tbody>
<tr th:if="${signList!=null}" th:each="sign,sStat:${signList}">
<td th:text="${sign.getUserName()}"></td>
<td th:text="${#dates.format(sign.getSignDate(),'MM-dd')}"></td>
<!-- 这个判断怎么写
判断日期是否为今天
是
判断签到时间是否为空
是
显示签到按钮
否
显示签到时间
否
判断签到时间是否为空
是
显示'-'
否
显示签到时间
-->
</tr>
</tbody>
</table>
数据
签到情况列表
用户名 日期 签到时间
aaa 8-17 08:00
aaa 8-18 08:00
aaa 8-19 null
aaa 8-20 08:00
aaa 8-21 08:00
aaa 8-22 null
期望结果
用户名 日期 签到时间
aaa 8-17 08:00
aaa 8-18 08:00
aaa 8-19 -
aaa 8-20 08:00
aaa 8-21 08:00
aaa 8-22 签到按钮