mulitple task and battery management

This commit is contained in:
ragu 2022-12-30 19:51:45 +01:00
parent 6b576460b2
commit 5cfcdb82f7
5 changed files with 69 additions and 33 deletions

View file

@ -130,13 +130,14 @@ sub tpl(){
foreach my $key (keys %$cttpos1){
$cttpos_trans->{"trans_" . $key} = $cttpos1->{$key};
}
my $cttpos2 = $db->collect_postime("contenttheftpos","$search_startdt","$search_enddt","$start_date_time","$end_date_time");
foreach my $key (keys %$cttpos2){
$cttpos_theft->{"theft_" . $key} = $cttpos2->{$key};
}
#my $cttpos2 = $db->collect_postime("contenttheftpos","$search_startdt","$search_enddt","$start_date_time","$end_date_time");
#foreach my $key (keys %$cttpos2){
# $cttpos_theft->{"theft_" . $key} = $cttpos2->{$key};
#}
}
$cttpos = { %$cttpos_trans, %$cttpos_theft };
#$cttpos = { %$cttpos_trans, %$cttpos_theft };
$cttpos = { %$cttpos_trans };
my $table = $node_meta->{ct_table} || "";

View file

@ -134,7 +134,7 @@ sub tpl(){
$searchref->{template_id_pos} = "$node_meta->{tpl_id}";
$tpl_ids = "205";
$tpl_ids = "225" if($node_meta->{tpl_id} == 499);
$node_meta->{tpl_order} .= ",txt10=Redistribution" if($node_meta->{tpl_id} != 499);
$node_meta->{tpl_order} .= ",int04=Station on insert,txt10=Redistribution" if($node_meta->{tpl_id} != 499);
}
elsif($node_meta->{tpl_id} > 600 && $node_meta->{tpl_id} < 700){
$table = "contentadr";