Compare commits
890 Commits
master
...
dev_partne
Author | SHA1 | Date |
---|---|---|
|
b4df1472bb | 6 years ago |
|
e20e6953f2 | 6 years ago |
|
67f50c7ae5 | 6 years ago |
|
cb20217d49 | 6 years ago |
|
8b42018d40 | 6 years ago |
|
8c7c6941b6 | 6 years ago |
|
e38e35c72b | 6 years ago |
|
6d08f360bf | 6 years ago |
|
740e4d88c4 | 6 years ago |
|
a795e61921 | 6 years ago |
|
a49385f073 | 6 years ago |
|
c8e9d6e274 | 6 years ago |
|
9d00433565 | 6 years ago |
|
7efe78c83a | 6 years ago |
|
436571090a | 6 years ago |
|
a3dec858f8 | 6 years ago |
|
d5e334738f | 6 years ago |
|
8df8dc95d5 | 6 years ago |
|
98ce08d3c7 | 6 years ago |
|
b7c7127f3a | 6 years ago |
|
a339b3c429 | 6 years ago |
|
b6953aa038 | 6 years ago |
|
41e6f10960 | 6 years ago |
|
2a3e7090ae | 6 years ago |
|
dac1d99f9e | 6 years ago |
|
f71d2a9a42 | 6 years ago |
|
b30d8a6a89 | 6 years ago |
|
ce9dc71211 | 6 years ago |
|
22f303e4df | 6 years ago |
|
a2acd872c9 | 6 years ago |
|
b64c1a50a4 | 6 years ago |
|
eb705d526e | 6 years ago |
|
9b32b4675c | 6 years ago |
|
fdecb7c53d | 6 years ago |
|
ae07c1b6df | 6 years ago |
|
7d2730cfa5 | 6 years ago |
|
80f9ee5ed5 | 6 years ago |
|
a31b826039 | 6 years ago |
|
b920395ede | 6 years ago |
|
d27f6a1ba4 | 6 years ago |
|
407f5615f2 | 6 years ago |
|
a2ca817642 | 6 years ago |
|
88096c807f | 6 years ago |
|
dd7f28230c | 6 years ago |
|
e72abe4305 | 6 years ago |
|
346850df2b | 6 years ago |
|
5a88a81d0f | 6 years ago |
|
c8f178f8a7 | 6 years ago |
|
a43a8d8322 | 6 years ago |
|
b124c358c9 | 6 years ago |
|
db3422a8f1 | 6 years ago |
|
22bddecf47 | 6 years ago |
|
7dc216bf69 | 6 years ago |
|
82b7df0d8b | 6 years ago |
|
36666c961b | 6 years ago |
|
07e6182c7e | 6 years ago |
|
fe2eab517b | 6 years ago |
|
d69fd728a3 | 6 years ago |
|
d4ad370635 | 6 years ago |
|
cb03317076 | 6 years ago |
|
4f1fcaa16d | 6 years ago |
|
6d18d11200 | 6 years ago |
|
0e54d0dee3 | 6 years ago |
|
b86841fe01 | 6 years ago |
|
741b51f668 | 6 years ago |
|
254618b3b9 | 6 years ago |
|
a80e89e5f0 | 6 years ago |
|
24881fa282 | 6 years ago |
|
9beb3131d2 | 6 years ago |
|
0292431bec | 6 years ago |
|
3d959e025a | 6 years ago |
|
d648ecb8ed | 6 years ago |
|
f31d1a4c11 | 6 years ago |
|
db64dbe8e9 | 6 years ago |
|
c67157ca7e | 6 years ago |
|
9bb4442121 | 6 years ago |
|
ed4a3711b7 | 6 years ago |
|
fa2cc5b867 | 6 years ago |
|
146873ffdc | 6 years ago |
|
2912f32041 | 6 years ago |
|
8d44fea995 | 6 years ago |
|
0bfee48829 | 6 years ago |
|
5360ed4d3a | 6 years ago |
|
2374e6f31c | 6 years ago |
|
4300887c85 | 6 years ago |
|
64e7c5a953 | 6 years ago |
|
2862d530f7 | 6 years ago |
|
dec3922a2a | 6 years ago |
|
173a4e547d | 6 years ago |
|
2d3cb54288 | 6 years ago |
|
034312aec4 | 6 years ago |
|
ed00b8e773 | 6 years ago |
|
b8daa7e818 | 6 years ago |
|
1350e8fb59 | 6 years ago |
|
88d4bed989 | 6 years ago |
|
46631425dd | 6 years ago |
|
1d197501bd | 6 years ago |
|
3222a18550 | 6 years ago |
|
982d27b90a | 6 years ago |
|
2859029899 | 6 years ago |
|
af97c45716 | 6 years ago |
|
97a5e132ee | 6 years ago |
|
037e7c08ec | 6 years ago |
|
1b2494ea5e | 6 years ago |
|
3685c386db | 6 years ago |
|
62e36d87e5 | 6 years ago |
|
b4bc64e401 | 6 years ago |
|
4a95592b67 | 6 years ago |
|
9e68757d50 | 6 years ago |
|
110fbbc87b | 6 years ago |
|
eea7aae984 | 6 years ago |
|
dee79a3d75 | 6 years ago |
|
542830b315 | 6 years ago |
|
b139d1cf28 | 6 years ago |
|
01a9662ac2 | 6 years ago |
|
8b7bce39bb | 6 years ago |
|
cfa9e4adb8 | 6 years ago |
|
056c89bfae | 6 years ago |
|
b24547f9e0 | 6 years ago |
|
923d702d01 | 6 years ago |
|
28191b71ea | 6 years ago |
|
39423255da | 6 years ago |
|
8c3767cfa2 | 6 years ago |
|
dbaed7bc12 | 6 years ago |
|
aa6e3dddbf | 6 years ago |
|
584da88eca | 6 years ago |
|
4b7d55cbef | 6 years ago |
|
6a80a0bbf1 | 6 years ago |
|
31635eb93f | 6 years ago |
|
a259e7c63d | 6 years ago |
|
fcfda1f9a2 | 6 years ago |
|
fbf86d64dc | 6 years ago |
|
495cc01315 | 6 years ago |
|
8655233ef9 | 6 years ago |
|
c645d89628 | 6 years ago |
|
35e26e22f7 | 6 years ago |
|
1fa27ae9d3 | 6 years ago |
|
9c3fdd0c08 | 6 years ago |
|
9cf1de1880 | 6 years ago |
|
3c76641df3 | 6 years ago |
|
4c2d678253 | 6 years ago |
|
efa4020aa3 | 6 years ago |
|
f6e533c6b6 | 6 years ago |
|
e2669b8e78 | 6 years ago |
|
6c53f561d8 | 6 years ago |
|
f1b0c6a038 | 6 years ago |
|
05cd6b874b | 6 years ago |
|
7359854e28 | 6 years ago |
|
85c96c5167 | 6 years ago |
|
aa525adae9 | 6 years ago |
|
92e81a076e | 6 years ago |
|
8502336b2a | 6 years ago |
|
8148c1797e | 6 years ago |
|
745597348d | 6 years ago |
|
5950eb66d6 | 6 years ago |
|
c71677710d | 6 years ago |
|
e3af858ecc | 6 years ago |
|
593ee71e79 | 6 years ago |
|
859e3e9a62 | 6 years ago |
|
41a1795b32 | 6 years ago |
|
41e0cf8950 | 6 years ago |
|
e6b3b6b535 | 6 years ago |
|
fe1b87f9d6 | 6 years ago |
|
c7cc754046 | 6 years ago |
|
8b711ac57d | 6 years ago |
|
21043d1a6c | 6 years ago |
|
1298e748f2 | 6 years ago |
|
face0cc8de | 6 years ago |
|
2f92f650d5 | 6 years ago |
|
0f6e2b0bf8 | 6 years ago |
|
27b59fa3cc | 6 years ago |
|
09c221b5b5 | 6 years ago |
|
2807c3f433 | 6 years ago |
|
70cb0254bf | 6 years ago |
|
081eef9fb5 | 6 years ago |
|
54f51ff3f4 | 6 years ago |
|
2fc8833bef | 6 years ago |
|
373685bf4c | 6 years ago |
|
c64a1ed2c0 | 6 years ago |
|
59e084ba48 | 6 years ago |
|
59b117376e | 6 years ago |
|
ed26bedad7 | 6 years ago |
|
922553af6e | 6 years ago |
|
bfe8f6800f | 6 years ago |
|
cb1558b55d | 6 years ago |
|
8348c95b57 | 6 years ago |
|
c76c43eb29 | 6 years ago |
|
451e06dcaa | 6 years ago |
|
c28692ffc5 | 6 years ago |
|
cb8b80efe9 | 6 years ago |
|
0560d0e2c5 | 6 years ago |
|
09abc5511f | 6 years ago |
|
97c2b1f1f5 | 6 years ago |
|
90e7e056ec | 6 years ago |
|
6a08ec9a27 | 6 years ago |
|
50d7ed2deb | 6 years ago |
|
5f8341dcf5 | 6 years ago |
|
731d8532e4 | 6 years ago |
|
b49c1f5752 | 6 years ago |
|
f738ba4cc5 | 6 years ago |
|
14b2ce10da | 6 years ago |
|
fdec1f663d | 6 years ago |
|
5002fd8a5c | 6 years ago |
|
119877e702 | 6 years ago |
|
8cce3e27ba | 6 years ago |
|
0817dc9e86 | 6 years ago |
|
14f83779a3 | 6 years ago |
|
da8d83c8ef | 6 years ago |
|
16d285d2fd | 6 years ago |
|
b5eb7c1354 | 6 years ago |
|
9d48537c73 | 6 years ago |
|
ef5095c070 | 6 years ago |
|
ff9a199f1f | 6 years ago |
|
7cee6ac4ce | 6 years ago |
|
1ce97f9ed9 | 6 years ago |
|
0c82824439 | 6 years ago |
|
a28509c2e8 | 6 years ago |
|
a1344ff04d | 6 years ago |
|
2a030196b6 | 6 years ago |
|
c7a3ef7732 | 6 years ago |
|
2186fa33e2 | 6 years ago |
|
9bde4eaa94 | 6 years ago |
|
6129e17ddb | 6 years ago |
|
3cec847e3b | 6 years ago |
|
05284a3aba | 6 years ago |
|
0efdd839e0 | 6 years ago |
|
792fe7c71b | 6 years ago |
|
a953ebd03b | 6 years ago |
|
cfdb4f95c2 | 6 years ago |
|
4e0f674517 | 6 years ago |
|
a715d33728 | 6 years ago |
|
a8d347bbe4 | 6 years ago |
|
35ec3b1744 | 6 years ago |
|
f259ea7078 | 6 years ago |
|
0cea78e89e | 6 years ago |
|
c1b3dfadd2 | 6 years ago |
|
d067d4dbed | 6 years ago |
|
0dd03710ae | 6 years ago |
|
92451b9720 | 6 years ago |
|
58a278f583 | 6 years ago |
|
26455d0efb | 6 years ago |
|
1864620376 | 6 years ago |
|
256e6021f4 | 6 years ago |
|
f103d0fe23 | 6 years ago |
|
01017c3bd3 | 6 years ago |
|
fb1ba699cb | 6 years ago |
|
c349dd1621 | 6 years ago |
|
b68720ee38 | 6 years ago |
|
2be42bebe5 | 6 years ago |
|
eb12c7cdfb | 6 years ago |
|
fb7233777f | 6 years ago |
|
4801ba2917 | 6 years ago |
|
0486340146 | 6 years ago |
|
4ee0b2a865 | 6 years ago |
|
bffc6c363f | 6 years ago |
|
5c6b6f4c95 | 6 years ago |
|
88431ecd73 | 6 years ago |
|
01668fe3f8 | 6 years ago |
|
ca8387e2e6 | 6 years ago |
|
7104eee0c5 | 6 years ago |
|
95e1bc759c | 6 years ago |
|
e13cbaef60 | 6 years ago |
|
c140b70818 | 6 years ago |
|
2651225563 | 6 years ago |
|
085e1ec44d | 6 years ago |
|
f37d02bcfb | 6 years ago |
|
478a884301 | 6 years ago |
|
f1b1ea0cd3 | 6 years ago |
|
c9ed735139 | 6 years ago |
|
44dadbc173 | 6 years ago |
|
372db525bd | 6 years ago |
|
3135f36cae | 6 years ago |
|
0f2493e877 | 6 years ago |
|
978fbf47e5 | 6 years ago |
|
dddd208335 | 6 years ago |
|
1832e91b4e | 6 years ago |
|
a71064b8e7 | 6 years ago |
|
cdfda26c99 | 6 years ago |
|
06352bddb7 | 6 years ago |
|
f82c7b26f8 | 6 years ago |
|
a3230075ab | 6 years ago |
|
3e44fe368b | 6 years ago |
|
a85debe484 | 6 years ago |
|
245c01a26b | 6 years ago |
|
2ff2151170 | 6 years ago |
|
fc719acffc | 6 years ago |
|
84769b7e53 | 6 years ago |
|
1533295d41 | 6 years ago |
|
f976572985 | 6 years ago |
|
22e5e7f60a | 6 years ago |
|
597a66b764 | 6 years ago |
|
882b6acd1f | 6 years ago |
|
52af31be38 | 6 years ago |
|
9fe6c7322b | 6 years ago |
|
33d4027a8c | 6 years ago |
|
22b549cf77 | 6 years ago |
|
f8fd2488a1 | 6 years ago |
|
0852ecfb40 | 6 years ago |
|
c3ed1bbf14 | 6 years ago |
|
df919fb6c2 | 6 years ago |
|
5f0bc1f7e2 | 6 years ago |
|
b58480a637 | 6 years ago |
|
23753d8977 | 6 years ago |
|
efcac7da3d | 6 years ago |
|
08d362731a | 6 years ago |
|
83f0ec016b | 6 years ago |
|
a3e3fa0965 | 6 years ago |
|
98c5bcca6e | 6 years ago |
|
59ff646a4f | 6 years ago |
|
ca9e721dfe | 6 years ago |
|
73e890aaf6 | 6 years ago |
|
70c47a3c9b | 6 years ago |
|
413a15511d | 6 years ago |
|
f6fc52b09d | 6 years ago |
|
49ef49a325 | 6 years ago |
|
f6bbf74a52 | 6 years ago |
|
096b958386 | 6 years ago |
|
20b1f3c533 | 6 years ago |
|
688c721bd3 | 6 years ago |
|
d0178f1a9f | 6 years ago |
|
e836d333ea | 6 years ago |
|
23860440ff | 6 years ago |
|
787acee2ea | 6 years ago |
|
b9da38e82a | 6 years ago |
|
7ff20bbea2 | 6 years ago |
|
edf1762ae2 | 6 years ago |
|
432fe28c54 | 6 years ago |
|
4eeb6f1fcc | 6 years ago |
|
e1fc755f49 | 6 years ago |
|
deaf1c78d1 | 6 years ago |
|
63ac324477 | 6 years ago |
|
5e0b771412 | 6 years ago |
|
ffdbf3c782 | 6 years ago |
|
d62ffc27ff | 6 years ago |
|
44f7cebbed | 6 years ago |
|
728c0f3ba1 | 6 years ago |
|
3f63a51499 | 6 years ago |
|
81eb573c03 | 6 years ago |
|
5e0cea8e88 | 6 years ago |
|
e7c04e8c58 | 6 years ago |
|
685bc6cc93 | 6 years ago |
|
6c599e362e | 6 years ago |
|
9f67c4afb4 | 6 years ago |
|
ff98ef9463 | 6 years ago |
|
d53fa773dc | 6 years ago |
|
24084c303e | 6 years ago |
|
680c7e75cf | 6 years ago |
|
fcfb91607a | 6 years ago |
|
82bdae08d5 | 6 years ago |
|
affb47f79e | 6 years ago |
|
205bfd0799 | 6 years ago |
|
35a99b2ef0 | 6 years ago |
|
4f9d818011 | 6 years ago |
|
431942d7a7 | 6 years ago |
|
3499ffd626 | 6 years ago |
|
b92c4507b5 | 6 years ago |
|
ba49b555cb | 6 years ago |
|
8ffc0d51eb | 6 years ago |
|
30af40165d | 6 years ago |
|
66a1a9027a | 6 years ago |
|
1780153ba2 | 6 years ago |
|
bf19cc6920 | 6 years ago |
|
210d138fb9 | 6 years ago |
|
99bb535bcc | 6 years ago |
|
4a6d84487a | 6 years ago |
|
7dcd1c1039 | 6 years ago |
|
ad84f98c37 | 6 years ago |
|
4fb4e7dbc9 | 6 years ago |
|
44adbf8e82 | 6 years ago |
|
88b2ff8245 | 6 years ago |
|
94e3289746 | 6 years ago |
|
9f39908587 | 6 years ago |
|
18de726bff | 6 years ago |
|
efca753994 | 6 years ago |
|
1d25444159 | 6 years ago |
|
885ace98a9 | 6 years ago |
|
4cfc9a6171 | 6 years ago |
|
062f117191 | 6 years ago |
|
58b81b21db | 6 years ago |
|
afc456c9a3 | 6 years ago |
|
aa13f63e90 | 6 years ago |
|
c332ea4b0f | 6 years ago |
|
80cdbd6ad3 | 6 years ago |
|
2e3c438d79 | 6 years ago |
|
c0ef3e0e1c | 6 years ago |
|
14be55dca8 | 6 years ago |
|
402eaa52da | 6 years ago |
|
9622698953 | 6 years ago |
|
10ee52c22c | 6 years ago |
|
c95a8c60fd | 6 years ago |
|
d02fec75db | 6 years ago |
|
096dd01b8a | 6 years ago |
|
30a5b1a4e6 | 6 years ago |
|
d1d28d2209 | 6 years ago |
|
72e8056d7b | 6 years ago |
|
c18c99c7a7 | 6 years ago |
|
770538f16f | 6 years ago |
|
1b57593e99 | 6 years ago |
|
d5c0a5a449 | 6 years ago |
|
ccede5b5a0 | 6 years ago |
|
13aa9f7df6 | 6 years ago |
|
3b584094c2 | 6 years ago |
|
b7bbb77aaa | 6 years ago |
|
0b76986075 | 6 years ago |
|
43117e7ca1 | 6 years ago |
|
c0df561a75 | 6 years ago |
|
29caae1c36 | 6 years ago |
|
611b059e6a | 6 years ago |
|
53e792918b | 6 years ago |
|
c56a997403 | 6 years ago |
|
638a3ba1a3 | 6 years ago |
|
eece0a31ee | 6 years ago |
|
42eb7ae408 | 6 years ago |
|
a7034cdbe5 | 6 years ago |
|
cf46589485 | 6 years ago |
|
dc2a59cad9 | 6 years ago |
|
1c1735a78d | 6 years ago |
|
3f60c7eae3 | 6 years ago |
|
3d408ac563 | 6 years ago |
|
85d8355541 | 6 years ago |
|
9f417e17cd | 6 years ago |
|
f5746f0839 | 6 years ago |
|
a01d30f142 | 6 years ago |
|
3d347f7f15 | 6 years ago |
|
744c021e1c | 6 years ago |
|
8ffdad5447 | 6 years ago |
|
45bdbab053 | 6 years ago |
|
0aec53dda7 | 6 years ago |
|
367b3a6197 | 6 years ago |
|
cd0d8d9a35 | 6 years ago |
|
b3621125d5 | 6 years ago |
|
e154b3c7fe | 6 years ago |
|
2c1bd03c46 | 6 years ago |
|
7af1176280 | 6 years ago |
|
828ac000e0 | 6 years ago |
|
450876fd39 | 6 years ago |
|
17687f999e | 6 years ago |
|
8ccfee1299 | 6 years ago |
|
0e8b1d5ee8 | 6 years ago |
|
adcefcd8da | 6 years ago |
|
260cc5b598 | 6 years ago |
|
946755f9e0 | 6 years ago |
|
57fb324875 | 6 years ago |
|
ae3965d5ed | 6 years ago |
|
47e3f87308 | 6 years ago |
|
bec7b0eb36 | 6 years ago |
|
069fae6608 | 6 years ago |
|
41cb769fba | 6 years ago |
|
b66140bcfe | 6 years ago |
|
904880044c | 6 years ago |
|
00dadf7531 | 6 years ago |
|
7370b4ffb6 | 6 years ago |
|
9618334cc7 | 6 years ago |
|
b930943368 | 6 years ago |
|
700a964505 | 6 years ago |
|
f068ce5a8e | 6 years ago |
|
bd13ac1776 | 6 years ago |
|
69104e4697 | 6 years ago |
|
800f91bf3f | 6 years ago |
|
24ff3a1aa6 | 6 years ago |
|
e7e304064b | 6 years ago |
|
a199ffa2cf | 6 years ago |
|
bea1dd618d | 6 years ago |
|
69a0a5b72b | 6 years ago |
|
30f7a4d2bd | 6 years ago |
|
21de026a99 | 6 years ago |
|
86641c67b1 | 6 years ago |
|
0306071ed0 | 6 years ago |
|
e6b786edc0 | 6 years ago |
|
06f29e9109 | 6 years ago |
|
b05308baf0 | 6 years ago |
|
cc061a04ea | 6 years ago |
|
e8a8df58ab | 6 years ago |
|
3ac9d7a736 | 6 years ago |
|
fa667fe665 | 6 years ago |
|
f5e6b4c46a | 6 years ago |
|
8019bc3e0b | 6 years ago |
|
38eb71d7f2 | 6 years ago |
|
8950bafb18 | 6 years ago |
|
ed87d56f6c | 6 years ago |
|
53bf69e4b4 | 6 years ago |
|
f8611f90b6 | 6 years ago |
|
03c3729ea3 | 6 years ago |
|
f7b95af92f | 6 years ago |
|
ee630954d5 | 6 years ago |
|
29001ced81 | 6 years ago |
|
e621a54f06 | 6 years ago |
|
cfcfc9c580 | 6 years ago |
|
e46a10749b | 6 years ago |
|
b7b1f35913 | 6 years ago |
|
442277519b | 6 years ago |
|
3577297fed | 6 years ago |
|
655c62defd | 6 years ago |
|
5a3447b5cf | 6 years ago |
|
6c8517812e | 6 years ago |
|
dcc20138dd | 6 years ago |
|
3ce5c0d7b5 | 6 years ago |
|
2a8adf3f01 | 6 years ago |
|
a63e45c081 | 6 years ago |
|
f45822e01f | 6 years ago |
|
66597eb20b | 6 years ago |
|
5d8a0158ae | 6 years ago |
|
523fb82aa1 | 6 years ago |
|
e5589780c7 | 6 years ago |
|
7454064a9c | 6 years ago |
|
059db7002e | 6 years ago |
|
8ba0fe6b07 | 6 years ago |
|
59884af2f9 | 6 years ago |
|
a71e82ae78 | 6 years ago |
|
49cf70f38f | 6 years ago |
|
4cd1f7c305 | 6 years ago |
|
b4bbac6fae | 6 years ago |
|
1192a3c93d | 6 years ago |
|
8e4bb66272 | 6 years ago |
|
9890a97e34 | 6 years ago |
|
12cb81b3e8 | 6 years ago |
|
b733b016e4 | 6 years ago |
|
ececf85977 | 6 years ago |
|
f4c637a094 | 6 years ago |
|
b14aaab5c9 | 6 years ago |
|
1ddfe358eb | 6 years ago |
|
295f7a1c2b | 6 years ago |
|
a5e64635e1 | 6 years ago |
|
cd8a1d061d | 6 years ago |
|
57ae21dca9 | 6 years ago |
|
08a4df9698 | 6 years ago |
|
bd98acb24e | 6 years ago |
|
3d0b8dd2e9 | 6 years ago |
|
e7c8ca039f | 6 years ago |
|
a696886800 | 6 years ago |
|
0115891dee | 6 years ago |
|
2b691900b3 | 6 years ago |
|
23470d542b | 6 years ago |
|
536e7f834b | 6 years ago |
|
03ff875279 | 6 years ago |
|
44bd6bfd8a | 6 years ago |
|
cb212407fc | 6 years ago |
|
3b4714af23 | 6 years ago |
|
f60d8611ed | 6 years ago |
|
e6b55a7943 | 6 years ago |
|
e6cec18bc5 | 6 years ago |
|
8a00748222 | 6 years ago |
|
3d59d46ec0 | 6 years ago |
|
7d0d89d4e2 | 6 years ago |
|
acc33aec5b | 6 years ago |
|
bc74d152a5 | 6 years ago |
|
52f57aa607 | 6 years ago |
|
d62f927baf | 6 years ago |
|
ee320c4c34 | 6 years ago |
|
31beeaaf67 | 6 years ago |
|
27a913882d | 6 years ago |
|
0cce39ace2 | 6 years ago |
|
c88142d360 | 6 years ago |
|
88972c60a6 | 6 years ago |
|
3be76d137d | 6 years ago |
|
94f4166f5a | 6 years ago |
|
20a65571d8 | 6 years ago |
|
3992b7f9ea | 6 years ago |
|
0eab38faae | 6 years ago |
|
d8763cf284 | 6 years ago |
|
40c19ae0d5 | 6 years ago |
|
dad2fb6b6f | 6 years ago |
|
7f4aaf880e | 6 years ago |
|
8466c147af | 6 years ago |
|
d4d7f812a6 | 6 years ago |
|
8640200398 | 6 years ago |
|
5a4df7c442 | 6 years ago |
|
5bfebb53a5 | 6 years ago |
|
7f2a7ad73d | 6 years ago |
|
05ee4e2ea0 | 6 years ago |
|
820c662542 | 6 years ago |
|
f70c1a49c3 | 6 years ago |
|
ada4254039 | 6 years ago |
|
6137bcc770 | 6 years ago |
|
f9ca4795b7 | 6 years ago |
|
1de495dc92 | 6 years ago |
|
f1b17212b4 | 6 years ago |
|
e3a7e90805 | 6 years ago |
|
0c643a82b8 | 6 years ago |
|
a344eab36d | 6 years ago |
|
f811f4a927 | 6 years ago |
|
2431993071 | 6 years ago |
|
ebe9ee145b | 6 years ago |
|
24393e8ad3 | 6 years ago |
|
a8fb707230 | 6 years ago |
|
99a47e1c8e | 6 years ago |
|
58dd8d207d | 6 years ago |
|
999aba69f4 | 6 years ago |
|
1675c4e1c0 | 6 years ago |
|
1603c34128 | 6 years ago |
|
2c6e1ba868 | 6 years ago |
|
95098fafd4 | 6 years ago |
|
a791f1bc53 | 6 years ago |
|
57d634ce1f | 6 years ago |
|
9fee0222ba | 6 years ago |
|
93ed95b767 | 6 years ago |
|
8dc5a6b2df | 6 years ago |
|
d1b676e479 | 6 years ago |
|
d1f536b191 | 6 years ago |
|
8b26219bee | 6 years ago |
|
27240407a0 | 6 years ago |
|
d8c389757f | 6 years ago |
|
55af94ceb4 | 6 years ago |
|
d50a44dad6 | 6 years ago |
|
51607ca394 | 6 years ago |
|
1935369d3c | 6 years ago |
|
de55a35708 | 6 years ago |
|
0a772dd67b | 6 years ago |
|
de2db8ce32 | 6 years ago |
|
7b906e2348 | 6 years ago |
|
0b587f7217 | 6 years ago |
|
a3b14f86ca | 6 years ago |
|
1608ef1f6d | 6 years ago |
|
8243b33634 | 6 years ago |
|
ef0ffc1295 | 6 years ago |
|
fdbdb4a585 | 6 years ago |
|
914660ad9f | 6 years ago |
|
6786b6ee10 | 6 years ago |
|
b6a764f0c6 | 6 years ago |
|
0202c719f0 | 6 years ago |
|
8bbb5a71e0 | 6 years ago |
|
eee83bc0d6 | 6 years ago |
|
05a7034865 | 6 years ago |
|
4b23a9a2b5 | 6 years ago |
|
d12217ebe4 | 6 years ago |
|
1c1293a32c | 6 years ago |
|
35f4dea04a | 6 years ago |
|
4ead5d1fd8 | 6 years ago |
|
cb171061e6 | 6 years ago |
|
4793005781 | 6 years ago |
|
353d8a0354 | 6 years ago |
|
818a7c48e2 | 6 years ago |
|
63d57d11bb | 6 years ago |
|
23fb2e4c23 | 6 years ago |
|
734c65ba50 | 6 years ago |
|
a4795d1414 | 6 years ago |
|
2e37871c14 | 6 years ago |
|
e354dcfaf0 | 6 years ago |
|
69ae7ea7ba | 6 years ago |
|
3839e8be60 | 6 years ago |
|
cf6aa09060 | 6 years ago |
|
836542759c | 6 years ago |
|
ea6364960b | 6 years ago |
|
49f639247e | 6 years ago |
|
a5504f63d9 | 6 years ago |
|
6fd67e780e | 6 years ago |
|
6cb82826aa | 6 years ago |
|
211aaa49fa | 6 years ago |
|
493872bb5b | 6 years ago |
|
0f83d8ff9e | 6 years ago |
|
013bf80478 | 6 years ago |
|
95a8be8cf6 | 6 years ago |
|
a2e81a3a70 | 6 years ago |
|
ef42f1ac69 | 6 years ago |
|
9d606f6349 | 6 years ago |
|
6040f8165d | 6 years ago |
|
6c8401ab04 | 6 years ago |
|
8ba070106d | 6 years ago |
|
483123297e | 6 years ago |
|
94d022938d | 6 years ago |
|
9c1f33d60a | 6 years ago |
|
d627f3a0b9 | 6 years ago |
|
b43b3ea574 | 6 years ago |
|
69c3952b0f | 6 years ago |
|
d077c78845 | 6 years ago |
|
b96c293184 | 6 years ago |
|
adc51604b7 | 6 years ago |
|
db2da93eed | 6 years ago |
|
7bba4ec39e | 6 years ago |
|
2614f83283 | 6 years ago |
|
b9a72287d1 | 6 years ago |
|
e9fe238b02 | 6 years ago |
|
0b7593c4ec | 6 years ago |
|
cb4b71e5cd | 6 years ago |
|
ed08c76021 | 6 years ago |
|
ae69f82d73 | 6 years ago |
|
29cff5349b | 6 years ago |
|
fef35fceae | 6 years ago |
|
2a68ed0cb0 | 6 years ago |
|
29a0b03397 | 6 years ago |
|
1092e02271 | 6 years ago |
|
7158b0710a | 6 years ago |
|
b9c1236ef4 | 6 years ago |
|
1b64f09ec9 | 6 years ago |
|
3d86a711bc | 6 years ago |
|
33058789b0 | 6 years ago |
|
2fdf5353c4 | 6 years ago |
|
2cc7d2a849 | 6 years ago |
|
5dedb3f80a | 6 years ago |
|
69db176e48 | 6 years ago |
|
0e7bd88d69 | 6 years ago |
|
4cf4655b26 | 6 years ago |
|
e1558fbd07 | 6 years ago |
|
ed321e58ef | 6 years ago |
|
0fc5fadcb9 | 6 years ago |
|
3a9866943e | 6 years ago |
|
43c4b784ea | 6 years ago |
|
213dc6a0af | 6 years ago |
|
312403cfc3 | 6 years ago |
|
2e0c9faf47 | 6 years ago |
|
8b62caf8a6 | 6 years ago |
|
08accb32db | 6 years ago |
|
5766a1b0b1 | 6 years ago |
|
4c58e97d94 | 6 years ago |
|
03b67d1b4d | 6 years ago |
|
dcec874401 | 6 years ago |
|
2b28b60828 | 6 years ago |
|
29b2a85e8d | 6 years ago |
|
e09c93f93d | 6 years ago |
|
e04f29aa44 | 6 years ago |
|
7e35e1af0d | 6 years ago |
|
0a176e78ad | 6 years ago |
|
5c0e656dd3 | 6 years ago |
|
6f15d83b87 | 6 years ago |
|
0e445b3209 | 6 years ago |
|
0f4886906a | 6 years ago |
|
b0386586c9 | 6 years ago |
|
d52fec1f51 | 6 years ago |
|
f1a3459a83 | 6 years ago |
|
7e6c250e7b | 6 years ago |
|
5113d5cb36 | 6 years ago |
|
33071e6cb4 | 6 years ago |
|
66b12ec493 | 6 years ago |
|
33e49c039b | 6 years ago |
|
c267b69fea | 6 years ago |
|
2627a5da13 | 6 years ago |
|
fab470bc0a | 6 years ago |
|
7e168f42a6 | 6 years ago |
|
d6a20f1cae | 6 years ago |
|
e7298c7d6f | 6 years ago |
|
f1e0510b3b | 6 years ago |
|
618fc93c80 | 6 years ago |
|
166332c936 | 6 years ago |
|
6121b985f0 | 6 years ago |
|
2f83f54915 | 6 years ago |
|
de3c5e6d42 | 6 years ago |
|
09f52a4a1b | 6 years ago |
|
6411e81440 | 6 years ago |
|
9fa4ac729f | 6 years ago |
|
1f6da8629f | 6 years ago |
|
456ec13058 | 6 years ago |
|
b7d2d9d189 | 6 years ago |
|
7e3a4ea2b6 | 6 years ago |
|
519bee1851 | 6 years ago |
|
7c36bbc0fa | 6 years ago |
|
815d64936c | 6 years ago |
|
ed0bf1ce08 | 6 years ago |
|
731cf53ce1 | 6 years ago |
|
fd6195b9c8 | 6 years ago |
|
e69de3d59b | 6 years ago |
|
dcc04f5448 | 6 years ago |
|
d03e256822 | 6 years ago |
|
6808284192 | 6 years ago |
|
f925960655 | 6 years ago |
|
008a1412f1 | 6 years ago |
|
e1e02682d7 | 6 years ago |
|
84b16ed361 | 6 years ago |
|
1d71d9ddff | 6 years ago |
|
35b3872b51 | 6 years ago |
|
9b37e699d0 | 6 years ago |
|
02c008f696 | 6 years ago |
|
febf6555a9 | 6 years ago |
|
6ad7734813 | 6 years ago |
|
7047360b63 | 6 years ago |
|
c595ef49b3 | 6 years ago |
|
bbc2c6c387 | 6 years ago |
|
5edaa19761 | 6 years ago |
|
1193340214 | 6 years ago |
|
8470090933 | 6 years ago |
|
28aca2571a | 6 years ago |
|
f588b0d765 | 6 years ago |
|
e274be5924 | 6 years ago |
|
e58d7693ec | 6 years ago |
|
e816387170 | 6 years ago |
|
b72c93074a | 6 years ago |
|
81c0906734 | 6 years ago |
|
d7b1e1986f | 6 years ago |
|
649e2a7ba6 | 6 years ago |
|
f01796beb5 | 6 years ago |
|
915fb90ec8 | 6 years ago |
|
81ab00f482 | 6 years ago |
|
e40adab480 | 6 years ago |
|
e4caf5da9d | 6 years ago |
|
5adf21dffc | 6 years ago |
|
d892fc0640 | 6 years ago |
|
a3c7087a48 | 6 years ago |
|
2fd2ffc777 | 6 years ago |
|
5fee87148a | 6 years ago |
|
ec87aef778 | 6 years ago |
|
7970754e84 | 6 years ago |
|
a9c5b791b5 | 6 years ago |
|
f57f7813bb | 6 years ago |
|
afe9158b0f | 6 years ago |
|
d1925971f7 | 6 years ago |
|
82a1a21993 | 6 years ago |
|
1fb0c4771a | 6 years ago |
|
f9351e259d | 6 years ago |
|
91c95a7988 | 6 years ago |
|
9f0e30676c | 6 years ago |
|
d5a8f3a1dc | 6 years ago |
|
045ac6bff7 | 6 years ago |
|
d97281b04d | 6 years ago |
|
7d6c48e86c | 6 years ago |
|
4859ce7046 | 6 years ago |
|
2fcc555ada | 6 years ago |
|
e58628b38b | 6 years ago |
|
a05f1f4739 | 6 years ago |
|
b1a79f27ca | 6 years ago |
|
eb6f911df5 | 6 years ago |
|
6d92d7700a | 6 years ago |
|
bcdbd5a74d | 6 years ago |
|
916b27d3ca | 6 years ago |
|
9aa9b2f6a5 | 6 years ago |
|
2f9860d05c | 6 years ago |
|
c75168a648 | 6 years ago |
|
6142022d74 | 6 years ago |
|
a17d9f2126 | 6 years ago |
|
d3fee9b877 | 6 years ago |
|
95a3f43ca3 | 6 years ago |
|
eab8ccec8b | 6 years ago |
|
fc4bcca5de | 6 years ago |
|
59e369f442 | 6 years ago |
|
c174191336 | 6 years ago |
|
e5252fa87e | 6 years ago |
|
5a3e818836 | 6 years ago |
|
8da79f8125 | 6 years ago |
|
280d1c8d24 | 6 years ago |
|
2d4310c4f2 | 6 years ago |
|
2cd1ce8171 | 6 years ago |
|
325f5c9b15 | 6 years ago |
|
6885ce6cdf | 6 years ago |
|
3b8750dd2b | 6 years ago |
|
537a3cbf2e | 6 years ago |
|
ddba3d844d | 6 years ago |
|
dc578ec876 | 6 years ago |
|
9fd268b7d8 | 6 years ago |
|
d2f8f13237 | 6 years ago |
|
28949535d8 | 6 years ago |
|
4d5716ea97 | 6 years ago |
|
19ece63edb | 6 years ago |
|
cfcd3fef14 | 6 years ago |
|
3097a01b7b | 6 years ago |
|
9d349fe567 | 6 years ago |
|
defbbe1c84 | 6 years ago |
|
71b3b1ce4a | 6 years ago |
|
97179ce628 | 6 years ago |
|
afa8d8f1f3 | 6 years ago |
|
befe1381c5 | 6 years ago |
|
8267a5645e | 6 years ago |
|
4fa4e2d199 | 6 years ago |
|
3bd2a00768 | 6 years ago |
|
ff0115675c | 6 years ago |
|
3957f5b94c | 6 years ago |
|
cb73a97425 | 6 years ago |
|
36b0e3d97f | 6 years ago |
|
354d51ce1a | 6 years ago |
|
9ed8741829 | 6 years ago |
|
3afe376f94 | 6 years ago |
|
a6445b85f1 | 6 years ago |
|
e3961027a3 | 6 years ago |
|
6517ee418f | 6 years ago |
|
784172afcb | 6 years ago |
|
a49e220b1c | 6 years ago |
|
265a928109 | 6 years ago |
|
4aadc998b9 | 6 years ago |
|
c5150fd29b | 6 years ago |
|
9a53cebc60 | 6 years ago |
|
1d53060af9 | 6 years ago |
|
54061e6a7a | 6 years ago |
|
9d245f3922 | 6 years ago |
|
cb4ecb8a0f | 6 years ago |
|
5c2eb8b1d3 | 6 years ago |
|
528996f57d | 6 years ago |
|
d58ddee8d3 | 6 years ago |
|
1ad16ed3f0 | 6 years ago |
|
9cf02eaf28 | 6 years ago |
|
850ca0e010 | 6 years ago |
|
b136a7a13d | 6 years ago |
|
582e8921db | 6 years ago |
|
c8e7166d02 | 6 years ago |
|
045b8f7655 | 6 years ago |
|
f59338005b | 6 years ago |
|
fa1af83d6d | 6 years ago |
|
d26c4a62ba | 6 years ago |
|
da14bbed6f | 6 years ago |
|
bdbb982cf1 | 6 years ago |
|
6d944721a8 | 6 years ago |
|
113981f593 | 6 years ago |
|
a95dc01665 | 6 years ago |
|
4fe67139a0 | 6 years ago |
@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
@ -0,0 +1,3 @@
|
||||
# Place all the behaviors and hooks related to the matching controller here.
|
||||
# All this logic will automatically be available in application.js.
|
||||
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
|
@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the cooperates controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the ecloud controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
@ -0,0 +1,3 @@
|
||||
// Place all the styles related to the oauth controller here.
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
@ -0,0 +1,36 @@
|
||||
class CooperatesController < ApplicationController
|
||||
before_filter :require_login
|
||||
before_filter :find_partner, only: [:partner_list]
|
||||
before_filter :is_admin, only: [:partner_list]
|
||||
|
||||
def partner_list
|
||||
search = params[:search]
|
||||
@schools = School.where(customer_id: @partner.customer_ids)
|
||||
@all_count = @schools.size
|
||||
|
||||
unless search.blank?
|
||||
@schools = @schools.where("name like ?", "%#{search}%")
|
||||
end
|
||||
@search_count = @schools.size
|
||||
@schools = paginateHelper @schools, 15
|
||||
@schools = @schools.includes(:courses, users: :user_extensions)
|
||||
|
||||
respond_to do |format|
|
||||
format.js
|
||||
format.html{render :layout => "base_edu"}
|
||||
end
|
||||
end
|
||||
|
||||
def find_partner
|
||||
@partner = Partner.find_by_id(params[:id])
|
||||
render_404 if @partner.nil?
|
||||
rescue ActiveRecord::RecordNotFound
|
||||
render_404
|
||||
end
|
||||
|
||||
def is_admin
|
||||
unless User.current.admin? || (User.current.partner.present? && User.current.partner == @partner)
|
||||
render_403
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
class Managements::BaseController < ApplicationController
|
||||
layout 'base_management'
|
||||
|
||||
before_filter :require_business
|
||||
end
|
@ -0,0 +1,82 @@
|
||||
class Managements::SchoolsController < Managements::BaseController
|
||||
before_filter :set_navigation_bar
|
||||
before_filter :contrast_column_select_options, only: [:data_contrast]
|
||||
|
||||
def statistics
|
||||
@sub_type = 1
|
||||
params[:sort_by] = params[:sort_by].presence || :teacher_count
|
||||
params[:sort_direction] = params[:sort_direction].presence || :desc
|
||||
|
||||
service = Management::SchoolReportService.new(params)
|
||||
@obj_count, @schools = service.call
|
||||
@obj_pages = Paginator.new(@obj_count, 20, params[:page])
|
||||
|
||||
respond_to do |format|
|
||||
format.html { load_statistic_total }
|
||||
format.js
|
||||
end
|
||||
end
|
||||
|
||||
def data_grow
|
||||
@sub_type = 2
|
||||
params[:data_type] ||= 'grow'
|
||||
params[:sort_by] = params[:sort_by].presence || :teacher_increase_count
|
||||
params[:sort_direction] = params[:sort_direction].presence || :desc
|
||||
|
||||
service = Management::SchoolDataGrowService.new(params)
|
||||
@grow_summary = service.grow_summary
|
||||
|
||||
@obj_count, @reports = service.call
|
||||
@obj_pages = Paginator.new(@obj_count, 20, params[:page])
|
||||
end
|
||||
|
||||
def data_contrast
|
||||
params[:contrast_column] = params[:contrast_column].presence || :teacher_increase_count
|
||||
params[:sort_direction] ||= :desc
|
||||
params[:sort_by] = :percentage
|
||||
|
||||
# 无对比日期时直接返回无数据页面
|
||||
if useless_contrast_date_parameter?
|
||||
@obj_count, @reports = 0, []
|
||||
return
|
||||
end
|
||||
|
||||
@obj_count, @reports = Management::SchoolDataContrastService.new(params).call
|
||||
@obj_pages = Paginator.new(@obj_count, 20, params[:page])
|
||||
rescue Management::SchoolDataContrastService::ParameterError
|
||||
raise '参数错误'
|
||||
end
|
||||
|
||||
def statistics_xlsx
|
||||
params[:per_page] = 10000
|
||||
_count, @schools = Management::SchoolReportService.new(params).call
|
||||
|
||||
filename = ['学校统计总表', params[:keyword], Time.zone.now.strftime('%Y%m%d%H%M%S')].join('-') << '.xlsx'
|
||||
render xlsx: 'statistics_xlsx', filename: filename
|
||||
end
|
||||
|
||||
private
|
||||
def set_navigation_bar
|
||||
@menu_type = 1
|
||||
end
|
||||
|
||||
def contrast_column_select_options
|
||||
@select_options = Management::SchoolDataContrastService::CONTRAST_COLUMN_LIST.map do |column|
|
||||
[I18n.t("school_daily_report.#{column}"), column]
|
||||
end
|
||||
end
|
||||
|
||||
def useless_contrast_date_parameter?
|
||||
params[:begin_date].blank? && params[:end_date].blank? &&
|
||||
params[:other_begin_date].blank? &¶ms[:other_end_date].blank?
|
||||
end
|
||||
|
||||
def load_statistic_total
|
||||
@teacher_total = User.teacher.count
|
||||
@student_total = User.student.count
|
||||
@course_total = Course.count
|
||||
@active_course_total = Course.where(is_end: false).count
|
||||
@shixun_homework_total = HomeworkCommon.where(homework_type: 4).count
|
||||
@other_homework_total = HomeworkCommon.where(homework_type: [1, 3]).count
|
||||
end
|
||||
end
|
@ -0,0 +1,29 @@
|
||||
class PartnersController < ApplicationController
|
||||
layout 'base_management'
|
||||
|
||||
def index
|
||||
@menu_type = 6
|
||||
@sub_type = 3
|
||||
|
||||
@partners = Partner.includes(:school)
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
end
|
||||
|
||||
def edit
|
||||
|
||||
end
|
||||
|
||||
def create
|
||||
|
||||
end
|
||||
|
||||
def destroy
|
||||
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
end
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,2 @@
|
||||
module CooperatesHelper
|
||||
end
|
@ -0,0 +1,2 @@
|
||||
module EcloudHelper
|
||||
end
|
@ -0,0 +1,2 @@
|
||||
module OauthHelper
|
||||
end
|
@ -0,0 +1,45 @@
|
||||
module CustomSortable
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do |base|
|
||||
base.instance_variable_set("@_sort_options", {})
|
||||
base.instance_variable_set("@_sort_columns", [])
|
||||
base.instance_variable_set("@_sort_directions", %w(asc desc))
|
||||
end
|
||||
|
||||
def custom_sort(relations, sort_by, sort_direction)
|
||||
sort_by ||= self.class.sort_options[:default_by]
|
||||
sort_direction ||= self.class.sort_options[:default_direction]
|
||||
|
||||
return relations unless self.class.check_sort_parameter_validate(sort_by.to_s, sort_direction.to_s)
|
||||
|
||||
order_method = self.class.sort_options[:reorder] ? :reorder : :order
|
||||
relations.send(order_method, "#{sort_by} #{sort_direction}")
|
||||
end
|
||||
|
||||
def multiple_custom_sort(relations, opts)
|
||||
opts.each do |sort_by, sort_direction|
|
||||
relations = custom_sort(relations, sort_by, sort_direction)
|
||||
end
|
||||
relations
|
||||
end
|
||||
|
||||
module ClassMethods
|
||||
def sort_columns(*columns)
|
||||
opts = columns.extract_options!
|
||||
@_sort_options[:default_by] = opts[:default_by].to_s
|
||||
@_sort_options[:default_direction] = opts[:default_direction].to_s
|
||||
@_sort_options[:reorder] = opts[:reorder]
|
||||
|
||||
@_sort_columns = columns.map(&:to_s)
|
||||
end
|
||||
|
||||
def check_sort_parameter_validate(sort_by, sort_direction)
|
||||
(sort_by.blank? || @_sort_columns.include?(sort_by)) && @_sort_directions.include?(sort_direction)
|
||||
end
|
||||
|
||||
def sort_options
|
||||
@_sort_options
|
||||
end
|
||||
end
|
||||
end
|
@ -0,0 +1,7 @@
|
||||
class Customer < ActiveRecord::Base
|
||||
default_scope :order => 'customers.created_at desc'
|
||||
has_many :partners, :through => :partner_customers
|
||||
has_many :partner_customers, :dependent => :destroy
|
||||
belongs_to :school
|
||||
has_many :users
|
||||
end
|
@ -1,3 +1,6 @@
|
||||
class EcRequireSubVsStandard < ActiveRecord::Base
|
||||
attr_accessible :ec_graduation_standard_id, :ec_graduation_subitem_id, :status
|
||||
|
||||
belongs_to :ec_graduation_standard
|
||||
belongs_to :ec_graduation_subitem
|
||||
end
|
||||
|
@ -1,3 +1,5 @@
|
||||
class EcRequirementVsObjective < ActiveRecord::Base
|
||||
attr_accessible :ec_graduation_requirement_id, :ec_training_objective_id, :status
|
||||
belongs_to :ec_graduation_requirement
|
||||
belongs_to :ec_training_subitem
|
||||
end
|
||||
|
@ -1,4 +1,5 @@
|
||||
class EcTrainingSubitem < ActiveRecord::Base
|
||||
belongs_to :ec_training_objective
|
||||
|
||||
has_many :ec_requirement_vs_objectives, foreign_key: :ec_training_objective_id
|
||||
end
|
||||
|
@ -0,0 +1,11 @@
|
||||
#encoding=utf-8
|
||||
class Ecloud < ActiveRecord::Base
|
||||
attr_accessible :applyno, :begintime, :bossorderid, :custcode, :custid, :custname, :custtype, :ecordercode, :endtime,
|
||||
:mobile, :opttype, :productcode, :registersource, :string, :trial, :useralias, :userid, :username, :email,
|
||||
:effecttime, :operatime
|
||||
|
||||
has_many :ecloud_services, :dependent => :destroy # 业务列表
|
||||
has_many :ecloud_productparas, :dependent => :destroy # 开通参数列表
|
||||
|
||||
has_one :ecloud_user
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class EcloudLog < ActiveRecord::Base
|
||||
|
||||
end
|
@ -0,0 +1,4 @@
|
||||
class EcloudProductpara < ActiveRecord::Base
|
||||
attr_accessible :key, :value, :ecloud_id
|
||||
belongs_to :ecloud
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class EcloudUser < ActiveRecord::Base
|
||||
has_many :ecloud_user_paras
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class EcloudUserPara < ActiveRecord::Base
|
||||
belongs_to :ecloud_user
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class LocalChallenge < ActiveRecord::Base
|
||||
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class LocalChallengeTag < ActiveRecord::Base
|
||||
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class LocalMirrorRepository < ActiveRecord::Base
|
||||
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class LocalShixun < ActiveRecord::Base
|
||||
|
||||
end
|
@ -0,0 +1,2 @@
|
||||
class LocalShixunTagRepertoire < ActiveRecord::Base
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class LocalTestSet < ActiveRecord::Base
|
||||
|
||||
end
|
@ -0,0 +1,53 @@
|
||||
require 'base64'
|
||||
|
||||
class Oauth < ActiveRecord::Base
|
||||
attr_accessible :client_id, :client_secret, :redirect_uri, :access_token,
|
||||
:refresh_token, :token_created_at,:token_expires_in, :user_id
|
||||
|
||||
belongs_to :user
|
||||
|
||||
def gen_code
|
||||
code = Base64.urlsafe_encode64 Digest::MD5.hexdigest "#{Time.now}-#{Random.new_seed}"
|
||||
update_column(:code, code)
|
||||
code
|
||||
end
|
||||
|
||||
def gen_token
|
||||
access_token = Digest::MD5.hexdigest "#{Time.now}-#{Random.new_seed}"
|
||||
refresh_token = Digest::MD5.hexdigest "#{Random.new_seed}-#{Time.now}-#{Random.new_seed}"
|
||||
|
||||
self.update_attributes(access_token: access_token,
|
||||
refresh_token: refresh_token,
|
||||
token_created_at: Time.now.to_i,
|
||||
token_expires_in: Time.now.to_i + 24*60*60,
|
||||
)
|
||||
end
|
||||
|
||||
|
||||
def self.code_valid?(code)
|
||||
# 1. 是否存在
|
||||
oauth = Oauth.where(code: code).order("ID desc").first
|
||||
return false unless oauth
|
||||
|
||||
# 2. 是否超过10分钟
|
||||
return false if Time.now.to_i - oauth.created_at.to_i > 10*60
|
||||
|
||||
# 3. 是否有使用过
|
||||
return false if oauth.access_token.present?
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
def self.auth_code(code, client_id, client_secret)
|
||||
Oauth.where(code: code, client_id: client_id, client_secret: client_secret).order('id desc').first
|
||||
end
|
||||
|
||||
def self.auth(access_token)
|
||||
oauth = self.find_by_access_token(access_token)
|
||||
return nil unless oauth
|
||||
oauth.user
|
||||
end
|
||||
|
||||
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class OauthConfig < ActiveRecord::Base
|
||||
attr_accessible :client_id, :client_secret, :redirect_uri, :scope
|
||||
end
|
@ -0,0 +1,8 @@
|
||||
class Openi < ActiveRecord::Base
|
||||
attr_accessible :allow, :avatar_url, :email, :login, :name, :openi_user_id, :user_id
|
||||
belongs_to :user
|
||||
|
||||
def self.find_by_login(login)
|
||||
Openi.where(login: login).first
|
||||
end
|
||||
end
|
@ -0,0 +1,9 @@
|
||||
class Partner < ActiveRecord::Base
|
||||
# attr_accessible :name, :active
|
||||
attr_accessor :active
|
||||
|
||||
belongs_to :school
|
||||
has_many :customers, :through => :partner_customers
|
||||
has_many :partner_customers, :dependent => :destroy
|
||||
has_many :users
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
class PartnerCustomer < ActiveRecord::Base
|
||||
# attr_accessible :title, :body
|
||||
belongs_to :partner
|
||||
belongs_to :customer
|
||||
end
|
@ -0,0 +1,5 @@
|
||||
class RunCodeMessage < ActiveRecord::Base
|
||||
# attr_accessible :title, :body
|
||||
belongs_to :game
|
||||
|
||||
end
|
@ -0,0 +1,3 @@
|
||||
class SchoolDailyReport < ActiveRecord::Base
|
||||
belongs_to :school
|
||||
end
|
@ -1,6 +1,7 @@
|
||||
class EcloudService
|
||||
|
||||
def list
|
||||
return {status: 0, message: "test"}
|
||||
def list params
|
||||
|
||||
return {status: 0, message: "test", code: params[:code], params: params}
|
||||
end
|
||||
end
|
@ -0,0 +1,68 @@
|
||||
class Management::SchoolDataContrastService
|
||||
ParameterError = Class.new(StandardError)
|
||||
|
||||
PAGE_SIZE = 20
|
||||
CONTRAST_COLUMN_LIST = %w(
|
||||
teacher_increase_count student_increase_count course_increase_count
|
||||
shixun_increase_count active_user_count
|
||||
).freeze
|
||||
|
||||
attr_reader :params, :sort_direction, :contrast_column
|
||||
|
||||
def initialize(params)
|
||||
@params = params
|
||||
@sort_direction = params[:sort_direction].to_s
|
||||
@contrast_column = params[:contrast_column].to_s
|
||||
end
|
||||
|
||||
def call
|
||||
validate_parameter!
|
||||
reports = School.joins(:school_daily_reports).select(select_columns)
|
||||
|
||||
keyword = params[:keyword].try(:to_s).try(:strip)
|
||||
if keyword.present?
|
||||
reports = reports.where("schools.name LIKE :keyword OR schools.id LIKE :keyword", keyword: "%#{keyword}%")
|
||||
end
|
||||
|
||||
count = reports.count('distinct(schools.id)')
|
||||
|
||||
sql = query_report_sql(reports.group('schools.id').to_sql)
|
||||
reports = SchoolDailyReport.find_by_sql(sql)
|
||||
|
||||
[count, reports]
|
||||
end
|
||||
|
||||
private
|
||||
def validate_parameter!
|
||||
if %i[begin_date end_date other_begin_date other_end_date].any? { |key| params[key].blank? }
|
||||
raise ParameterError
|
||||
end
|
||||
|
||||
unless %w(desc asc).include?(sort_direction)
|
||||
raise ParameterError
|
||||
end
|
||||
|
||||
unless CONTRAST_COLUMN_LIST.include?(contrast_column)
|
||||
raise ParameterError
|
||||
end
|
||||
end
|
||||
|
||||
def format_date(date)
|
||||
Time.zone.parse(date).strftime("%Y-%m-%d")
|
||||
end
|
||||
|
||||
def offset
|
||||
(params[:page].to_i.zero? ? 0 : params[:page].to_i - 1) * PAGE_SIZE
|
||||
end
|
||||
|
||||
def select_columns
|
||||
"schools.id school_id, schools.name school_name,"\
|
||||
"(SUM(IF(date BETWEEN '#{format_date(params[:begin_date])}' AND '#{format_date(params[:end_date])}', #{contrast_column}, 0))) total,"\
|
||||
"(SUM(IF(date BETWEEN '#{format_date(params[:other_begin_date])}' AND '#{format_date(params[:other_end_date])}', #{contrast_column}, 0))) other_total"\
|
||||
end
|
||||
|
||||
def query_report_sql(from_sql)
|
||||
"SELECT reports.*, (other_total - total) increase, (IF(other_total - total = 0, 0.0, round((other_total - total) / IF(total = 0, 1, total), 5))) percentage "\
|
||||
"FROM (#{from_sql}) reports ORDER BY percentage #{sort_direction} LIMIT #{PAGE_SIZE} OFFSET #{offset}"
|
||||
end
|
||||
end
|
@ -0,0 +1,100 @@
|
||||
class Management::SchoolReportService
|
||||
include CustomSortable
|
||||
|
||||
attr_reader :params
|
||||
|
||||
sort_columns :student_count, :teacher_count, :homework_count, :other_homework_count,
|
||||
:course_count, :active_course_count, :nearly_course_time,
|
||||
default_by: :teacher_count, default_direction: :desc
|
||||
|
||||
def initialize(params)
|
||||
@params = params
|
||||
end
|
||||
|
||||
def call
|
||||
schools = School.group('schools.id')
|
||||
|
||||
keyword = params[:keyword].try(:to_s).try(:strip)
|
||||
if keyword.present?
|
||||
schools = schools.where("schools.name LIKE :keyword OR schools.id LIKE :keyword", keyword: "%#{keyword}%")
|
||||
end
|
||||
|
||||
count = schools.count.count
|
||||
|
||||
# 根据排序字段进行查询
|
||||
schools = query_by_sort_column(schools, params[:sort_by])
|
||||
schools = custom_sort(schools, params[:sort_by], params[:sort_direction])
|
||||
|
||||
schools = schools.limit(page_size).offset(offset)
|
||||
# 查询并组装其它数据
|
||||
schools = package_other_data(schools)
|
||||
|
||||
[count, schools]
|
||||
end
|
||||
|
||||
def package_other_data(schools)
|
||||
ids = schools.map(&:id)
|
||||
|
||||
student_map = UserExtensions.where(school_id: ids, identity: User::STUDENT).group(:school_id).count
|
||||
teacher_map = UserExtensions.where(school_id: ids, identity: User::TEACHER).group(:school_id).count
|
||||
|
||||
homeworks = HomeworkCommon.joins(:course)
|
||||
shixun_homework_map = homeworks.where(homework_type: 4, courses: { school_id: ids }).group('school_id').count
|
||||
other_homework_map = homeworks.where(homework_type: [1, 3], courses: { school_id: ids }).group('school_id').count
|
||||
|
||||
courses = Course.where(is_delete: 0, school_id: ids).group('school_id')
|
||||
course_map = courses.count
|
||||
nearly_course_time_map = courses.joins(:course_activities).maximum('course_activities.updated_at')
|
||||
active_course_map = courses.where(is_end: false).count
|
||||
|
||||
schools.map do |school|
|
||||
{
|
||||
id: school.id,
|
||||
name: school.name,
|
||||
teacher_count: teacher_map[school.id],
|
||||
student_count: student_map[school.id],
|
||||
homework_count: shixun_homework_map[school.id],
|
||||
other_homework_count: other_homework_map[school.id],
|
||||
course_count: course_map[school.id],
|
||||
nearly_course_time: nearly_course_time_map[school.id],
|
||||
active_course_count: active_course_map[school.id],
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
private
|
||||
def query_by_sort_column(schools, sort_by_column)
|
||||
base_query_column = 'schools.id, schools.name'
|
||||
|
||||
case sort_by_column.to_s
|
||||
when 'teacher_count' then
|
||||
schools.joins(:teacher_extensions).select("#{base_query_column}, COUNT(*) teacher_count")
|
||||
when 'student_count' then
|
||||
schools.joins(:student_extensions).select("#{base_query_column}, COUNT(*) student_count")
|
||||
when 'homework_count' then
|
||||
schools.joins(courses: :shixun_homework_commons).select("#{base_query_column}, COUNT(*) homework_count")
|
||||
when 'other_homework_count' then
|
||||
schools.joins(courses: :other_homework_commons).select("#{base_query_column}, COUNT(*) other_homework_count")
|
||||
when 'course_count' then
|
||||
schools.joins('LEFT JOIN courses cs ON cs.school_id = schools.id AND cs.is_delete = 0')
|
||||
.select("#{base_query_column}, COUNT(*) course_count")
|
||||
when 'nearly_course_time' then
|
||||
schools.joins('LEFT JOIN courses cs ON cs.school_id = schools.id AND cs.is_delete = 0')
|
||||
.joins('LEFT JOIN course_activities acs ON acs.course_id = cs.id')
|
||||
.select("#{base_query_column}, MAX(acs.updated_at) nearly_course_time")
|
||||
when 'active_course_count' then
|
||||
schools.joins('LEFT JOIN courses cs ON cs.school_id = schools.id AND cs.is_delete = 0 AND cs.is_end = false')
|
||||
.select("#{base_query_column}, COUNT(*) active_course_count")
|
||||
else
|
||||
schools.joins(:teacher_extensions).select("#{base_query_column}, COUNT(*) teacher_count")
|
||||
end
|
||||
end
|
||||
|
||||
def page_size
|
||||
params[:per_page] || 20
|
||||
end
|
||||
|
||||
def offset
|
||||
(params[:page].to_i.zero? ? 0 : params[:page].to_i - 1) * page_size
|
||||
end
|
||||
end
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue