|
|
@ -159,7 +159,7 @@ public class dbWarehouseHandler extends dbHandlerBase { |
|
|
|
|
|
|
|
|
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
try (Connection connection = DbManager.getConnection(); |
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_workorders` (`workorderID`, `workorder`) VALUES (?, ?) " + |
|
|
|
PreparedStatement preparedStatement = connection.prepareStatement("INSERT INTO `dyn_workorders` (`workorderID`, `workorder`) VALUES (?, ?) " + |
|
|
|
"ON DUPLICATE KEY UPDATE `workoder` = VALUES(`workoder`)")) { |
|
|
|
"ON DUPLICATE KEY UPDATE `workorder` = VALUES(`workorder`)")) { |
|
|
|
|
|
|
|
|
|
|
|
preparedStatement.setInt(1, workOrder.workOrderID); |
|
|
|
preparedStatement.setInt(1, workOrder.workOrderID); |
|
|
|
preparedStatement.setString(2, warehouseJSON.toString()); |
|
|
|
preparedStatement.setString(2, warehouseJSON.toString()); |
|
|
|