四川双晟对接完成

This commit is contained in:
wangshilong 2024-11-25 22:44:10 +08:00
parent eee0d0b810
commit 68fc310305
1 changed files with 3 additions and 3 deletions

View File

@ -29,9 +29,9 @@ import java.util.stream.Collectors;
@RequiredArgsConstructor @RequiredArgsConstructor
public class AutoCollectJobs { public class AutoCollectJobs {
private static final String SQL = "SELECT id as commandId, ref_id as deviceId, command, " + private static final String SQL = "SELECT c.id AS commandId,c.ref_id AS deviceId,c.command, " +
"message_length messageLength, '4B454E454E4731343030303030333538' as identifier FROM commands " + "c.message_length messageLength,d.gateway_sn AS identifier FROM commands c JOIN device d " +
"WHERE type = 'COLLECTION' and ref_type = 'DEVICE' and id < 10099 order by id"; "ON c.ref_id = d.id WHERE c.type = 'COLLECTION' AND c.ref_type = 'DEVICE' ORDER BY c.id ";
private final JdbcTemplate jdbcTemplate; private final JdbcTemplate jdbcTemplate;
private final ModbusTCPController controller; private final ModbusTCPController controller;