class TracingService extends RecordService {

    public Tracing deleteByRecordId(long recordId) {
        Tracing deleteTracing = tracingDao.getTracingById(recordId);
        if (deleteTracing != null && !deleteTracing.isSynced()) {
            return null;
        }
        tracingDao.delete(deleteTracing);
        tracingPhotoDao.deleteByTracingId(recordId);
        return deleteTracing;
    }

    public  TracingService(TracingDao tracingDao, TracingPhotoDao tracingPhotoDao);

}