数据源

pull/2/head
chenbingxuan 2023-12-11 15:19:38 +08:00
parent 8e05fd0d30
commit 9e9c4052e0
5 changed files with 2 additions and 2 deletions

View File

@ -192,7 +192,7 @@ public class DataDatabaseServiceImpl extends BaseServiceImpl<DataDatabaseDao, Da
properties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName()); properties.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName());
properties.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName()); properties.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, org.apache.kafka.common.serialization.StringSerializer.class.getName());
// 创建生产者 // 创建生产者方娇大傻蛋
Producer<String, String> producer = null; Producer<String, String> producer = null;
try { try {
producer = new org.apache.kafka.clients.producer.KafkaProducer<>(properties); producer = new org.apache.kafka.clients.producer.KafkaProducer<>(properties);

View File

@ -75,7 +75,7 @@ public class DatabaseRedisImpl extends DatabaseMysqlImpl implements IDatabaseInt
cd.setFieldTypeName(dataType); cd.setFieldTypeName(dataType);
int csize = columnSize != null ? Integer.parseInt(columnSize) : 0; int csize = columnSize != null ? Integer.parseInt(columnSize) : 0;
cd.setDisplaySize(csize); cd.setDisplaySize(csize);
cd.setPrecisionSize(csize); cd .setPrecisionSize(csize);
cd.setScaleSize(decimalDigits != null ? Integer.parseInt(decimalDigits) : 0); cd.setScaleSize(decimalDigits != null ? Integer.parseInt(decimalDigits) : 0);
cd.setRemarks(columnComment); cd.setRemarks(columnComment);
break; break;