mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-05-10 14:06:26 +02:00
shareeweb-ren, Mlogic and sigo_cupdate
This commit is contained in:
parent
fd29218991
commit
d06556bd60
11 changed files with 125 additions and 79 deletions
|
@ -1034,6 +1034,34 @@ sub send_password(){
|
|||
|
||||
}
|
||||
|
||||
#TODO, not ready!
|
||||
sub sigobike_cupdate {
|
||||
my $self = shift;
|
||||
my $record_sigo = shift;
|
||||
my $dbh = "";
|
||||
|
||||
my $rows = 0;
|
||||
foreach my $bid (keys (%$record_sigo)){
|
||||
my $update = {
|
||||
%{$record_sigo->{$bid}},
|
||||
table => "content",
|
||||
template_id => "205",
|
||||
main_id => "300102",
|
||||
mtime => "now()",
|
||||
owner => "169",
|
||||
};
|
||||
|
||||
$bw->log("UPDATE content from record_sigo with bike nr:",$record_sigo->{$bid}->{barcode},"");
|
||||
#$rows = $self->update_record($dbh,$update,$record_sigo->{$bid}->{barcode});
|
||||
if($rows != 1){
|
||||
my $c_id = "";
|
||||
$bw->log("INSERT content from record_sigo with bike nr:",$record_sigo->{$bid}->{barcode},"");
|
||||
#$c_id = $self->insert_contentoid($dbh,$update,"");
|
||||
$rows = 1 if($c_id);
|
||||
}
|
||||
}
|
||||
return $rows;
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue