Browse Source

Worker saved upon submit

combat-2
MagicBot 7 months ago
parent
commit
684a5459b3
  1. 2
      src/engine/db/handlers/dbWarehouseHandler.java

2
src/engine/db/handlers/dbWarehouseHandler.java

@ -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());

Loading…
Cancel
Save