mirror of
https://gitlab.com/t6353/sharee.bike.git
synced 2025-07-13 00:36:34 +02:00
station bike group select by type_id
This commit is contained in:
parent
556809afb7
commit
c48a393b10
11 changed files with 51 additions and 50 deletions
Binary file not shown.
|
@ -21,7 +21,7 @@ public class Ilockauth {
|
|||
//System.out.println("Opened database successfully");
|
||||
|
||||
stmt = c.createStatement();
|
||||
ResultSet rs = stmt.executeQuery( "SELECT * FROM content where barcode=" + bike_id + ";" );
|
||||
ResultSet rs = stmt.executeQuery( "SELECT * FROM content where barcode=" + bike_id + " and int11=2;" );
|
||||
while ( rs.next() ) {
|
||||
|
||||
byte[] randomNum = new byte[16];
|
||||
|
|
Binary file not shown.
|
@ -13,7 +13,7 @@ BEGIN {
|
|||
$syshost = $ARGV[0] || exit 1;
|
||||
}
|
||||
|
||||
use lib "/var/www/copri4/$syshost/src";
|
||||
use lib "/var/www/copri-bike/$syshost/src";
|
||||
|
||||
my $dbname = $ARGV[1] || "";
|
||||
my $bike = $ARGV[2] || "";
|
||||
|
@ -31,7 +31,7 @@ my %varenv = $cf->envonline("$syshost");
|
|||
my $now_dt = strftime "%Y-%m-%d %H:%M:%S", localtime;
|
||||
|
||||
|
||||
my @K_select = `cd /var/www/copri4/$varenv{syshost}/src/scripts && export CLASSPATH='.:/usr/share/java:/usr/share/java/postgresql.jar' && java Ilockauth $dbname $bike`;
|
||||
my @K_select = `cd /var/www/copri-bike/$varenv{syshost}/src/scripts && export CLASSPATH='.:/usr/share/java:/usr/share/java/postgresql.jar' && java Ilockauth $dbname $bike`;
|
||||
foreach(@K_select){
|
||||
my ($K_key,$K_val) = split(/ = /, $_);
|
||||
$K_val =~ s/\n//g;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue