develop
hanrenchun 9 months ago
parent 3bc7b3a1f1
commit 040c6dcf2b

@ -69,8 +69,8 @@ public class TransitUserRecordController extends BaseController {
}else if (transitUserRecord.getDeviceCode() == null){
LocalDateTime now = LocalDateTime.now();
LocalDateTime minusDay = now.minusDays(1);
queryWrapper.in("device_code",collect)
.and(wrapper -> wrapper.isNotNull("id_card").or().isNotNull("user_name"));
queryWrapper.in("device_code",collect);
// .and(wrapper -> wrapper.isNotNull("id_card").or().isNotNull("user_name"));
queryWrapper.between("partition_field", formatter.format(minusDay), formatter.format(now));
}
queryWrapper.orderByDesc("partition_field");

Loading…
Cancel
Save