|
|
|
@@ -350,7 +350,8 @@ open class StockLedgerFixExportService( |
|
|
|
) |
|
|
|
if (batch > 0) writer.write(";\n\n") |
|
|
|
if (any) { |
|
|
|
writer.write("$updateSql\n\n") |
|
|
|
val sql = updateSql.trim().let { if (it.endsWith(";")) it else "$it;" } |
|
|
|
writer.write("$sql\n\n") |
|
|
|
} else { |
|
|
|
writer.write("$emptyComment\n\n") |
|
|
|
} |
|
|
|
@@ -468,7 +469,7 @@ open class StockLedgerFixExportService( |
|
|
|
INNER JOIN tmp_slf_ill_in t ON t.id = ill.id |
|
|
|
SET ill.inQty = t.inQty, |
|
|
|
ill.modified = t.modified, |
|
|
|
ill.modifiedBy = t.modifiedBy |
|
|
|
ill.modifiedBy = t.modifiedBy; |
|
|
|
""".trimIndent(), |
|
|
|
emptyComment = "-- (no 2.7a lot-line inQty in range)", |
|
|
|
) |
|
|
|
|