Revision a0d9f09a
Von Sven Schöling vor fast 8 Jahren hinzugefügt
SL/BackgroundJob/CsvImport.pm | ||
---|---|---|
5 | 5 |
use parent qw(SL::BackgroundJob::Base); |
6 | 6 |
|
7 | 7 |
use YAML (); |
8 |
use SL::JSON; |
|
8 | 9 |
use SL::DB::CsvImportProfile; |
9 | 10 |
use SL::SessionFile::Random; |
10 | 11 |
|
... | ... | |
60 | 61 |
my $job = $self->{db_obj}; |
61 | 62 |
|
62 | 63 |
$c->profile($self->profile); |
64 |
$c->mappings(SL::JSON::from_json($self->profile->get('json_mappings'))) if $self->profile->get('json_mappings'); |
|
63 | 65 |
$c->type($job->data_as_hash->{type}); |
64 | 66 |
$c->{employee_id} = $job->data_as_hash->{employee_id}; |
65 | 67 |
|
Auch abrufbar als: Unified diff
CsvImport: Spaltenzuordnung für non multiplexed