race modified

This commit is contained in:
Yan
2017-10-20 19:15:17 +06:30
parent 8f3b30f2fa
commit 52067dbd51

View File

@@ -21,8 +21,10 @@ class SeedGenerator < ApplicationRecord
puts "SSS"
puts next_val
cur_val2, next_val2 = self.update_seed(model, next_val, seed.increase_by)
puts next_val2
padding_len = 15 - prefix.length
saleOrderId = prefix +"-"+ cur_val2.to_s.to_s.rjust((14-prefix.length)+1,'0')
puts saleOrderId
return saleOrderId
end