update patrol_device_state_record set task_state = 1 where FIND_IN_SET(patrol_device_code, #{deviceCodes}) and TO_DAYS(now()) = TO_DAYS(time)