commit 03/09/2025

This commit is contained in:
2025-09-03 13:51:38 +07:00
parent ea04f8d316
commit ff4f0fd742
5 changed files with 508 additions and 105 deletions

View File

@@ -1157,7 +1157,7 @@ class MariaDB(
* Exports the messagebank table to an XLSX workbook.
* @return An XSSFWorkbook containing the messagebank data.
*/
fun Export_Messagebank_XLSX(): XSSFWorkbook {
fun Export_Messagebank_XLSX(): XSSFWorkbook? {
try {
val statement = connection?.createStatement()
val resultSet = statement?.executeQuery("SELECT * FROM messagebank")
@@ -1188,7 +1188,7 @@ class MariaDB(
} catch (e: Exception) {
Logger.error { "Error exporting Messagebank, Msg: ${e.message}" }
}
return XSSFWorkbook()
return null
}
fun Import_Messagebank_XLSX(workbook: XSSFWorkbook): Boolean {