2 changed files with 30 additions and 1 deletions
@ -0,0 +1,20 @@ |
|||
|
|||
package com.techsor.datacenter.sender.dao; |
|||
|
|||
import org.springframework.jdbc.core.JdbcTemplate; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import jakarta.annotation.Resource; |
|||
|
|||
@Component |
|||
public class CsdjLogDao { |
|||
|
|||
@Resource |
|||
private JdbcTemplate jdbcTemplate; |
|||
|
|||
public void insertCsdjLog(String terminalId, String rawHex, Long createdAt) { |
|||
String sql = "INSERT INTO csdj_log (terminal_id, raw_hex, created_at) VALUES (?, ?, ?)"; |
|||
jdbcTemplate.update(sql, terminalId, rawHex, createdAt); |
|||
} |
|||
} |
|||
|
|||
Loading…
Reference in new issue