Merge branch 'dev' of http://47.97.8.94:19527/yj/zn-cloud into dev-考勤
This commit is contained in:
commit
4c780ef8e6
@ -335,7 +335,10 @@ public class LogStatisticsServiceImpl implements LogStatisticsService {
|
||||
|
||||
@Override
|
||||
public List<LogStatisticsModelVO> getNeedWriteHistory(NeedWriteHistoryDTO dto) {
|
||||
List<String> dateList = DateUtils.betweenDayList(dto.getBeginTime(), dto.getEndTime());
|
||||
List<String> dateList = new ArrayList<>();
|
||||
if (dto.getBeginTime() != null && dto.getEndTime() != null) {
|
||||
dateList = DateUtils.betweenDayList(dto.getBeginTime(), dto.getEndTime());
|
||||
}
|
||||
dto.setUserId(SecurityFrameworkUtils.getLoginUserId());
|
||||
// 这里将区间转换为具体的日期 因为mysql BETWEEN 会导致索引失效
|
||||
return logStatisticsMapper.getNeedWriteHistory(dto, dateList);
|
||||
|
@ -137,7 +137,7 @@
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="dto.type != null">
|
||||
AND b.type = #{dto.type}
|
||||
AND a.type = #{dto.type}
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
Loading…
Reference in New Issue
Block a user