educode_sales 0.9.13 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd9571c825586b6b901720a7acfd9ac401a2e84f1b3bb98224833b5de7578fa7
|
4
|
+
data.tar.gz: 7a6765a20f54183d0381f712b6ec5252ad3ccc23f9878dccd319e554196a3b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e2896e169cefb432bff39d3c7939ede157dc7b8afdc93e47819eeed88f724153b3687aa6abff9fc97497d724aed80673b3be15c51999abd493fa37aa4303db9
|
7
|
+
data.tar.gz: f3ab93cbdece2c12457716f81a7d0b69f8e1b00d87c8abb68b079ad5c2e98294e0c83162acfca3e391337e326c17fd5883d976e664f12ea339cfa366efb240d4
|
Binary file
|
@@ -242,14 +242,15 @@ module EducodeSales
|
|
242
242
|
|
243
243
|
# o类商机增加编号
|
244
244
|
def add_business_number
|
245
|
-
|
245
|
+
# test数据库中 o类商机id=74 pre与线上o类商机=77
|
246
|
+
if ( @business.number.blank?) && Common.find_by(extras: "o_class")
|
246
247
|
totual_count = EducodeSales::Business.unscoped.where("number like :data",data: "#{Time.now.year}%").count + 1 + Time.now.year*1000.to_i
|
247
|
-
@business_number_record = BusinessNumberRecord.
|
248
|
-
while @business_number_record.include?(totual_count)
|
248
|
+
@business_number_record = BusinessNumberRecord.find_or_create_by(id: 1)
|
249
|
+
while @business_number_record.value.include?(totual_count) || Business.pluck(:number).include?(totual_count.to_s)
|
249
250
|
totual_count += 1
|
250
251
|
end
|
252
|
+
@business_number_record.update(value: @business_number_record.value | [ totual_count ])
|
251
253
|
@business.update(number: totual_count.to_s)
|
252
|
-
BusinessNumberRecord.first.update(value: @business_number_record | [ totual_count ])
|
253
254
|
end
|
254
255
|
end
|
255
256
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: educode_sales
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- anke1460
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-10-
|
11
|
+
date: 2022-10-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -105,6 +105,7 @@ files:
|
|
105
105
|
- app/assets/images/educode_sales/icon-login.png
|
106
106
|
- app/assets/images/educode_sales/icon.png
|
107
107
|
- app/assets/images/educode_sales/indexLogo.png
|
108
|
+
- app/assets/images/educode_sales/indexlogo.png
|
108
109
|
- app/assets/images/educode_sales/loading-0.gif
|
109
110
|
- app/assets/images/educode_sales/loading-1.gif
|
110
111
|
- app/assets/images/educode_sales/loading-2.gif
|
@@ -486,7 +487,7 @@ homepage: https://www.educoder.net
|
|
486
487
|
licenses:
|
487
488
|
- MIT
|
488
489
|
metadata: {}
|
489
|
-
post_install_message:
|
490
|
+
post_install_message:
|
490
491
|
rdoc_options: []
|
491
492
|
require_paths:
|
492
493
|
- lib
|
@@ -501,8 +502,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
501
502
|
- !ruby/object:Gem::Version
|
502
503
|
version: '0'
|
503
504
|
requirements: []
|
504
|
-
rubygems_version: 3.0.
|
505
|
-
signing_key:
|
505
|
+
rubygems_version: 3.0.9
|
506
|
+
signing_key:
|
506
507
|
specification_version: 4
|
507
508
|
summary: Summary of EducodeSales.
|
508
509
|
test_files: []
|