-
Notifications
You must be signed in to change notification settings - Fork 64
/
hrm.sql
1266 lines (1229 loc) · 128 KB
/
hrm.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Navicat Premium Data Transfer
Source Server : mysql
Source Server Type : MySQL
Source Server Version : 80100
Source Host : localhost:3306
Source Schema : hrm
Target Server Type : MySQL
Target Server Version : 80100
File Encoding : 65001
Date: 28/04/2024 22:46:22
*/
SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;
-- ----------------------------
-- Table structure for att_attendance
-- ----------------------------
DROP TABLE IF EXISTS `att_attendance`;
CREATE TABLE `att_attendance` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`staff_id` int NULL DEFAULT NULL COMMENT '员工id',
`mor_start_time` time NULL DEFAULT NULL COMMENT '上午上班时间',
`mor_end_time` time NULL DEFAULT NULL COMMENT '上午下班时间',
`aft_start_time` time NULL DEFAULT NULL COMMENT '下午上班时间',
`aft_end_time` time NULL DEFAULT NULL COMMENT '下午下班时间',
`attendance_date` date NOT NULL COMMENT '考勤日期',
`status` tinyint NULL DEFAULT NULL COMMENT '0正常,1迟到,2早退,3旷工,4休假,5补休',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 308 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工考勤表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of att_attendance
-- ----------------------------
INSERT INTO `att_attendance` VALUES (197, 1, '07:30:00', '11:30:00', '13:30:00', '18:00:00', '2022-05-09', 0, NULL, '2022-05-06 16:52:25', '2022-05-06 17:35:20', 0);
INSERT INTO `att_attendance` VALUES (198, 1, '06:50:00', '12:00:00', '13:00:00', '17:00:16', '2022-05-10', 0, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (199, 1, '09:00:00', '10:30:00', '13:01:55', '16:00:16', '2022-05-11', 3, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (200, 2, '07:00:00', '12:35:00', '13:12:55', '19:20:16', '2022-05-09', 1, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (201, 2, '07:40:00', '12:20:00', '13:09:55', '18:10:16', '2022-05-10', 0, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (202, 2, '07:40:00', '12:30:00', NULL, '18:49:00', '2022-05-11', 0, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (203, 3, '06:12:00', '11:00:00', '13:01:55', '16:00:16', '2022-05-09', 2, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (204, 3, '07:00:00', '11:30:00', '13:30:00', '18:00:00', '2022-05-10', 3, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (205, 3, '07:20:00', '12:30:00', '13:00:00', '18:00:16', '2022-05-11', 0, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (206, 4, '09:30:00', '10:40:00', '13:10:55', '16:30:16', '2022-05-09', 3, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (207, 4, '05:00:00', '12:35:00', '13:00:55', '19:20:16', '2022-05-10', 0, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (208, 4, '05:40:00', '13:00:00', '13:00:55', '18:10:16', '2022-05-11', 0, NULL, '2022-05-06 16:52:25', '2022-05-06 16:52:25', 0);
INSERT INTO `att_attendance` VALUES (209, 1, NULL, NULL, NULL, NULL, '2022-05-06', 0, NULL, '2022-05-06 17:35:20', '2022-05-06 17:35:20', 0);
INSERT INTO `att_attendance` VALUES (210, 1, NULL, NULL, NULL, NULL, '2022-05-16', 0, NULL, '2022-05-06 17:38:40', '2022-05-06 17:38:40', 0);
INSERT INTO `att_attendance` VALUES (211, 1, NULL, NULL, NULL, NULL, '2022-05-17', 1, NULL, '2022-05-06 17:38:40', '2022-05-06 17:38:40', 0);
INSERT INTO `att_attendance` VALUES (212, 3, '07:20:00', '12:30:00', '13:00:00', '18:00:16', '2022-04-06', 0, NULL, '2022-05-06 17:54:37', '2022-05-13 15:09:39', 0);
INSERT INTO `att_attendance` VALUES (213, 4, NULL, NULL, NULL, NULL, '2022-04-12', 0, NULL, '2022-05-06 17:54:43', '2022-05-06 17:54:43', 0);
INSERT INTO `att_attendance` VALUES (214, 1, NULL, NULL, NULL, NULL, '2022-04-12', 2, NULL, '2022-05-06 17:54:50', '2022-05-06 17:54:50', 0);
INSERT INTO `att_attendance` VALUES (215, 2, NULL, NULL, NULL, NULL, '2022-04-14', 1, NULL, '2022-05-06 17:54:56', '2022-05-06 17:54:56', 0);
INSERT INTO `att_attendance` VALUES (216, 6, NULL, NULL, NULL, NULL, '2022-04-13', 3, NULL, '2022-05-06 17:55:03', '2022-05-06 17:55:03', 0);
INSERT INTO `att_attendance` VALUES (217, 6, NULL, NULL, NULL, NULL, '2022-05-13', 2, NULL, '2022-05-06 18:05:27', '2022-05-06 18:05:27', 0);
INSERT INTO `att_attendance` VALUES (218, 9, NULL, NULL, NULL, NULL, '2022-05-13', 1, NULL, '2022-05-06 18:05:34', '2022-05-06 18:05:34', 0);
INSERT INTO `att_attendance` VALUES (219, 1, '06:00:00', '12:00:00', '13:00:55', '18:00:16', '2022-07-08', 0, NULL, '2022-05-12 20:50:04', '2024-04-04 22:18:12', 0);
INSERT INTO `att_attendance` VALUES (220, 1, '09:00:00', '10:30:00', '13:01:55', '16:00:16', '2022-07-11', 3, NULL, '2022-05-12 20:50:04', '2024-04-06 11:22:29', 0);
INSERT INTO `att_attendance` VALUES (221, 2, '06:45:00', '11:40:00', '13:10:55', '16:30:16', '2022-07-08', 1, NULL, '2022-05-12 20:50:04', '2024-04-06 11:22:29', 0);
INSERT INTO `att_attendance` VALUES (222, 2, '07:40:00', '12:30:00', NULL, '18:49:16', '2022-07-11', 3, NULL, '2022-05-12 20:50:04', '2024-04-06 11:22:29', 0);
INSERT INTO `att_attendance` VALUES (223, 3, '07:34:00', '12:10:00', '15:11:55', '21:00:16', '2022-07-08', 1, NULL, '2022-05-12 20:50:04', '2024-04-04 22:25:37', 0);
INSERT INTO `att_attendance` VALUES (224, 3, '07:20:00', '12:30:00', '13:00:00', '18:00:16', '2022-07-11', 1, NULL, '2022-05-12 20:50:04', '2024-04-04 22:25:37', 0);
INSERT INTO `att_attendance` VALUES (225, 4, '08:00:00', '11:00:00', '13:01:55', '16:00:16', '2022-07-08', 3, NULL, '2022-05-12 20:50:04', '2024-04-06 11:22:29', 0);
INSERT INTO `att_attendance` VALUES (226, 4, '05:40:00', '13:00:00', '13:00:55', '18:10:16', '2022-07-11', 0, NULL, '2022-05-12 20:50:04', '2022-05-12 20:50:04', 0);
INSERT INTO `att_attendance` VALUES (227, 4, NULL, NULL, NULL, NULL, '2022-04-26', 2, NULL, '2022-05-12 20:53:46', '2022-05-12 20:53:46', 0);
INSERT INTO `att_attendance` VALUES (228, 1, NULL, NULL, NULL, NULL, '2022-04-20', 3, NULL, '2022-05-13 09:27:18', '2022-05-13 09:27:18', 0);
INSERT INTO `att_attendance` VALUES (229, 5, NULL, NULL, NULL, NULL, '2022-05-05', 2, NULL, '2022-05-13 14:20:43', '2022-05-13 14:20:43', 0);
INSERT INTO `att_attendance` VALUES (230, 1, '07:30:00', '11:30:00', '13:30:00', '18:00:00', '2022-04-04', 3, NULL, '2022-05-13 15:09:38', '2022-05-13 15:09:38', 0);
INSERT INTO `att_attendance` VALUES (231, 1, '06:50:00', '12:00:00', '13:00:00', '17:00:16', '2022-04-05', 0, NULL, '2022-05-13 15:09:38', '2022-05-13 15:09:38', 0);
INSERT INTO `att_attendance` VALUES (232, 1, '09:00:00', '10:30:00', '13:01:55', '16:00:16', '2022-04-06', 3, NULL, '2022-05-13 15:09:38', '2022-05-13 15:09:38', 0);
INSERT INTO `att_attendance` VALUES (233, 2, '07:00:00', '12:35:00', '13:12:55', '19:20:16', '2022-04-04', 1, NULL, '2022-05-13 15:09:38', '2022-05-13 15:09:38', 0);
INSERT INTO `att_attendance` VALUES (234, 2, '07:40:00', '12:20:00', '13:09:55', '18:10:16', '2022-04-05', 0, NULL, '2022-05-13 15:09:38', '2022-05-13 15:09:38', 0);
INSERT INTO `att_attendance` VALUES (235, 2, '07:40:00', '12:30:00', NULL, '18:49:16', '2022-04-06', 3, NULL, '2022-05-13 15:09:38', '2022-05-13 15:09:38', 0);
INSERT INTO `att_attendance` VALUES (236, 3, '06:12:00', '11:00:00', '13:01:55', '16:00:16', '2022-04-04', 2, NULL, '2022-05-13 15:09:39', '2022-05-13 15:09:39', 0);
INSERT INTO `att_attendance` VALUES (237, 3, '07:00:00', '11:30:00', '13:30:00', '18:00:00', '2022-04-05', 3, NULL, '2022-05-13 15:09:39', '2022-05-13 15:09:39', 0);
INSERT INTO `att_attendance` VALUES (238, 4, '09:30:00', '10:40:00', '13:10:55', '16:30:16', '2022-04-04', 3, NULL, '2022-05-13 15:09:40', '2022-05-13 15:09:40', 0);
INSERT INTO `att_attendance` VALUES (239, 4, '05:00:00', '12:35:00', '13:00:55', '19:20:16', '2022-04-05', 0, NULL, '2022-05-13 15:09:40', '2022-05-13 15:09:40', 0);
INSERT INTO `att_attendance` VALUES (240, 4, '05:40:00', '13:00:00', '13:00:55', '18:10:16', '2022-04-06', 0, NULL, '2022-05-13 15:09:40', '2022-05-13 15:09:40', 0);
INSERT INTO `att_attendance` VALUES (241, 1, NULL, NULL, NULL, NULL, '2022-05-19', 4, NULL, '2022-05-13 15:12:39', '2022-05-13 15:12:39', 0);
INSERT INTO `att_attendance` VALUES (242, 1, NULL, NULL, NULL, NULL, '2022-05-20', 4, NULL, '2022-05-13 15:12:39', '2022-05-13 15:12:39', 0);
INSERT INTO `att_attendance` VALUES (247, 1, NULL, NULL, NULL, NULL, '2023-01-01', 2, NULL, '2023-01-02 13:50:02', '2023-01-02 13:50:02', 0);
INSERT INTO `att_attendance` VALUES (250, 1, NULL, NULL, NULL, NULL, '2023-01-02', 1, NULL, '2023-01-25 21:13:29', '2023-01-25 21:13:29', 0);
INSERT INTO `att_attendance` VALUES (251, 3, NULL, NULL, NULL, NULL, '2023-01-04', 4, NULL, '2023-01-25 21:17:59', '2023-01-25 21:17:59', 0);
INSERT INTO `att_attendance` VALUES (252, 2, NULL, NULL, NULL, NULL, '2023-02-07', 3, NULL, '2023-02-14 12:10:00', '2023-02-14 12:10:00', 0);
INSERT INTO `att_attendance` VALUES (253, 1, NULL, NULL, NULL, NULL, '2023-02-16', 4, NULL, '2023-02-14 22:07:48', '2023-02-14 22:07:48', 0);
INSERT INTO `att_attendance` VALUES (254, 1, NULL, NULL, NULL, NULL, '2023-02-17', 3, NULL, '2023-02-14 22:07:49', '2023-02-14 22:07:49', 0);
INSERT INTO `att_attendance` VALUES (255, 1, NULL, NULL, NULL, NULL, '2023-02-15', 4, NULL, '2023-02-14 22:09:39', '2023-02-14 22:09:39', 0);
INSERT INTO `att_attendance` VALUES (256, 1, NULL, NULL, NULL, NULL, '2023-02-21', 4, NULL, '2023-02-14 22:15:58', '2023-02-14 22:15:58', 0);
INSERT INTO `att_attendance` VALUES (257, 1, NULL, NULL, NULL, NULL, '2023-02-22', 4, NULL, '2023-02-14 22:15:58', '2023-02-14 22:15:58', 0);
INSERT INTO `att_attendance` VALUES (258, 1, NULL, NULL, NULL, NULL, '2023-02-08', 2, NULL, '2023-02-15 01:04:56', '2023-02-15 01:04:56', 0);
INSERT INTO `att_attendance` VALUES (259, 1, NULL, NULL, NULL, NULL, '2023-02-23', 1, NULL, '2023-02-15 01:05:17', '2023-02-15 01:05:17', 0);
INSERT INTO `att_attendance` VALUES (260, 5, NULL, NULL, NULL, NULL, '2024-03-07', 2, NULL, '2024-03-05 11:40:37', '2024-03-05 11:40:37', 0);
INSERT INTO `att_attendance` VALUES (261, 7, NULL, NULL, NULL, NULL, '2024-03-13', 1, NULL, '2024-03-05 11:40:43', '2024-03-05 11:40:43', 0);
INSERT INTO `att_attendance` VALUES (262, 9, NULL, NULL, NULL, NULL, '2024-03-04', 2, NULL, '2024-03-05 11:40:50', '2024-03-05 11:40:50', 0);
INSERT INTO `att_attendance` VALUES (263, 3, NULL, NULL, NULL, NULL, '2024-03-15', 1, NULL, '2024-03-05 11:40:56', '2024-03-05 11:40:56', 0);
INSERT INTO `att_attendance` VALUES (264, 3, NULL, NULL, NULL, NULL, '2024-03-12', 3, NULL, '2024-03-05 11:41:02', '2024-03-05 11:41:02', 0);
INSERT INTO `att_attendance` VALUES (265, 7, NULL, NULL, NULL, NULL, '2024-03-20', 3, NULL, '2024-03-05 11:41:08', '2024-03-05 11:41:08', 0);
INSERT INTO `att_attendance` VALUES (266, 7, NULL, NULL, NULL, NULL, '2024-03-21', 3, NULL, '2024-03-05 11:41:12', '2024-03-05 11:41:12', 0);
INSERT INTO `att_attendance` VALUES (267, 7, NULL, NULL, NULL, NULL, '2024-03-19', 3, NULL, '2024-03-05 11:41:16', '2024-03-05 11:41:16', 0);
INSERT INTO `att_attendance` VALUES (268, 3, NULL, NULL, NULL, NULL, '2024-03-05', 2, NULL, '2024-03-05 11:54:37', '2024-03-05 11:54:37', 0);
INSERT INTO `att_attendance` VALUES (269, 4, NULL, NULL, NULL, NULL, '2024-03-05', 3, NULL, '2024-03-05 11:54:41', '2024-03-05 11:54:41', 0);
INSERT INTO `att_attendance` VALUES (270, 5, NULL, NULL, NULL, NULL, '2024-03-05', 3, NULL, '2024-03-05 11:54:46', '2024-03-05 11:54:46', 0);
INSERT INTO `att_attendance` VALUES (271, 8, NULL, NULL, NULL, NULL, '2024-03-05', 1, NULL, '2024-03-05 11:54:53', '2024-03-05 11:54:53', 0);
INSERT INTO `att_attendance` VALUES (272, 1, NULL, NULL, NULL, NULL, '2024-03-22', 4, NULL, '2024-03-22 21:27:16', '2024-03-22 21:27:16', 0);
INSERT INTO `att_attendance` VALUES (273, 1, NULL, NULL, NULL, NULL, '2024-03-25', 4, NULL, '2024-03-22 21:27:16', '2024-03-22 21:27:16', 0);
INSERT INTO `att_attendance` VALUES (274, 1, NULL, NULL, NULL, NULL, '2024-03-26', 1, NULL, '2024-03-22 22:43:52', '2024-03-22 22:43:52', 0);
INSERT INTO `att_attendance` VALUES (275, 1, NULL, NULL, NULL, NULL, '2024-03-29', 5, NULL, '2024-03-22 23:37:32', '2024-03-22 23:37:32', 0);
INSERT INTO `att_attendance` VALUES (276, 1, NULL, NULL, NULL, NULL, '2024-04-05', 5, NULL, '2024-03-23 08:52:27', '2024-03-23 08:52:27', 0);
INSERT INTO `att_attendance` VALUES (277, 1, NULL, NULL, NULL, NULL, '2024-03-28', 5, NULL, '2024-03-23 13:06:53', '2024-03-23 13:06:53', 0);
INSERT INTO `att_attendance` VALUES (278, 1, NULL, NULL, NULL, NULL, '2024-03-05', 2, NULL, '2024-03-23 22:48:47', '2024-03-23 22:48:47', 0);
INSERT INTO `att_attendance` VALUES (279, 4, NULL, NULL, NULL, NULL, '2024-03-26', 3, NULL, '2024-03-26 11:54:11', '2024-03-26 11:54:11', 0);
INSERT INTO `att_attendance` VALUES (280, 5, NULL, NULL, NULL, NULL, '2024-03-26', 3, NULL, '2024-03-26 11:54:15', '2024-03-26 11:54:15', 0);
INSERT INTO `att_attendance` VALUES (281, 15, NULL, NULL, NULL, NULL, '2024-03-26', 1, NULL, '2024-03-26 11:54:23', '2024-03-26 11:54:23', 0);
INSERT INTO `att_attendance` VALUES (282, 27, NULL, NULL, NULL, NULL, '2024-03-26', 2, NULL, '2024-03-26 11:54:32', '2024-03-26 11:54:32', 0);
INSERT INTO `att_attendance` VALUES (283, 23, NULL, NULL, NULL, NULL, '2024-03-26', 2, NULL, '2024-03-26 11:54:37', '2024-03-26 11:54:37', 0);
INSERT INTO `att_attendance` VALUES (284, 29, NULL, NULL, NULL, NULL, '2024-03-26', 2, NULL, '2024-03-26 11:54:42', '2024-03-26 11:54:42', 0);
INSERT INTO `att_attendance` VALUES (285, 1, NULL, NULL, NULL, NULL, '2022-07-14', 5, NULL, '2024-04-05 14:52:19', '2024-04-05 14:52:19', 0);
INSERT INTO `att_attendance` VALUES (286, 1, NULL, NULL, NULL, NULL, '2024-04-24', 3, NULL, '2024-04-05 14:58:33', '2024-04-05 14:58:33', 0);
INSERT INTO `att_attendance` VALUES (287, 1, NULL, NULL, NULL, NULL, '2024-04-25', 3, NULL, '2024-04-05 14:58:38', '2024-04-05 14:58:38', 0);
INSERT INTO `att_attendance` VALUES (288, 13, NULL, NULL, NULL, NULL, '2024-04-10', 3, NULL, '2024-04-09 17:35:04', '2024-04-09 17:35:04', 0);
INSERT INTO `att_attendance` VALUES (289, 12, NULL, NULL, NULL, NULL, '2024-03-28', 4, NULL, '2024-04-26 10:28:23', '2024-04-26 10:28:23', 0);
INSERT INTO `att_attendance` VALUES (290, 12, NULL, NULL, NULL, NULL, '2024-03-29', 4, NULL, '2024-04-26 10:28:23', '2024-04-26 10:28:23', 0);
INSERT INTO `att_attendance` VALUES (291, 12, NULL, NULL, NULL, NULL, '2024-04-01', 4, NULL, '2024-04-26 10:28:23', '2024-04-26 10:28:23', 0);
INSERT INTO `att_attendance` VALUES (292, 12, NULL, NULL, NULL, NULL, '2024-04-02', 4, NULL, '2024-04-26 10:28:23', '2024-04-26 10:28:23', 0);
INSERT INTO `att_attendance` VALUES (293, 12, NULL, NULL, NULL, NULL, '2024-04-03', 4, NULL, '2024-04-26 10:28:23', '2024-04-26 10:28:23', 0);
INSERT INTO `att_attendance` VALUES (294, 12, NULL, NULL, NULL, NULL, '2024-04-04', 4, NULL, '2024-04-26 10:28:23', '2024-04-26 10:28:23', 0);
INSERT INTO `att_attendance` VALUES (295, 1, NULL, NULL, NULL, NULL, '2024-04-29', 4, NULL, '2024-04-26 23:04:05', '2024-04-26 23:04:05', 0);
INSERT INTO `att_attendance` VALUES (296, 1, NULL, NULL, NULL, NULL, '2024-04-30', 4, NULL, '2024-04-26 23:04:05', '2024-04-26 23:04:05', 0);
INSERT INTO `att_attendance` VALUES (297, 2, NULL, NULL, NULL, NULL, '2024-04-30', 4, NULL, '2024-04-26 23:04:06', '2024-04-26 23:04:06', 0);
INSERT INTO `att_attendance` VALUES (298, 2, NULL, NULL, NULL, NULL, '2024-05-01', 4, NULL, '2024-04-26 23:04:06', '2024-04-26 23:04:06', 0);
INSERT INTO `att_attendance` VALUES (299, 2, NULL, NULL, NULL, NULL, '2024-05-02', 4, NULL, '2024-04-26 23:04:06', '2024-04-26 23:04:06', 0);
INSERT INTO `att_attendance` VALUES (300, 2, NULL, NULL, NULL, NULL, '2024-05-03', 4, NULL, '2024-04-26 23:04:06', '2024-04-26 23:04:06', 0);
INSERT INTO `att_attendance` VALUES (301, 12, NULL, NULL, NULL, NULL, '2024-04-30', 4, NULL, '2024-04-26 23:04:07', '2024-04-26 23:04:07', 0);
INSERT INTO `att_attendance` VALUES (302, 12, NULL, NULL, NULL, NULL, '2024-05-01', 4, NULL, '2024-04-26 23:04:07', '2024-04-26 23:04:07', 0);
INSERT INTO `att_attendance` VALUES (303, 12, NULL, NULL, NULL, NULL, '2024-05-02', 4, NULL, '2024-04-26 23:04:07', '2024-04-26 23:04:07', 0);
INSERT INTO `att_attendance` VALUES (308, 1, NULL, NULL, NULL, NULL, '2024-05-06', 4, NULL, '2024-04-28 19:10:08', '2024-04-28 19:10:08', 0);
INSERT INTO `att_attendance` VALUES (309, 1, NULL, NULL, NULL, NULL, '2024-05-07', 4, NULL, '2024-04-28 19:10:08', '2024-04-28 19:10:08', 0);
INSERT INTO `att_attendance` VALUES (310, 1, NULL, NULL, NULL, NULL, '2024-05-08', 4, NULL, '2024-04-28 19:10:08', '2024-04-28 19:10:08', 0);
INSERT INTO `att_attendance` VALUES (311, 1, NULL, NULL, NULL, NULL, '2024-05-09', 4, NULL, '2024-04-28 19:10:08', '2024-04-28 19:10:08', 0);
INSERT INTO `att_attendance` VALUES (312, 3, NULL, NULL, NULL, NULL, '2025-04-02', 4, NULL, '2024-04-28 22:12:29', '2024-04-28 22:12:29', 0);
INSERT INTO `att_attendance` VALUES (313, 3, NULL, NULL, NULL, NULL, '2025-04-03', 4, NULL, '2024-04-28 22:12:29', '2024-04-28 22:12:29', 0);
INSERT INTO `att_attendance` VALUES (314, 3, NULL, NULL, NULL, NULL, '2025-04-04', 4, NULL, '2024-04-28 22:12:29', '2024-04-28 22:12:29', 0);
INSERT INTO `att_attendance` VALUES (315, 3, NULL, NULL, NULL, NULL, '2025-04-07', 4, NULL, '2024-04-28 22:12:29', '2024-04-28 22:12:29', 0);
-- ----------------------------
-- Table structure for att_leave
-- ----------------------------
DROP TABLE IF EXISTS `att_leave`;
CREATE TABLE `att_leave` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`dept_id` int NULL DEFAULT NULL COMMENT '部门id',
`days` int UNSIGNED NULL DEFAULT NULL COMMENT '休假天数',
`type_num` tinyint UNSIGNED NULL DEFAULT NULL COMMENT '休假类型',
`status` tinyint UNSIGNED NULL DEFAULT 1 COMMENT '0禁用,1正常,默认1',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 24 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '请假表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of att_leave
-- ----------------------------
INSERT INTO `att_leave` VALUES (1, 2, 40, 1, 1, NULL, '2022-03-26 11:53:04', '2022-03-26 11:53:46', 0);
INSERT INTO `att_leave` VALUES (2, 2, 4, 2, 0, NULL, '2022-03-26 12:00:32', '2022-03-26 12:00:32', 0);
INSERT INTO `att_leave` VALUES (3, 3, 4, 1, 1, NULL, '2022-03-27 08:58:39', '2024-03-22 21:59:15', 0);
INSERT INTO `att_leave` VALUES (4, 3, 5, 4, 1, NULL, '2022-03-27 08:58:46', '2024-03-22 22:00:38', 0);
INSERT INTO `att_leave` VALUES (5, 3, 4, 5, 1, NULL, '2022-03-27 08:58:58', '2024-03-22 21:59:19', 0);
INSERT INTO `att_leave` VALUES (6, 2, 3, 4, 0, NULL, '2022-03-27 12:03:52', '2022-03-27 12:03:52', 0);
INSERT INTO `att_leave` VALUES (7, 2, 10, 0, 1, NULL, '2022-03-27 12:05:14', '2022-12-30 11:02:33', 0);
INSERT INTO `att_leave` VALUES (8, 2, 4, 3, 1, NULL, '2022-03-27 13:50:04', '2022-03-27 13:50:04', 0);
INSERT INTO `att_leave` VALUES (9, 5, 10, 2, 1, NULL, '2022-04-08 20:22:36', '2022-04-08 20:22:36', 0);
INSERT INTO `att_leave` VALUES (10, 5, 10, 4, 0, NULL, '2022-04-08 20:22:49', '2022-04-08 20:22:49', 0);
INSERT INTO `att_leave` VALUES (11, 5, 10, 0, 1, NULL, '2022-04-08 20:23:01', '2022-12-30 11:02:38', 0);
INSERT INTO `att_leave` VALUES (12, 5, 30, 1, 0, NULL, '2022-05-06 15:21:20', '2022-05-06 15:21:20', 0);
INSERT INTO `att_leave` VALUES (13, 5, 10, 3, 1, NULL, '2022-05-06 15:21:34', '2022-05-06 15:21:34', 0);
INSERT INTO `att_leave` VALUES (14, 12, 10, 2, 1, NULL, '2022-05-06 17:33:14', '2022-05-06 17:33:14', 0);
INSERT INTO `att_leave` VALUES (15, 12, 10, 4, 1, NULL, '2022-05-06 17:33:27', '2023-01-02 21:11:58', 0);
INSERT INTO `att_leave` VALUES (16, 12, 8, 0, 1, NULL, '2022-05-06 17:33:36', '2022-12-30 11:02:41', 0);
INSERT INTO `att_leave` VALUES (17, 2, 2, 5, 1, NULL, '2023-01-01 19:49:15', '2023-01-01 19:49:45', 0);
INSERT INTO `att_leave` VALUES (18, 12, 3, 6, 1, NULL, '2024-03-22 22:30:05', '2024-03-22 22:30:05', 0);
INSERT INTO `att_leave` VALUES (19, 12, 10, 3, 1, NULL, '2024-04-27 09:33:14', '2024-04-27 09:33:14', 0);
INSERT INTO `att_leave` VALUES (20, 12, 15, 5, 1, NULL, '2024-04-27 09:34:13', '2024-04-27 09:34:13', 0);
INSERT INTO `att_leave` VALUES (21, 13, 10, 0, 1, NULL, '2024-04-27 09:34:56', '2024-04-27 09:34:56', 0);
INSERT INTO `att_leave` VALUES (22, 13, 7, 3, 1, NULL, '2024-04-27 09:35:05', '2024-04-27 09:35:05', 0);
INSERT INTO `att_leave` VALUES (23, 13, 10, 4, 1, NULL, '2024-04-27 09:35:15', '2024-04-27 09:35:15', 0);
-- ----------------------------
-- Table structure for att_overtime
-- ----------------------------
DROP TABLE IF EXISTS `att_overtime`;
CREATE TABLE `att_overtime` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`salary_multiple` decimal(5, 2) NULL DEFAULT NULL COMMENT '工资倍数,如按照小时计算,就是员工平均小时工资乘以倍数',
`bonus` decimal(10, 3) UNSIGNED NOT NULL DEFAULT 0.000 COMMENT '加班奖金',
`type_num` tinyint NULL DEFAULT NULL COMMENT '加班类型,0工作日加班,1节假日加班,2休息日加班',
`dept_id` int NULL DEFAULT NULL COMMENT '部门id',
`count_type` tinyint NULL DEFAULT NULL COMMENT '0小时,1天,默认0,计数加班工资的类型',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NOT NULL DEFAULT 0,
`is_time_off` tinyint UNSIGNED NULL DEFAULT NULL COMMENT '休息日加班是否调休,0不补休,1补休,默认0',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 48 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '加班表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of att_overtime
-- ----------------------------
INSERT INTO `att_overtime` VALUES (1, 4.00, 200.000, 1, 2, 1, NULL, '2022-03-28 19:16:06', '2024-03-21 12:06:11', 0, 0);
INSERT INTO `att_overtime` VALUES (3, 3.00, 0.000, 1, 5, 0, NULL, '2022-03-28 22:24:08', '2024-03-21 12:06:12', 0, 0);
INSERT INTO `att_overtime` VALUES (4, 2.00, 0.000, 2, 5, 1, NULL, '2022-03-28 22:26:03', '2022-03-28 22:26:03', 0, 0);
INSERT INTO `att_overtime` VALUES (5, 2.00, 0.000, 2, 2, 1, NULL, '2022-03-28 22:28:01', '2024-03-21 14:44:58', 0, 0);
INSERT INTO `att_overtime` VALUES (7, 2.00, 150.000, 0, 2, 0, NULL, '2023-02-14 20:44:26', '2024-03-21 12:06:17', 0, 0);
INSERT INTO `att_overtime` VALUES (8, 1.50, 70.000, 0, 12, 0, NULL, '2024-03-21 11:48:43', '2024-03-21 11:48:43', 0, 0);
INSERT INTO `att_overtime` VALUES (9, 3.00, 100.000, 1, 12, 1, NULL, '2024-03-21 11:50:15', '2024-03-21 11:50:15', 0, 0);
INSERT INTO `att_overtime` VALUES (10, 2.00, 0.000, 2, 12, 0, NULL, '2024-03-21 11:50:49', '2024-03-21 14:45:35', 0, 1);
INSERT INTO `att_overtime` VALUES (11, 1.60, 0.000, 0, 5, 0, NULL, '2024-03-21 11:52:13', '2024-03-21 14:33:51', 0, 0);
INSERT INTO `att_overtime` VALUES (12, 1.50, 100.000, 0, 9, 1, NULL, '2024-03-21 11:59:30', '2024-03-21 11:59:30', 0, 0);
INSERT INTO `att_overtime` VALUES (13, 3.00, 120.000, 1, 9, 1, NULL, '2024-03-21 12:00:36', '2024-03-21 12:00:36', 0, 0);
INSERT INTO `att_overtime` VALUES (14, 2.00, 80.000, 2, 9, 0, NULL, '2024-03-21 12:01:17', '2024-03-21 12:01:17', 0, 0);
INSERT INTO `att_overtime` VALUES (15, 1.50, 90.000, 0, 3, 0, NULL, '2024-03-21 12:02:42', '2024-03-21 12:02:42', 0, 0);
INSERT INTO `att_overtime` VALUES (16, 3.00, 80.000, 1, 3, 0, NULL, '2024-03-21 12:02:58', '2024-03-21 12:02:58', 0, 0);
INSERT INTO `att_overtime` VALUES (17, 2.00, 0.000, 2, 3, 0, NULL, '2024-03-21 12:03:07', '2024-03-21 14:46:22', 0, 1);
INSERT INTO `att_overtime` VALUES (18, 1.50, 80.000, 0, 6, 0, NULL, '2024-03-21 19:45:33', '2024-03-21 19:45:33', 0, 0);
INSERT INTO `att_overtime` VALUES (19, 3.00, 80.000, 1, 6, 0, NULL, '2024-03-21 19:45:33', '2024-03-21 19:45:33', 0, 0);
INSERT INTO `att_overtime` VALUES (20, 2.00, 80.000, 2, 6, 0, NULL, '2024-03-21 19:45:33', '2024-03-21 19:45:33', 0, 0);
INSERT INTO `att_overtime` VALUES (21, 1.50, 80.000, 0, 8, 0, NULL, '2024-03-21 19:48:24', '2024-03-21 19:48:24', 0, 0);
INSERT INTO `att_overtime` VALUES (22, 3.00, 80.000, 1, 8, 0, NULL, '2024-03-21 19:48:24', '2024-03-21 19:48:24', 0, 0);
INSERT INTO `att_overtime` VALUES (23, 2.00, 80.000, 2, 8, 0, NULL, '2024-03-21 19:48:24', '2024-03-21 19:48:24', 0, 0);
INSERT INTO `att_overtime` VALUES (24, 1.50, 90.000, 0, 10, 0, NULL, '2024-03-21 19:49:30', '2024-03-21 19:49:30', 0, 0);
INSERT INTO `att_overtime` VALUES (25, 3.00, 90.000, 1, 10, 0, NULL, '2024-03-21 19:49:30', '2024-03-21 19:49:30', 0, 0);
INSERT INTO `att_overtime` VALUES (26, 2.00, 90.000, 2, 10, 0, NULL, '2024-03-21 19:49:30', '2024-03-21 19:49:30', 0, 0);
INSERT INTO `att_overtime` VALUES (27, 1.50, 95.000, 0, 13, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (28, 3.00, 95.000, 1, 13, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (29, 2.00, 95.000, 2, 13, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (30, 1.50, 90.000, 0, 14, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (31, 3.00, 90.000, 1, 14, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (32, 2.00, 90.000, 2, 14, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (33, 1.50, 80.000, 0, 15, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (34, 3.00, 95.000, 1, 15, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (35, 2.00, 90.000, 2, 15, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (36, 1.50, 80.000, 0, 17, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (37, 3.00, 90.000, 1, 17, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (38, 2.00, 90.000, 2, 17, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (39, 1.50, 90.000, 0, 18, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (40, 3.00, 80.000, 1, 18, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (41, 2.00, 90.000, 2, 18, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (42, 1.50, 90.000, 0, 19, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (43, 3.00, 70.000, 1, 19, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (44, 2.00, 90.000, 2, 19, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (45, 1.50, 90.000, 0, 20, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (46, 3.00, 95.000, 1, 20, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
INSERT INTO `att_overtime` VALUES (47, 2.00, 90.000, 2, 20, 0, NULL, '2024-03-21 19:55:28', '2024-03-21 19:55:28', 0, 0);
-- ----------------------------
-- Table structure for att_staff_leave
-- ----------------------------
DROP TABLE IF EXISTS `att_staff_leave`;
CREATE TABLE `att_staff_leave` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`staff_id` int NULL DEFAULT NULL COMMENT '员工id',
`days` int NULL DEFAULT NULL COMMENT '请假的天数',
`type_num` tinyint NULL DEFAULT NULL COMMENT '请假类型',
`start_date` date NULL DEFAULT NULL COMMENT '请假的开始日期',
`status` tinyint UNSIGNED NULL DEFAULT 0 COMMENT '0待审核,1审核通过,2驳回,3撤销,4审核中',
`audit_remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '审批意见',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 58 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工请假表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of att_staff_leave
-- ----------------------------
INSERT INTO `att_staff_leave` VALUES (67, 1, 7, 5, '2024-04-30', 1, NULL, NULL, '2024-04-28 19:25:36', '2024-04-28 19:26:12', 0);
INSERT INTO `att_staff_leave` VALUES (68, 1, 6, 0, '2024-04-30', 3, '厉害!', NULL, '2024-04-28 19:29:31', '2024-04-28 21:43:52', 1);
INSERT INTO `att_staff_leave` VALUES (69, 1, 10, 3, '2024-04-30', 3, NULL, NULL, '2024-04-28 21:43:35', '2024-04-28 21:43:35', 0);
INSERT INTO `att_staff_leave` VALUES (70, 1, 6, 5, '2024-05-02', 1, NULL, NULL, '2024-04-28 21:44:26', '2024-04-28 21:44:44', 0);
INSERT INTO `att_staff_leave` VALUES (71, 1, 5, 0, '2024-04-30', 4, NULL, NULL, '2024-04-28 21:46:31', '2024-04-28 22:21:19', 0);
INSERT INTO `att_staff_leave` VALUES (72, 2, 4, 0, '2024-04-30', 4, NULL, NULL, '2024-04-28 22:07:34', '2024-04-28 22:08:32', 0);
INSERT INTO `att_staff_leave` VALUES (73, 3, 6, 3, '2025-04-02', 1, NULL, NULL, '2024-04-28 22:08:03', '2024-04-28 22:12:28', 0);
INSERT INTO `att_staff_leave` VALUES (74, 5, 10, 3, '2024-04-30', 0, NULL, NULL, '2024-04-28 22:21:55', '2024-04-28 22:21:55', 0);
-- ----------------------------
-- Table structure for att_staff_overtime
-- ----------------------------
DROP TABLE IF EXISTS `att_staff_overtime`;
CREATE TABLE `att_staff_overtime` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`staff_id` int NULL DEFAULT NULL COMMENT '员工id',
`mor_start_time` time NULL DEFAULT NULL COMMENT '上午上班时间',
`mor_end_time` time NULL DEFAULT NULL COMMENT '上午下班时间',
`aft_start_time` time NULL DEFAULT NULL COMMENT '下午上班时间',
`aft_end_time` time NULL DEFAULT NULL COMMENT '下午下班时间',
`overtime_date` date NOT NULL COMMENT '加班日期',
`total_overtime` decimal(3, 1) NULL DEFAULT NULL COMMENT '加班时长',
`overtime_salary` decimal(10, 3) NULL DEFAULT NULL COMMENT '加班工资',
`type_num` tinyint NULL DEFAULT NULL COMMENT '加班类型,0工作日加班、1节假日加班、2休息日加班',
`status` tinyint NULL DEFAULT NULL COMMENT '加班状态,0正常、1加班、2调休',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 302 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工加班表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of att_staff_overtime
-- ----------------------------
INSERT INTO `att_staff_overtime` VALUES (278, 1, '06:00:00', '12:00:00', '13:00:55', '18:00:16', '2023-07-08', 11.0, 0.000, 2, 2, NULL, '2024-03-21 14:35:25', '2024-03-22 23:37:32', 1);
INSERT INTO `att_staff_overtime` VALUES (279, 1, '07:30:00', '11:30:00', '13:30:00', '18:00:00', '2023-07-09', 8.5, 0.000, 2, 2, NULL, '2024-03-21 14:35:25', '2024-03-23 08:52:27', 1);
INSERT INTO `att_staff_overtime` VALUES (280, 1, '06:50:00', '12:00:00', '13:00:00', '17:00:16', '2023-07-10', 9.2, 860.609, 0, 1, NULL, '2024-03-21 14:35:25', '2024-03-21 14:35:25', 0);
INSERT INTO `att_staff_overtime` VALUES (281, 1, '09:00:00', '10:30:00', '13:01:55', '16:00:16', '2023-07-11', 4.5, 455.559, 0, 1, NULL, '2024-03-21 14:35:25', '2024-03-21 14:35:25', 0);
INSERT INTO `att_staff_overtime` VALUES (282, 2, '06:45:00', '11:40:00', '13:10:55', '16:30:16', '2023-07-08', 8.2, 1103.448, 2, 1, NULL, '2024-03-21 14:35:25', '2024-04-05 15:53:20', 0);
INSERT INTO `att_staff_overtime` VALUES (283, 2, '07:00:00', '12:35:00', '13:12:55', '19:20:16', '2023-07-09', 11.7, 1103.448, 2, 1, NULL, '2024-03-21 14:35:25', '2024-03-21 14:35:25', 0);
INSERT INTO `att_staff_overtime` VALUES (284, 2, '07:40:00', '12:20:00', '13:09:55', '18:10:16', '2023-07-10', 9.7, 1067.318, 0, 1, NULL, '2024-03-21 14:35:25', '2024-04-05 15:50:49', 0);
INSERT INTO `att_staff_overtime` VALUES (285, 3, '07:34:00', '12:10:00', '15:11:55', '21:00:16', '2023-07-08', 10.4, 1515.297, 2, 1, NULL, '2024-03-21 14:35:25', '2024-04-05 15:53:20', 0);
INSERT INTO `att_staff_overtime` VALUES (286, 3, '06:12:00', '11:00:00', '13:01:55', '16:00:16', '2023-07-09', 7.8, 1152.076, 2, 1, NULL, '2024-03-21 14:35:25', '2024-04-05 15:50:49', 0);
INSERT INTO `att_staff_overtime` VALUES (287, 3, '07:00:00', '11:30:00', '13:30:00', '18:00:00', '2023-07-10', 9.0, 927.586, 0, 1, NULL, '2024-03-21 14:35:26', '2024-04-05 15:53:20', 0);
INSERT INTO `att_staff_overtime` VALUES (288, 3, '07:20:00', '12:30:00', '13:00:00', '18:00:16', '2023-07-11', 10.2, 927.586, 0, 1, NULL, '2024-03-21 14:35:26', '2024-03-21 14:35:26', 0);
INSERT INTO `att_staff_overtime` VALUES (289, 4, '08:00:00', '11:00:00', '13:01:55', '16:00:16', '2023-07-08', 6.0, 0.000, 2, 1, NULL, '2024-03-21 14:35:26', '2024-03-22 20:06:41', 0);
INSERT INTO `att_staff_overtime` VALUES (290, 4, '09:30:00', '10:40:00', '13:10:55', '16:30:16', '2023-07-09', 4.5, 0.000, 2, 1, NULL, '2024-03-21 14:35:26', '2024-03-22 20:06:44', 0);
INSERT INTO `att_staff_overtime` VALUES (291, 4, '05:00:00', '12:35:00', '13:00:55', '19:20:16', '2023-07-10', 13.9, 1648.420, 0, 1, NULL, '2024-03-21 14:35:26', '2024-03-21 14:35:26', 0);
INSERT INTO `att_staff_overtime` VALUES (292, 4, '05:40:00', '13:00:00', '13:00:55', '18:10:16', '2023-07-11', 12.5, 1489.655, 0, 1, NULL, '2024-03-21 14:35:26', '2024-03-21 14:35:26', 0);
INSERT INTO `att_staff_overtime` VALUES (293, 1, NULL, NULL, NULL, NULL, '2024-03-03', 9.0, 0.000, 2, 2, NULL, '2024-03-22 17:25:08', '2024-03-23 13:06:53', 1);
INSERT INTO `att_staff_overtime` VALUES (294, 2, NULL, NULL, NULL, NULL, '2024-03-01', 3.0, 331.037, 0, 1, NULL, '2024-03-22 17:39:35', '2024-03-22 17:39:35', 0);
INSERT INTO `att_staff_overtime` VALUES (295, 1, NULL, NULL, NULL, NULL, '2024-03-05', 3.0, 328.620, 0, 1, NULL, '2024-03-22 18:00:46', '2024-03-22 18:00:46', 0);
INSERT INTO `att_staff_overtime` VALUES (296, 1, NULL, NULL, NULL, NULL, '2024-03-06', 1.0, 0.000, 0, 1, NULL, '2024-03-22 18:06:34', '2024-03-22 18:06:34', 0);
INSERT INTO `att_staff_overtime` VALUES (297, 1, NULL, NULL, NULL, NULL, '2024-03-09', 7.0, 0.000, 2, 1, NULL, '2024-03-23 08:54:18', '2024-03-23 08:54:18', 0);
INSERT INTO `att_staff_overtime` VALUES (298, 1, NULL, NULL, NULL, NULL, '2024-03-10', 8.0, 0.000, 2, 2, NULL, '2024-03-23 08:54:26', '2024-03-23 13:06:53', 1);
INSERT INTO `att_staff_overtime` VALUES (299, 1, '06:00:00', '12:00:00', '13:00:55', '18:00:16', '2023-07-08', 11.0, 0.000, 2, 2, NULL, '2024-03-23 17:58:34', '2024-04-05 15:54:48', 0);
INSERT INTO `att_staff_overtime` VALUES (300, 1, '07:30:00', '11:30:00', '13:30:00', '18:00:00', '2023-07-09', 8.5, 0.000, 2, 2, NULL, '2024-03-23 17:58:34', '2024-04-05 15:54:48', 0);
INSERT INTO `att_staff_overtime` VALUES (301, 1, NULL, NULL, NULL, NULL, '2024-10-03', 7.0, 0.000, 1, 1, NULL, '2024-03-23 19:50:40', '2024-03-23 19:50:40', 0);
-- ----------------------------
-- Table structure for per_menu
-- ----------------------------
DROP TABLE IF EXISTS `per_menu`;
CREATE TABLE `per_menu` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '菜单id',
`code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单编码',
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '菜单名称',
`icon` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`permission` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '权限标识',
`parent_id` int UNSIGNED NULL DEFAULT 0 COMMENT '父菜单id,0代表根菜单,默认0',
`level` tinyint NULL DEFAULT NULL COMMENT '0一级菜单,1二级菜单,2权限点',
`status` tinyint UNSIGNED NOT NULL DEFAULT 1 COMMENT '权限点是否启用,0禁用、1正常,默认1',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 100 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '菜单表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of per_menu
-- ----------------------------
INSERT INTO `per_menu` VALUES (1, 'staff', '员工管理', 'user', 'system:staff:list', 5, 1, 1, NULL, '2022-02-22 19:47:58', '2024-04-11 16:50:00', 0);
INSERT INTO `per_menu` VALUES (2, 'docs', '文件管理', 'folder', 'system:docs:list', 5, 1, 1, NULL, '2022-12-22 19:48:47', '2024-04-11 16:50:07', 0);
INSERT INTO `per_menu` VALUES (3, 'role', '角色管理', 's-custom', 'permission:role:list', 6, 1, 1, '', '2022-10-22 19:49:42', '2024-04-11 16:50:18', 0);
INSERT INTO `per_menu` VALUES (4, 'menu', '菜单管理', 'collection', 'permission:menu:list', 6, 1, 1, NULL, '2022-01-27 14:32:37', '2024-04-11 16:50:27', 0);
INSERT INTO `per_menu` VALUES (5, 'system', '系统管理', 's-management', '', 0, 0, 1, '', '2022-01-27 14:36:17', '2024-04-11 16:53:43', 0);
INSERT INTO `per_menu` VALUES (6, 'permission', '权限管理', 's-cooperation\r\n', NULL, 0, 0, 1, NULL, '2022-11-20 18:00:21', '2024-04-10 14:49:53', 0);
INSERT INTO `per_menu` VALUES (13, 'department', '部门管理', 's-operation', 'system:department:list', 5, 1, 1, NULL, '2022-03-07 15:36:59', '2024-04-11 16:50:38', 0);
INSERT INTO `per_menu` VALUES (14, 'performance', '考勤管理', 's-check', NULL, 0, 0, 1, NULL, '2022-03-21 23:30:38', '2024-04-10 19:00:51', 0);
INSERT INTO `per_menu` VALUES (15, 'insurance', '五险一金', 's-data', 'money:insurance:list', 17, 1, 1, NULL, '2022-03-21 23:33:59', '2024-04-11 16:50:53', 0);
INSERT INTO `per_menu` VALUES (16, 'salary', '薪资管理', 'data-line', 'money:salary:list', 17, 1, 1, NULL, '2022-03-21 23:34:56', '2024-04-11 16:51:00', 0);
INSERT INTO `per_menu` VALUES (17, 'money', '财务管理', 's-finance\r\n', NULL, 0, 0, 1, NULL, '2022-03-22 11:42:06', '2024-04-10 14:49:53', 0);
INSERT INTO `per_menu` VALUES (18, 'city', '参保城市', 'coordinate\r\n', 'money:city:list', 17, 1, 1, NULL, '2022-03-22 18:27:13', '2024-04-11 16:51:11', 0);
INSERT INTO `per_menu` VALUES (19, 'leave', '请假审批', 'suitcase', 'performance:leave:list', 14, 1, 1, NULL, '2022-03-26 09:40:15', '2024-04-11 16:51:30', 0);
INSERT INTO `per_menu` VALUES (20, 'attendance', '考勤表现', 'reading', 'performance:attendance:list', 14, 1, 1, NULL, '2022-03-26 09:46:24', '2024-04-11 16:51:33', 0);
INSERT INTO `per_menu` VALUES (21, 'overtime', '加班详情', 'time', 'performance:overtime:list', 14, 1, 1, NULL, '2024-03-20 19:21:16', '2024-04-11 16:51:38', 0);
INSERT INTO `per_menu` VALUES (23, 'staff_add', '新增员工', 'circle-plus-outline', 'system:staff:add', 1, 2, 1, NULL, '2024-04-10 16:22:46', '2024-04-10 18:06:53', 0);
INSERT INTO `per_menu` VALUES (24, 'staff_delete', '删除员工', 'remove-outline', 'system:staff:delete', 1, 2, 1, NULL, '2024-04-10 16:24:27', '2024-04-10 18:14:05', 0);
INSERT INTO `per_menu` VALUES (25, 'staff_edit', '员工信息编辑', 'edit', 'system:staff:edit', 1, 2, 1, NULL, '2024-04-10 16:25:19', '2024-04-10 18:14:11', 0);
INSERT INTO `per_menu` VALUES (26, 'staff_search', '查询', 'search', 'system:staff:search', 1, 2, 1, NULL, '2024-04-10 16:26:07', '2024-04-13 11:23:46', 0);
INSERT INTO `per_menu` VALUES (27, 'staff_import', '数据导入', 'bottom', 'system:staff:import', 1, 2, 1, NULL, '2024-04-10 16:27:05', '2024-04-10 18:04:56', 0);
INSERT INTO `per_menu` VALUES (28, 'staff_export', '数据导出', 'top', 'system:staff:export', 1, 2, 1, NULL, '2024-04-10 16:27:34', '2024-04-10 18:04:48', 0);
INSERT INTO `per_menu` VALUES (33, 'docs_delete', '文件删除', 'remove-outline', 'system:docs:delete', 2, 2, 1, NULL, '2024-04-10 16:24:27', '2024-04-10 18:24:12', 0);
INSERT INTO `per_menu` VALUES (34, 'docs_edit', '编辑', 'edit', 'system:docs:edit', 2, 2, 1, NULL, '2024-04-10 16:25:19', '2024-04-10 18:24:20', 0);
INSERT INTO `per_menu` VALUES (35, 'docs_search', '查询', 'search', 'system:docs:search', 2, 2, 1, NULL, '2024-04-10 16:26:07', '2024-04-13 11:23:39', 0);
INSERT INTO `per_menu` VALUES (36, 'docs_import', '导入', 'bottom', 'system:docs:import', 2, 2, 1, NULL, '2024-04-10 16:27:05', '2024-04-10 18:24:33', 0);
INSERT INTO `per_menu` VALUES (37, 'docs_export', '导出', 'top', 'system:docs:export', 2, 2, 1, NULL, '2024-04-10 16:27:34', '2024-04-10 18:24:40', 0);
INSERT INTO `per_menu` VALUES (39, 'docs_upload', '上传', 'upload2', 'system:docs:upload', 2, 2, 1, NULL, '2024-04-10 18:23:41', '2024-04-10 18:26:35', 0);
INSERT INTO `per_menu` VALUES (40, 'docs_download', '下载', 'download', 'system:docs:download', 2, 2, 1, NULL, '2024-04-10 18:25:24', '2024-04-10 18:26:37', 0);
INSERT INTO `per_menu` VALUES (41, 'role_edit', '编辑', 'edit', 'permission:role:edit', 3, 2, 1, NULL, '2024-04-10 21:36:15', '2024-04-11 23:03:51', 0);
INSERT INTO `per_menu` VALUES (42, 'staff_set_role', '分配角色', 's-tools', 'system:staff:set_role', 1, 2, 1, NULL, '2024-04-11 12:02:23', '2024-04-11 22:23:22', 0);
INSERT INTO `per_menu` VALUES (52, 'staff_enable', '启用禁用', 'open', 'system:staff:enable', 1, 2, 1, NULL, '2024-04-11 22:27:49', '2024-04-11 22:59:57', 0);
INSERT INTO `per_menu` VALUES (53, 'department_add', '增加部门', 'circle-plus-outline', 'system:department:add', 13, 2, 1, NULL, '2024-04-11 22:32:50', '2024-04-11 22:54:20', 0);
INSERT INTO `per_menu` VALUES (54, 'department_delete', '删除部门', 'remove-outline', 'system:department:delete', 13, 2, 1, NULL, '2024-04-11 22:39:29', '2024-04-11 22:54:36', 0);
INSERT INTO `per_menu` VALUES (55, 'department_edit', '编辑', 'edit', 'system:department:edit', 13, 2, 1, NULL, '2024-04-11 22:40:41', '2024-04-11 22:54:56', 0);
INSERT INTO `per_menu` VALUES (56, 'department_search', '查询', 'search', 'system:department:search', 13, 2, 1, NULL, '2024-04-11 22:42:03', '2024-04-13 11:23:32', 0);
INSERT INTO `per_menu` VALUES (57, 'department_import', '导入', 'bottom', 'system:department:import', 13, 2, 1, NULL, '2024-04-11 22:43:38', '2024-04-11 22:55:24', 0);
INSERT INTO `per_menu` VALUES (58, 'department_export', '导出', 'top', 'system:department:export', 13, 2, 1, NULL, '2024-04-11 22:44:16', '2024-04-11 22:55:34', 0);
INSERT INTO `per_menu` VALUES (59, 'department_setting', '部门设置', 'setting', 'system:department:setting', 13, 2, 1, NULL, '2024-04-11 22:46:56', '2024-04-11 22:56:12', 0);
INSERT INTO `per_menu` VALUES (60, 'role_add', '增加', 'circle-plus-outline', 'permission:role:add', 3, 2, 1, NULL, '2024-04-11 22:49:53', '2024-04-11 22:56:37', 0);
INSERT INTO `per_menu` VALUES (61, 'role_delete', '删除', 'remove-outline', 'permission:role:delete', 3, 2, 1, NULL, '2024-04-11 22:50:27', '2024-04-11 22:56:53', 0);
INSERT INTO `per_menu` VALUES (62, 'role_search', '查询', 'search', 'permission:role:search', 3, 2, 1, NULL, '2024-04-11 22:51:18', '2024-04-13 11:27:05', 0);
INSERT INTO `per_menu` VALUES (63, 'role_import', '导入', 'bottom', 'permission:role:import', 3, 2, 1, NULL, '2024-04-11 22:51:45', '2024-04-11 22:57:23', 0);
INSERT INTO `per_menu` VALUES (64, 'role_export', '导出', 'top', 'permission:role:export', 3, 2, 1, NULL, '2024-04-11 22:52:15', '2024-04-11 22:57:28', 0);
INSERT INTO `per_menu` VALUES (65, 'role_set_menu', '分配权限', 's-tools', 'permission:role:set_menu', 3, 2, 1, NULL, '2024-04-11 22:52:57', '2024-04-11 22:58:50', 0);
INSERT INTO `per_menu` VALUES (66, 'menu_add', '添加菜单', 'circle-plus-outline', 'permission:menu:add', 4, 2, 1, NULL, '2024-04-12 14:13:27', '2024-04-12 14:17:12', 0);
INSERT INTO `per_menu` VALUES (67, 'menu_delete', '删除', 'remove-outline', 'permission:menu:delete', 4, 2, 1, NULL, '2024-04-12 14:14:11', '2024-04-12 14:17:34', 0);
INSERT INTO `per_menu` VALUES (68, 'menu_edit', '编辑', 'edit', 'permission:menu:edit', 4, 2, 1, NULL, '2024-04-12 14:14:41', '2024-04-12 14:17:46', 0);
INSERT INTO `per_menu` VALUES (69, 'meu_search', '查询', 'search', 'permission:menu:search', 4, 2, 1, NULL, '2024-04-12 14:15:36', '2024-04-13 11:27:01', 0);
INSERT INTO `per_menu` VALUES (70, 'menu_import', '导入', 'bottom', 'permission:menu:import', 4, 2, 1, NULL, '2024-04-12 14:16:21', '2024-04-12 14:18:10', 0);
INSERT INTO `per_menu` VALUES (71, 'menu_export', '导出', 'top', 'permission:menu:export', 4, 2, 1, NULL, '2024-04-12 14:16:49', '2024-04-12 14:18:18', 0);
INSERT INTO `per_menu` VALUES (72, 'leave_search', '查询', 'search', 'performance:leave:search', 19, 2, 1, NULL, '2024-04-12 15:10:32', '2024-04-13 11:26:52', 0);
INSERT INTO `per_menu` VALUES (73, 'leave_import', '导入', 'bottom', 'performance:leave:import', 19, 2, 1, NULL, '2024-04-12 15:11:26', NULL, 0);
INSERT INTO `per_menu` VALUES (74, 'leave_export', '导出', 'top', 'performance:leave:export', 19, 2, 1, NULL, '2024-04-12 15:12:30', NULL, 0);
INSERT INTO `per_menu` VALUES (75, 'leave_approve', '审批通过', 'check', 'performance:leave:approve', 19, 2, 1, NULL, '2024-04-12 15:16:39', NULL, 0);
INSERT INTO `per_menu` VALUES (76, 'leave_reject', '驳回', 'close', 'performance:leave:reject', 19, 2, 1, NULL, '2024-04-12 15:18:31', NULL, 0);
INSERT INTO `per_menu` VALUES (77, 'attendance_search', '查询', 'search', 'performance:attendance:search', 20, 2, 1, NULL, '2024-04-12 15:21:03', '2024-04-13 11:26:49', 0);
INSERT INTO `per_menu` VALUES (78, 'attendance_import', '导入', 'bottom', 'performance:attendance:import', 20, 2, 1, NULL, '2024-04-12 15:23:56', NULL, 0);
INSERT INTO `per_menu` VALUES (79, 'attendance_export', '导出考勤报表', 'top', 'performance:attendance:export', 20, 2, 1, NULL, '2024-04-12 15:24:45', NULL, 0);
INSERT INTO `per_menu` VALUES (80, 'attendance_set', '考勤设置', 's-tools', 'performance:attendance:set', 20, 2, 1, NULL, '2024-04-12 15:26:31', NULL, 0);
INSERT INTO `per_menu` VALUES (81, 'overtime_search', '查询', 'search', 'performance:overtime:search', 21, 2, 1, NULL, '2024-04-12 16:05:54', '2024-04-13 11:26:55', 0);
INSERT INTO `per_menu` VALUES (82, 'overtime_import', '加班数据导入', 'bottom', 'performance:overtime:import', 21, 2, 1, NULL, '2024-04-12 16:06:54', NULL, 0);
INSERT INTO `per_menu` VALUES (83, 'overtime_export', '导出', 'top', 'performance:overtime:export', 21, 2, 1, NULL, '2024-04-12 16:07:38', NULL, 0);
INSERT INTO `per_menu` VALUES (84, 'overtime_set', '加班设置', 's-tools', 'performance:overtime:set', 21, 2, 1, NULL, '2024-04-12 16:10:09', NULL, 0);
INSERT INTO `per_menu` VALUES (85, 'insurance_set', '设置社保', 's-tools', 'money:insurance:set', 15, 2, 1, NULL, '2024-04-12 16:19:46', '2024-04-13 10:52:32', 0);
INSERT INTO `per_menu` VALUES (86, 'insurance_search', '查询', 'search', 'money:insurance:search', 15, 2, 1, NULL, '2024-04-12 16:21:03', '2024-04-13 11:26:28', 0);
INSERT INTO `per_menu` VALUES (87, 'insurance_import', '导入', 'bottom', 'money:insurance:import', 15, 2, 1, NULL, '2024-04-12 16:22:02', NULL, 0);
INSERT INTO `per_menu` VALUES (88, 'insurance_export', '导出', 'top', 'money:insurance:export', 15, 2, 1, NULL, '2024-04-12 16:22:50', NULL, 0);
INSERT INTO `per_menu` VALUES (89, 'salary_set', '设置工资', 's-tools', 'money:salary:set', 16, 2, 1, NULL, '2024-04-12 16:24:41', '2024-04-13 11:30:30', 0);
INSERT INTO `per_menu` VALUES (90, 'salary_search', '查询', 'search', 'money:salary:search', 16, 2, 1, NULL, '2024-04-12 16:25:26', '2024-04-13 11:26:43', 0);
INSERT INTO `per_menu` VALUES (91, 'salary_import', '导入', 'bottom', 'money:salary:import', 16, 2, 1, NULL, '2024-04-12 16:26:07', NULL, 0);
INSERT INTO `per_menu` VALUES (92, 'salary_export', '导出', 'top', 'money:salary:export', 16, 2, 1, NULL, '2024-04-12 16:27:06', NULL, 0);
INSERT INTO `per_menu` VALUES (93, 'city_add', '新增', 'circle-plus-outline', 'money:city:add', 18, 2, 1, NULL, '2024-04-12 16:29:09', NULL, 0);
INSERT INTO `per_menu` VALUES (94, 'city_delete', '删除', 'remove-outline', 'money:city:delete', 18, 2, 1, NULL, '2024-04-12 16:29:48', NULL, 0);
INSERT INTO `per_menu` VALUES (95, 'city_edit', '修改', 'edit', 'money:city:edit', 18, 2, 1, NULL, '2024-04-12 16:30:20', NULL, 0);
INSERT INTO `per_menu` VALUES (96, 'city_search', '查询', 'search', 'money:city:search', 18, 2, 1, NULL, '2024-04-12 16:30:56', '2024-04-13 11:27:54', 0);
INSERT INTO `per_menu` VALUES (97, 'city_import', '导入', 'bottom', 'money:city:import', 18, 2, 1, NULL, '2024-04-12 16:31:39', NULL, 0);
INSERT INTO `per_menu` VALUES (98, 'city_export', '导出', 'top', 'money:city:export', 18, 2, 1, NULL, '2024-04-12 16:32:07', NULL, 0);
INSERT INTO `per_menu` VALUES (99, 'menu_enable', '启用禁用', 'open', 'permission:menu:enable', 4, 2, 1, NULL, '2024-04-12 16:33:57', NULL, 0);
INSERT INTO `per_menu` VALUES (100, 'leave_claim', '拾取任务', 's-claim', 'performance:leave:claim', 19, 2, 1, NULL, '2024-04-28 21:59:17', NULL, 0);
INSERT INTO `per_menu` VALUES (101, 'leave_revert', '归还任务', 's-release', 'performance:leave:revert', 19, 2, 1, NULL, '2024-04-28 22:00:15', NULL, 0);
-- ----------------------------
-- Table structure for per_role
-- ----------------------------
DROP TABLE IF EXISTS `per_role`;
CREATE TABLE `per_role` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '角色id',
`code` varchar(20) CHARACTER SET utf16 COLLATE utf16_general_ci NULL DEFAULT NULL COMMENT '角色编码',
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色名称',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '角色备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 10 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工角色表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of per_role
-- ----------------------------
INSERT INTO `per_role` VALUES (1, 'admin', '管理员', '', '2022-01-22 19:46:27', '2022-04-08 12:32:56', 0);
INSERT INTO `per_role` VALUES (2, 'manager', '总经理', '', '2022-02-22 19:47:58', '2022-04-08 13:27:28', 0);
INSERT INTO `per_role` VALUES (3, 'ceo', '首席执行官', '', '2022-02-28 17:08:48', '2022-04-08 14:50:36', 0);
INSERT INTO `per_role` VALUES (4, 'director_of_sales', '销售总监', '', '2022-03-01 21:57:42', '2022-04-08 14:14:55', 0);
INSERT INTO `per_role` VALUES (5, 'cto', '首席技术官', NULL, '2022-03-01 21:58:39', '2022-04-08 13:27:30', 0);
INSERT INTO `per_role` VALUES (6, 'publicity_director', '宣传部长', NULL, '2022-03-01 21:58:54', '2022-04-08 14:14:58', 0);
INSERT INTO `per_role` VALUES (7, 'hr', '人事经理', NULL, '2022-03-01 21:59:30', '2022-04-08 14:15:00', 0);
INSERT INTO `per_role` VALUES (8, 'director_of_planning', '企划部总监', NULL, '2022-03-01 21:59:47', '2022-03-28 20:14:00', 0);
INSERT INTO `per_role` VALUES (9, 'finance_minister', '薪酬总监', NULL, '2022-03-01 22:00:05', '2022-03-28 20:14:05', 0);
-- ----------------------------
-- Table structure for per_role_menu
-- ----------------------------
DROP TABLE IF EXISTS `per_role_menu`;
CREATE TABLE `per_role_menu` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`role_id` int UNSIGNED NOT NULL COMMENT '角色id',
`menu_id` int UNSIGNED NOT NULL COMMENT '菜单id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 3449 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '角色菜单关系表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of per_role_menu
-- ----------------------------
INSERT INTO `per_role_menu` VALUES (3031, 3, 1);
INSERT INTO `per_role_menu` VALUES (3032, 3, 23);
INSERT INTO `per_role_menu` VALUES (3033, 3, 24);
INSERT INTO `per_role_menu` VALUES (3034, 3, 25);
INSERT INTO `per_role_menu` VALUES (3035, 3, 26);
INSERT INTO `per_role_menu` VALUES (3036, 3, 27);
INSERT INTO `per_role_menu` VALUES (3037, 3, 28);
INSERT INTO `per_role_menu` VALUES (3038, 3, 42);
INSERT INTO `per_role_menu` VALUES (3039, 3, 52);
INSERT INTO `per_role_menu` VALUES (3040, 3, 33);
INSERT INTO `per_role_menu` VALUES (3041, 3, 37);
INSERT INTO `per_role_menu` VALUES (3042, 3, 39);
INSERT INTO `per_role_menu` VALUES (3043, 3, 40);
INSERT INTO `per_role_menu` VALUES (3044, 3, 53);
INSERT INTO `per_role_menu` VALUES (3045, 3, 54);
INSERT INTO `per_role_menu` VALUES (3046, 3, 55);
INSERT INTO `per_role_menu` VALUES (3047, 3, 57);
INSERT INTO `per_role_menu` VALUES (3048, 3, 21);
INSERT INTO `per_role_menu` VALUES (3049, 3, 81);
INSERT INTO `per_role_menu` VALUES (3050, 3, 82);
INSERT INTO `per_role_menu` VALUES (3051, 3, 83);
INSERT INTO `per_role_menu` VALUES (3052, 3, 84);
INSERT INTO `per_role_menu` VALUES (3053, 3, 15);
INSERT INTO `per_role_menu` VALUES (3054, 3, 85);
INSERT INTO `per_role_menu` VALUES (3055, 3, 86);
INSERT INTO `per_role_menu` VALUES (3056, 3, 87);
INSERT INTO `per_role_menu` VALUES (3057, 3, 88);
INSERT INTO `per_role_menu` VALUES (3058, 3, 89);
INSERT INTO `per_role_menu` VALUES (3059, 3, 92);
INSERT INTO `per_role_menu` VALUES (3060, 3, 18);
INSERT INTO `per_role_menu` VALUES (3061, 3, 93);
INSERT INTO `per_role_menu` VALUES (3062, 3, 94);
INSERT INTO `per_role_menu` VALUES (3063, 3, 95);
INSERT INTO `per_role_menu` VALUES (3064, 3, 96);
INSERT INTO `per_role_menu` VALUES (3065, 3, 97);
INSERT INTO `per_role_menu` VALUES (3066, 3, 98);
INSERT INTO `per_role_menu` VALUES (3067, 3, 5);
INSERT INTO `per_role_menu` VALUES (3068, 3, 2);
INSERT INTO `per_role_menu` VALUES (3069, 3, 13);
INSERT INTO `per_role_menu` VALUES (3070, 3, 14);
INSERT INTO `per_role_menu` VALUES (3071, 3, 17);
INSERT INTO `per_role_menu` VALUES (3072, 3, 16);
INSERT INTO `per_role_menu` VALUES (3073, 4, 23);
INSERT INTO `per_role_menu` VALUES (3074, 4, 24);
INSERT INTO `per_role_menu` VALUES (3075, 4, 26);
INSERT INTO `per_role_menu` VALUES (3076, 4, 27);
INSERT INTO `per_role_menu` VALUES (3077, 4, 52);
INSERT INTO `per_role_menu` VALUES (3078, 4, 2);
INSERT INTO `per_role_menu` VALUES (3079, 4, 33);
INSERT INTO `per_role_menu` VALUES (3080, 4, 34);
INSERT INTO `per_role_menu` VALUES (3081, 4, 35);
INSERT INTO `per_role_menu` VALUES (3082, 4, 36);
INSERT INTO `per_role_menu` VALUES (3083, 4, 37);
INSERT INTO `per_role_menu` VALUES (3084, 4, 39);
INSERT INTO `per_role_menu` VALUES (3085, 4, 40);
INSERT INTO `per_role_menu` VALUES (3086, 4, 13);
INSERT INTO `per_role_menu` VALUES (3087, 4, 53);
INSERT INTO `per_role_menu` VALUES (3088, 4, 54);
INSERT INTO `per_role_menu` VALUES (3089, 4, 55);
INSERT INTO `per_role_menu` VALUES (3090, 4, 56);
INSERT INTO `per_role_menu` VALUES (3091, 4, 57);
INSERT INTO `per_role_menu` VALUES (3092, 4, 58);
INSERT INTO `per_role_menu` VALUES (3093, 4, 59);
INSERT INTO `per_role_menu` VALUES (3094, 4, 20);
INSERT INTO `per_role_menu` VALUES (3095, 4, 77);
INSERT INTO `per_role_menu` VALUES (3096, 4, 78);
INSERT INTO `per_role_menu` VALUES (3097, 4, 79);
INSERT INTO `per_role_menu` VALUES (3098, 4, 80);
INSERT INTO `per_role_menu` VALUES (3099, 4, 15);
INSERT INTO `per_role_menu` VALUES (3100, 4, 85);
INSERT INTO `per_role_menu` VALUES (3101, 4, 86);
INSERT INTO `per_role_menu` VALUES (3102, 4, 87);
INSERT INTO `per_role_menu` VALUES (3103, 4, 88);
INSERT INTO `per_role_menu` VALUES (3104, 4, 5);
INSERT INTO `per_role_menu` VALUES (3105, 4, 1);
INSERT INTO `per_role_menu` VALUES (3106, 4, 14);
INSERT INTO `per_role_menu` VALUES (3107, 4, 17);
INSERT INTO `per_role_menu` VALUES (3108, 5, 5);
INSERT INTO `per_role_menu` VALUES (3109, 5, 1);
INSERT INTO `per_role_menu` VALUES (3110, 5, 23);
INSERT INTO `per_role_menu` VALUES (3111, 5, 24);
INSERT INTO `per_role_menu` VALUES (3112, 5, 25);
INSERT INTO `per_role_menu` VALUES (3113, 5, 26);
INSERT INTO `per_role_menu` VALUES (3114, 5, 27);
INSERT INTO `per_role_menu` VALUES (3115, 5, 28);
INSERT INTO `per_role_menu` VALUES (3116, 5, 42);
INSERT INTO `per_role_menu` VALUES (3117, 5, 52);
INSERT INTO `per_role_menu` VALUES (3118, 5, 2);
INSERT INTO `per_role_menu` VALUES (3119, 5, 33);
INSERT INTO `per_role_menu` VALUES (3120, 5, 34);
INSERT INTO `per_role_menu` VALUES (3121, 5, 35);
INSERT INTO `per_role_menu` VALUES (3122, 5, 36);
INSERT INTO `per_role_menu` VALUES (3123, 5, 37);
INSERT INTO `per_role_menu` VALUES (3124, 5, 39);
INSERT INTO `per_role_menu` VALUES (3125, 5, 40);
INSERT INTO `per_role_menu` VALUES (3126, 5, 13);
INSERT INTO `per_role_menu` VALUES (3127, 5, 53);
INSERT INTO `per_role_menu` VALUES (3128, 5, 54);
INSERT INTO `per_role_menu` VALUES (3129, 5, 55);
INSERT INTO `per_role_menu` VALUES (3130, 5, 56);
INSERT INTO `per_role_menu` VALUES (3131, 5, 57);
INSERT INTO `per_role_menu` VALUES (3132, 5, 58);
INSERT INTO `per_role_menu` VALUES (3133, 5, 59);
INSERT INTO `per_role_menu` VALUES (3134, 5, 14);
INSERT INTO `per_role_menu` VALUES (3135, 5, 19);
INSERT INTO `per_role_menu` VALUES (3136, 5, 72);
INSERT INTO `per_role_menu` VALUES (3137, 5, 73);
INSERT INTO `per_role_menu` VALUES (3138, 5, 74);
INSERT INTO `per_role_menu` VALUES (3139, 5, 75);
INSERT INTO `per_role_menu` VALUES (3140, 5, 76);
INSERT INTO `per_role_menu` VALUES (3141, 5, 20);
INSERT INTO `per_role_menu` VALUES (3142, 5, 77);
INSERT INTO `per_role_menu` VALUES (3143, 5, 78);
INSERT INTO `per_role_menu` VALUES (3144, 5, 79);
INSERT INTO `per_role_menu` VALUES (3145, 5, 80);
INSERT INTO `per_role_menu` VALUES (3146, 5, 21);
INSERT INTO `per_role_menu` VALUES (3147, 5, 81);
INSERT INTO `per_role_menu` VALUES (3148, 5, 82);
INSERT INTO `per_role_menu` VALUES (3149, 5, 83);
INSERT INTO `per_role_menu` VALUES (3150, 5, 84);
INSERT INTO `per_role_menu` VALUES (3151, 6, 5);
INSERT INTO `per_role_menu` VALUES (3152, 6, 1);
INSERT INTO `per_role_menu` VALUES (3153, 6, 23);
INSERT INTO `per_role_menu` VALUES (3154, 6, 24);
INSERT INTO `per_role_menu` VALUES (3155, 6, 25);
INSERT INTO `per_role_menu` VALUES (3156, 6, 26);
INSERT INTO `per_role_menu` VALUES (3157, 6, 27);
INSERT INTO `per_role_menu` VALUES (3158, 6, 28);
INSERT INTO `per_role_menu` VALUES (3159, 6, 42);
INSERT INTO `per_role_menu` VALUES (3160, 6, 52);
INSERT INTO `per_role_menu` VALUES (3161, 6, 2);
INSERT INTO `per_role_menu` VALUES (3162, 6, 33);
INSERT INTO `per_role_menu` VALUES (3163, 6, 34);
INSERT INTO `per_role_menu` VALUES (3164, 6, 35);
INSERT INTO `per_role_menu` VALUES (3165, 6, 36);
INSERT INTO `per_role_menu` VALUES (3166, 6, 37);
INSERT INTO `per_role_menu` VALUES (3167, 6, 39);
INSERT INTO `per_role_menu` VALUES (3168, 6, 40);
INSERT INTO `per_role_menu` VALUES (3169, 6, 13);
INSERT INTO `per_role_menu` VALUES (3170, 6, 53);
INSERT INTO `per_role_menu` VALUES (3171, 6, 54);
INSERT INTO `per_role_menu` VALUES (3172, 6, 55);
INSERT INTO `per_role_menu` VALUES (3173, 6, 56);
INSERT INTO `per_role_menu` VALUES (3174, 6, 57);
INSERT INTO `per_role_menu` VALUES (3175, 6, 58);
INSERT INTO `per_role_menu` VALUES (3176, 6, 59);
INSERT INTO `per_role_menu` VALUES (3177, 6, 17);
INSERT INTO `per_role_menu` VALUES (3178, 6, 15);
INSERT INTO `per_role_menu` VALUES (3179, 6, 85);
INSERT INTO `per_role_menu` VALUES (3180, 6, 86);
INSERT INTO `per_role_menu` VALUES (3181, 6, 87);
INSERT INTO `per_role_menu` VALUES (3182, 6, 88);
INSERT INTO `per_role_menu` VALUES (3183, 6, 16);
INSERT INTO `per_role_menu` VALUES (3184, 6, 89);
INSERT INTO `per_role_menu` VALUES (3185, 6, 90);
INSERT INTO `per_role_menu` VALUES (3186, 6, 91);
INSERT INTO `per_role_menu` VALUES (3187, 6, 92);
INSERT INTO `per_role_menu` VALUES (3188, 6, 18);
INSERT INTO `per_role_menu` VALUES (3189, 6, 93);
INSERT INTO `per_role_menu` VALUES (3190, 6, 94);
INSERT INTO `per_role_menu` VALUES (3191, 6, 95);
INSERT INTO `per_role_menu` VALUES (3192, 6, 96);
INSERT INTO `per_role_menu` VALUES (3193, 6, 97);
INSERT INTO `per_role_menu` VALUES (3194, 6, 98);
INSERT INTO `per_role_menu` VALUES (3221, 8, 14);
INSERT INTO `per_role_menu` VALUES (3222, 8, 19);
INSERT INTO `per_role_menu` VALUES (3223, 8, 72);
INSERT INTO `per_role_menu` VALUES (3224, 8, 73);
INSERT INTO `per_role_menu` VALUES (3225, 8, 74);
INSERT INTO `per_role_menu` VALUES (3226, 8, 75);
INSERT INTO `per_role_menu` VALUES (3227, 8, 76);
INSERT INTO `per_role_menu` VALUES (3228, 8, 20);
INSERT INTO `per_role_menu` VALUES (3229, 8, 77);
INSERT INTO `per_role_menu` VALUES (3230, 8, 78);
INSERT INTO `per_role_menu` VALUES (3231, 8, 79);
INSERT INTO `per_role_menu` VALUES (3232, 8, 80);
INSERT INTO `per_role_menu` VALUES (3233, 8, 21);
INSERT INTO `per_role_menu` VALUES (3234, 8, 81);
INSERT INTO `per_role_menu` VALUES (3235, 8, 82);
INSERT INTO `per_role_menu` VALUES (3236, 8, 83);
INSERT INTO `per_role_menu` VALUES (3237, 8, 84);
INSERT INTO `per_role_menu` VALUES (3238, 8, 17);
INSERT INTO `per_role_menu` VALUES (3239, 8, 15);
INSERT INTO `per_role_menu` VALUES (3240, 8, 85);
INSERT INTO `per_role_menu` VALUES (3241, 8, 86);
INSERT INTO `per_role_menu` VALUES (3242, 8, 87);
INSERT INTO `per_role_menu` VALUES (3243, 8, 88);
INSERT INTO `per_role_menu` VALUES (3244, 8, 16);
INSERT INTO `per_role_menu` VALUES (3245, 8, 89);
INSERT INTO `per_role_menu` VALUES (3246, 8, 90);
INSERT INTO `per_role_menu` VALUES (3247, 8, 91);
INSERT INTO `per_role_menu` VALUES (3248, 8, 92);
INSERT INTO `per_role_menu` VALUES (3249, 8, 18);
INSERT INTO `per_role_menu` VALUES (3250, 8, 93);
INSERT INTO `per_role_menu` VALUES (3251, 8, 94);
INSERT INTO `per_role_menu` VALUES (3252, 8, 95);
INSERT INTO `per_role_menu` VALUES (3253, 8, 96);
INSERT INTO `per_role_menu` VALUES (3254, 8, 97);
INSERT INTO `per_role_menu` VALUES (3255, 8, 98);
INSERT INTO `per_role_menu` VALUES (3256, 9, 17);
INSERT INTO `per_role_menu` VALUES (3257, 9, 15);
INSERT INTO `per_role_menu` VALUES (3258, 9, 85);
INSERT INTO `per_role_menu` VALUES (3259, 9, 86);
INSERT INTO `per_role_menu` VALUES (3260, 9, 87);
INSERT INTO `per_role_menu` VALUES (3261, 9, 88);
INSERT INTO `per_role_menu` VALUES (3262, 9, 16);
INSERT INTO `per_role_menu` VALUES (3263, 9, 89);
INSERT INTO `per_role_menu` VALUES (3264, 9, 90);
INSERT INTO `per_role_menu` VALUES (3265, 9, 91);
INSERT INTO `per_role_menu` VALUES (3266, 9, 92);
INSERT INTO `per_role_menu` VALUES (3267, 9, 18);
INSERT INTO `per_role_menu` VALUES (3268, 9, 93);
INSERT INTO `per_role_menu` VALUES (3269, 9, 94);
INSERT INTO `per_role_menu` VALUES (3270, 9, 95);
INSERT INTO `per_role_menu` VALUES (3271, 9, 96);
INSERT INTO `per_role_menu` VALUES (3272, 9, 97);
INSERT INTO `per_role_menu` VALUES (3273, 9, 98);
INSERT INTO `per_role_menu` VALUES (3680, 7, 14);
INSERT INTO `per_role_menu` VALUES (3681, 7, 19);
INSERT INTO `per_role_menu` VALUES (3682, 7, 72);
INSERT INTO `per_role_menu` VALUES (3683, 7, 73);
INSERT INTO `per_role_menu` VALUES (3684, 7, 74);
INSERT INTO `per_role_menu` VALUES (3685, 7, 75);
INSERT INTO `per_role_menu` VALUES (3686, 7, 76);
INSERT INTO `per_role_menu` VALUES (3687, 7, 100);
INSERT INTO `per_role_menu` VALUES (3688, 7, 101);
INSERT INTO `per_role_menu` VALUES (3689, 7, 20);
INSERT INTO `per_role_menu` VALUES (3690, 7, 77);
INSERT INTO `per_role_menu` VALUES (3691, 7, 78);
INSERT INTO `per_role_menu` VALUES (3692, 7, 79);
INSERT INTO `per_role_menu` VALUES (3693, 7, 80);
INSERT INTO `per_role_menu` VALUES (3694, 7, 21);
INSERT INTO `per_role_menu` VALUES (3695, 7, 81);
INSERT INTO `per_role_menu` VALUES (3696, 7, 82);
INSERT INTO `per_role_menu` VALUES (3697, 7, 83);
INSERT INTO `per_role_menu` VALUES (3698, 7, 84);
INSERT INTO `per_role_menu` VALUES (3699, 2, 19);
INSERT INTO `per_role_menu` VALUES (3700, 2, 72);
INSERT INTO `per_role_menu` VALUES (3701, 2, 73);
INSERT INTO `per_role_menu` VALUES (3702, 2, 74);
INSERT INTO `per_role_menu` VALUES (3703, 2, 75);
INSERT INTO `per_role_menu` VALUES (3704, 2, 76);
INSERT INTO `per_role_menu` VALUES (3705, 2, 100);
INSERT INTO `per_role_menu` VALUES (3706, 2, 101);
INSERT INTO `per_role_menu` VALUES (3707, 2, 17);
INSERT INTO `per_role_menu` VALUES (3708, 2, 15);
INSERT INTO `per_role_menu` VALUES (3709, 2, 85);
INSERT INTO `per_role_menu` VALUES (3710, 2, 86);
INSERT INTO `per_role_menu` VALUES (3711, 2, 87);
INSERT INTO `per_role_menu` VALUES (3712, 2, 88);
INSERT INTO `per_role_menu` VALUES (3713, 2, 16);
INSERT INTO `per_role_menu` VALUES (3714, 2, 89);
INSERT INTO `per_role_menu` VALUES (3715, 2, 90);
INSERT INTO `per_role_menu` VALUES (3716, 2, 91);
INSERT INTO `per_role_menu` VALUES (3717, 2, 92);
INSERT INTO `per_role_menu` VALUES (3718, 2, 18);
INSERT INTO `per_role_menu` VALUES (3719, 2, 93);
INSERT INTO `per_role_menu` VALUES (3720, 2, 94);
INSERT INTO `per_role_menu` VALUES (3721, 2, 95);
INSERT INTO `per_role_menu` VALUES (3722, 2, 96);
INSERT INTO `per_role_menu` VALUES (3723, 2, 97);
INSERT INTO `per_role_menu` VALUES (3724, 2, 98);
INSERT INTO `per_role_menu` VALUES (3725, 2, 14);
INSERT INTO `per_role_menu` VALUES (3726, 1, 5);
INSERT INTO `per_role_menu` VALUES (3727, 1, 1);
INSERT INTO `per_role_menu` VALUES (3728, 1, 23);
INSERT INTO `per_role_menu` VALUES (3729, 1, 24);
INSERT INTO `per_role_menu` VALUES (3730, 1, 25);
INSERT INTO `per_role_menu` VALUES (3731, 1, 26);
INSERT INTO `per_role_menu` VALUES (3732, 1, 27);
INSERT INTO `per_role_menu` VALUES (3733, 1, 28);
INSERT INTO `per_role_menu` VALUES (3734, 1, 42);
INSERT INTO `per_role_menu` VALUES (3735, 1, 52);
INSERT INTO `per_role_menu` VALUES (3736, 1, 2);
INSERT INTO `per_role_menu` VALUES (3737, 1, 33);
INSERT INTO `per_role_menu` VALUES (3738, 1, 34);
INSERT INTO `per_role_menu` VALUES (3739, 1, 35);
INSERT INTO `per_role_menu` VALUES (3740, 1, 36);
INSERT INTO `per_role_menu` VALUES (3741, 1, 37);
INSERT INTO `per_role_menu` VALUES (3742, 1, 39);
INSERT INTO `per_role_menu` VALUES (3743, 1, 40);
INSERT INTO `per_role_menu` VALUES (3744, 1, 13);
INSERT INTO `per_role_menu` VALUES (3745, 1, 53);
INSERT INTO `per_role_menu` VALUES (3746, 1, 54);
INSERT INTO `per_role_menu` VALUES (3747, 1, 55);
INSERT INTO `per_role_menu` VALUES (3748, 1, 56);
INSERT INTO `per_role_menu` VALUES (3749, 1, 57);
INSERT INTO `per_role_menu` VALUES (3750, 1, 58);
INSERT INTO `per_role_menu` VALUES (3751, 1, 59);
INSERT INTO `per_role_menu` VALUES (3752, 1, 41);
INSERT INTO `per_role_menu` VALUES (3753, 1, 62);
INSERT INTO `per_role_menu` VALUES (3754, 1, 64);
INSERT INTO `per_role_menu` VALUES (3755, 1, 65);
INSERT INTO `per_role_menu` VALUES (3756, 1, 66);
INSERT INTO `per_role_menu` VALUES (3757, 1, 68);
INSERT INTO `per_role_menu` VALUES (3758, 1, 69);
INSERT INTO `per_role_menu` VALUES (3759, 1, 71);
INSERT INTO `per_role_menu` VALUES (3760, 1, 99);
INSERT INTO `per_role_menu` VALUES (3761, 1, 6);
INSERT INTO `per_role_menu` VALUES (3762, 1, 3);
INSERT INTO `per_role_menu` VALUES (3763, 1, 4);
-- ----------------------------
-- Table structure for per_staff_role
-- ----------------------------
DROP TABLE IF EXISTS `per_staff_role`;
CREATE TABLE `per_staff_role` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`staff_id` int UNSIGNED NULL DEFAULT NULL COMMENT '员工id',
`role_id` int UNSIGNED NULL DEFAULT NULL COMMENT '角色id',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 41 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工角色关系表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of per_staff_role
-- ----------------------------
INSERT INTO `per_staff_role` VALUES (2, 29, 2);
INSERT INTO `per_staff_role` VALUES (3, 29, 3);
INSERT INTO `per_staff_role` VALUES (11, 9, 7);
INSERT INTO `per_staff_role` VALUES (28, 6, 2);
INSERT INTO `per_staff_role` VALUES (29, 14, 7);
INSERT INTO `per_staff_role` VALUES (30, 18, 7);
INSERT INTO `per_staff_role` VALUES (31, 32, 7);
INSERT INTO `per_staff_role` VALUES (32, 31, 9);
INSERT INTO `per_staff_role` VALUES (33, 31, 7);
INSERT INTO `per_staff_role` VALUES (39, 2, 2);
INSERT INTO `per_staff_role` VALUES (40, 3, 7);
INSERT INTO `per_staff_role` VALUES (43, 1, 1);
INSERT INTO `per_staff_role` VALUES (44, 1, 7);
INSERT INTO `per_staff_role` VALUES (45, 1, 2);
-- ----------------------------
-- Table structure for sal_salary
-- ----------------------------
DROP TABLE IF EXISTS `sal_salary`;
CREATE TABLE `sal_salary` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`staff_id` int UNSIGNED NULL DEFAULT NULL COMMENT '员工id',
`base_salary` decimal(10, 3) NULL DEFAULT NULL COMMENT '基础工资',
`day_salary` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '平均日薪,基础工资 / 21.75',
`hour_salary` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '平均时薪,基础工资 / (21.75 * 8)',
`overtime_salary` decimal(10, 3) NULL DEFAULT NULL COMMENT '加班费',
`subsidy` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '生活补贴',
`bonus` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '奖金',
`total_salary` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '总工资',
`late_deduct` decimal(10, 3) NULL DEFAULT NULL COMMENT '早退扣款',
`leave_deduct` decimal(10, 3) NULL DEFAULT NULL COMMENT '休假扣款',
`leave_early_deduct` decimal(10, 3) NULL DEFAULT NULL COMMENT '早退扣款',
`absenteeism_deduct` decimal(10, 3) NULL DEFAULT NULL COMMENT '旷工扣款',
`month` char(6) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '月份',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL,
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 62 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工工资表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sal_salary
-- ----------------------------
INSERT INTO `sal_salary` VALUES (1, 1, 7000.000, NULL, NULL, NULL, 400.000, 200.000, 5595.000, 0.000, 640.000, 0.000, 100.000, '202204', 'jack的工资明细', '2022-04-06 14:40:36', '2022-04-09 15:15:56', 0);
INSERT INTO `sal_salary` VALUES (2, 1, 6800.000, NULL, NULL, NULL, 0.000, 100.000, 4795.000, 50.000, 160.000, 50.000, 100.000, '202205', NULL, '2022-04-06 14:44:54', '2022-05-06 16:40:06', 0);
INSERT INTO `sal_salary` VALUES (3, 1, 6500.000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '202105', NULL, '2022-04-06 14:45:09', '2022-04-09 16:02:45', 0);
INSERT INTO `sal_salary` VALUES (4, 1, 7000.000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '202112', NULL, '2022-04-06 14:45:22', '2022-04-09 16:02:39', 0);
INSERT INTO `sal_salary` VALUES (5, 2, 6000.000, NULL, NULL, NULL, 600.000, 200.000, 5270.000, 0.000, 240.000, 50.000, 0.000, '202204', NULL, '2022-04-06 14:45:42', '2022-04-09 17:02:55', 0);
INSERT INTO `sal_salary` VALUES (6, 2, 7000.000, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, '202104', NULL, '2022-04-06 14:46:09', '2022-04-09 16:02:34', 0);
INSERT INTO `sal_salary` VALUES (7, 3, 6000.000, NULL, NULL, NULL, 0.000, 0.000, 5175.000, NULL, NULL, NULL, NULL, '202204', NULL, '2022-04-06 22:58:16', '2022-04-06 22:58:16', 0);
INSERT INTO `sal_salary` VALUES (8, 1, 6000.000, NULL, NULL, NULL, 0.000, 0.000, 4735.000, NULL, NULL, NULL, NULL, '202202', NULL, '2022-04-07 10:39:24', '2022-04-07 10:39:24', 0);
INSERT INTO `sal_salary` VALUES (9, 4, 6000.000, NULL, NULL, NULL, 500.000, 300.000, 5710.000, NULL, NULL, NULL, NULL, '202204', NULL, '2022-04-08 10:04:50', '2022-04-08 10:04:50', 0);
INSERT INTO `sal_salary` VALUES (10, 5, 7000.000, NULL, NULL, NULL, 0.000, 0.000, 5368.000, NULL, NULL, NULL, NULL, '202204', NULL, '2022-04-08 15:34:50', '2022-04-08 15:34:50', 0);
INSERT INTO `sal_salary` VALUES (11, 6, 8000.000, NULL, NULL, NULL, 0.000, 0.000, 6340.000, 0.000, 0.000, 50.000, 0.000, '202204', NULL, '2022-04-08 18:37:05', '2022-04-08 18:37:05', 0);
INSERT INTO `sal_salary` VALUES (12, 7, 6000.000, NULL, NULL, NULL, 1000.000, 0.000, 5710.000, 0.000, 0.000, 0.000, 0.000, '202204', NULL, '2022-04-08 18:46:20', '2022-04-08 18:46:20', 0);
INSERT INTO `sal_salary` VALUES (13, 8, 6000.000, NULL, NULL, NULL, 0.000, 0.000, 2100.000, 0.000, 0.000, 0.000, 0.000, '202204', NULL, '2022-04-08 20:45:43', '2022-04-08 20:45:43', 0);
INSERT INTO `sal_salary` VALUES (14, 9, 6000.000, NULL, NULL, NULL, 0.000, 0.000, 5275.000, 0.000, 0.000, 0.000, 0.000, '202204', NULL, '2022-04-08 20:58:47', '2022-04-08 20:58:47', 0);
INSERT INTO `sal_salary` VALUES (15, 1, 6666.000, NULL, NULL, NULL, 0.000, 0.000, 5401.000, 0.000, 0.000, 0.000, 0.000, '202203', NULL, '2022-04-09 16:35:15', '2022-04-09 16:35:15', 0);
INSERT INTO `sal_salary` VALUES (16, 10, 8000.000, NULL, NULL, NULL, 0.000, 0.000, 5030.000, 0.000, 0.000, 0.000, 0.000, '202205', NULL, '2022-05-02 21:39:53', '2022-05-06 17:41:45', 0);
INSERT INTO `sal_salary` VALUES (17, 2, 6050.000, NULL, NULL, NULL, 0.000, 0.000, 4660.000, 50.000, 0.000, 0.000, 100.000, '202205', NULL, '2022-05-02 21:40:12', '2022-05-06 17:42:20', 0);
INSERT INTO `sal_salary` VALUES (18, 3, 6000.000, NULL, NULL, NULL, 0.000, 0.000, 4632.000, 50.000, 0.000, 100.000, 300.000, '202205', NULL, '2022-05-02 21:40:21', '2022-05-02 21:40:21', 0);
INSERT INTO `sal_salary` VALUES (19, 4, 7000.000, NULL, NULL, NULL, 0.000, 0.000, 5510.000, 100.000, 0.000, 0.000, 300.000, '202205', NULL, '2022-05-02 21:40:30', '2022-05-02 21:40:30', 0);
INSERT INTO `sal_salary` VALUES (20, 5, 7500.000, NULL, NULL, NULL, 0.000, 0.000, 5868.000, 0.000, 0.000, 0.000, 0.000, '202205', NULL, '2022-05-02 21:40:44', '2022-05-02 21:40:44', 0);
INSERT INTO `sal_salary` VALUES (21, 6, 6500.000, NULL, NULL, NULL, 0.000, 0.000, 4890.000, 0.000, 0.000, 0.000, 0.000, '202205', NULL, '2022-05-02 21:40:54', '2022-05-02 21:40:54', 0);
INSERT INTO `sal_salary` VALUES (22, 7, 7878.000, NULL, NULL, NULL, 0.000, 0.000, 6588.000, 0.000, 0.000, 0.000, 0.000, '202205', NULL, '2022-05-02 21:41:03', '2022-05-02 21:41:03', 0);
INSERT INTO `sal_salary` VALUES (23, 8, 7999.000, NULL, NULL, NULL, 0.000, 0.000, 4099.000, 0.000, 0.000, 0.000, 0.000, '202205', NULL, '2022-05-02 21:41:12', '2022-05-06 17:42:10', 0);
INSERT INTO `sal_salary` VALUES (24, 9, 7000.000, NULL, NULL, NULL, 0.000, 0.000, 6275.000, 0.000, 0.000, 0.000, 0.000, '202205', NULL, '2022-05-02 21:41:23', '2022-05-06 17:42:34', 0);
INSERT INTO `sal_salary` VALUES (25, 11, 7000.000, NULL, NULL, NULL, 200.000, 0.000, 5345.000, 0.000, 0.000, 0.000, 0.000, '202205', NULL, '2022-05-13 08:28:04', '2022-05-13 08:28:04', 0);
INSERT INTO `sal_salary` VALUES (26, 1, 10000.000, 459.770, 57.471, 328.620, 0.000, 0.000, 7286.000, 0.000, 240.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:21:47', '2024-03-23 17:26:34', 0);
INSERT INTO `sal_salary` VALUES (27, 2, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 10760.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:21:59', '2024-03-21 11:21:59', 0);
INSERT INTO `sal_salary` VALUES (28, 3, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 10882.000, 50.000, 0.000, 50.000, 100.000, '202403', NULL, '2024-03-21 11:22:53', '2024-03-21 11:22:53', 0);
INSERT INTO `sal_salary` VALUES (29, 4, 13000.000, 597.701, 74.713, NULL, 0.000, 0.000, 11810.000, 0.000, 0.000, 0.000, 100.000, '202403', NULL, '2024-03-21 11:23:05', '2024-03-21 11:23:05', 0);
INSERT INTO `sal_salary` VALUES (30, 5, 14000.000, 643.678, 80.460, NULL, 0.000, 0.000, 12218.000, 0.000, 0.000, 50.000, 100.000, '202403', NULL, '2024-03-21 11:23:13', '2024-03-21 11:23:13', 0);
INSERT INTO `sal_salary` VALUES (31, 6, 13500.000, 620.690, 77.586, NULL, 0.000, 0.000, 11890.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:23:25', '2024-03-21 11:23:25', 0);
INSERT INTO `sal_salary` VALUES (32, 7, 16500.000, 758.621, 94.828, NULL, 0.000, 0.000, 14860.000, 50.000, 0.000, 0.000, 300.000, '202403', NULL, '2024-03-21 11:23:33', '2024-03-21 11:23:33', 0);
INSERT INTO `sal_salary` VALUES (33, 8, 12300.000, 565.517, 70.690, NULL, 0.000, 0.000, 8350.000, 50.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:23:44', '2024-03-21 11:23:44', 0);
INSERT INTO `sal_salary` VALUES (34, 9, 10000.000, 459.770, 57.471, NULL, 0.000, 0.000, 9225.000, 0.000, 0.000, 50.000, 0.000, '202403', NULL, '2024-03-21 11:24:15', '2024-03-21 11:24:15', 0);
INSERT INTO `sal_salary` VALUES (35, 10, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 9030.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:24:23', '2024-03-21 11:24:23', 0);
INSERT INTO `sal_salary` VALUES (36, 11, 16000.000, 735.632, 91.954, NULL, 0.000, 0.000, 14145.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:24:43', '2024-03-21 11:24:43', 0);
INSERT INTO `sal_salary` VALUES (37, 12, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 9350.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:24:52', '2024-03-21 11:24:52', 0);
INSERT INTO `sal_salary` VALUES (38, 13, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 10776.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:02', '2024-03-21 11:25:02', 0);
INSERT INTO `sal_salary` VALUES (39, 14, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 7140.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:07', '2024-03-21 11:25:07', 0);
INSERT INTO `sal_salary` VALUES (40, 15, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 9230.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:12', '2024-03-21 11:25:12', 0);
INSERT INTO `sal_salary` VALUES (41, 16, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 9950.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:17', '2024-03-21 11:25:17', 0);
INSERT INTO `sal_salary` VALUES (42, 17, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 10312.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:22', '2024-03-21 11:25:22', 0);
INSERT INTO `sal_salary` VALUES (43, 18, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 10425.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:27', '2024-03-21 11:25:27', 0);
INSERT INTO `sal_salary` VALUES (44, 19, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 8640.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:32', '2024-03-21 11:25:32', 0);
INSERT INTO `sal_salary` VALUES (45, 20, 12000.000, 551.724, 68.966, NULL, 0.000, 0.000, 10810.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:38', '2024-03-21 11:25:38', 0);
INSERT INTO `sal_salary` VALUES (46, 21, 13000.000, 597.701, 74.713, NULL, 0.000, 0.000, 12018.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:52', '2024-03-21 11:25:52', 0);
INSERT INTO `sal_salary` VALUES (47, 22, 13000.000, 597.701, 74.713, NULL, 0.000, 0.000, 9874.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:25:56', '2024-03-21 11:25:56', 0);
INSERT INTO `sal_salary` VALUES (48, 23, 13000.000, 597.701, 74.713, NULL, 0.000, 0.000, 11769.700, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:01', '2024-03-21 11:26:01', 0);
INSERT INTO `sal_salary` VALUES (49, 25, 13000.000, 597.701, 74.713, NULL, 0.000, 0.000, 11070.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:06', '2024-03-21 11:26:06', 0);
INSERT INTO `sal_salary` VALUES (50, 24, 13000.000, 597.701, 74.713, NULL, 0.000, 0.000, 10040.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:12', '2024-03-21 11:26:12', 0);
INSERT INTO `sal_salary` VALUES (51, 26, 14500.000, 666.667, 83.333, NULL, 0.000, 0.000, 12600.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:23', '2024-03-21 11:26:23', 0);
INSERT INTO `sal_salary` VALUES (52, 27, 14500.000, 666.667, 83.333, NULL, 0.000, 0.000, 12100.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:28', '2024-03-21 11:26:28', 0);
INSERT INTO `sal_salary` VALUES (53, 28, 14500.000, 666.667, 83.333, NULL, 0.000, 0.000, 12981.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:33', '2024-03-21 11:26:33', 0);
INSERT INTO `sal_salary` VALUES (54, 29, 14500.000, 666.667, 83.333, NULL, 0.000, 0.000, 13425.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:37', '2024-03-21 11:26:37', 0);
INSERT INTO `sal_salary` VALUES (55, 30, 14500.000, 666.667, 83.333, NULL, 0.000, 0.000, 13372.500, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:42', '2024-03-21 11:26:42', 0);
INSERT INTO `sal_salary` VALUES (56, 31, 17000.000, 781.609, 97.701, NULL, 0.000, 0.000, 13696.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:52', '2024-03-21 11:26:52', 0);
INSERT INTO `sal_salary` VALUES (57, 32, 17000.000, 781.609, 97.701, NULL, 0.000, 0.000, 16025.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:26:56', '2024-03-21 11:26:56', 0);
INSERT INTO `sal_salary` VALUES (58, 33, 17000.000, 781.609, 97.701, NULL, 0.000, 0.000, 13880.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:27:01', '2024-03-21 11:27:01', 0);
INSERT INTO `sal_salary` VALUES (59, 34, 17000.000, 781.609, 97.701, NULL, 0.000, 0.000, 15890.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:27:06', '2024-03-21 11:27:06', 0);
INSERT INTO `sal_salary` VALUES (60, 35, 17000.000, 781.609, 97.701, NULL, 0.000, 0.000, 15425.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:27:14', '2024-03-21 11:27:14', 0);
INSERT INTO `sal_salary` VALUES (61, 36, 17000.000, 781.609, 97.701, NULL, 0.000, 0.000, 11475.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:27:19', '2024-03-21 11:27:19', 0);
INSERT INTO `sal_salary` VALUES (62, 37, 17000.000, 781.609, 97.701, NULL, 0.000, 0.000, 16015.000, 0.000, 0.000, 0.000, 0.000, '202403', NULL, '2024-03-21 11:27:24', '2024-03-21 11:27:24', 0);
-- ----------------------------
-- Table structure for sal_salary_deduct
-- ----------------------------
DROP TABLE IF EXISTS `sal_salary_deduct`;
CREATE TABLE `sal_salary_deduct` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`dept_id` int UNSIGNED NULL DEFAULT NULL COMMENT '部门id',
`type_num` tinyint UNSIGNED NULL DEFAULT NULL COMMENT '扣款类型,0迟到,1早退,2旷工,3休假',
`deduct` int UNSIGNED NOT NULL DEFAULT 0 COMMENT '每次扣款金额',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci NULL DEFAULT NULL COMMENT '备注',
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NOT NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 4 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '工资扣除表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of sal_salary_deduct
-- ----------------------------
INSERT INTO `sal_salary_deduct` VALUES (1, 2, 2, 200, '旷工绝不姑息', '2022-03-27 22:55:07', '2023-01-01 20:59:30', 0);
INSERT INTO `sal_salary_deduct` VALUES (2, 2, 1, 0, NULL, '2022-03-28 07:20:50', '2023-01-01 20:59:32', 0);
INSERT INTO `sal_salary_deduct` VALUES (3, 2, 3, 0, NULL, '2022-03-31 19:57:56', '2023-01-01 20:59:35', 0);
INSERT INTO `sal_salary_deduct` VALUES (4, 2, 0, 100, NULL, '2023-01-01 21:38:28', '2023-01-01 21:38:28', 0);
-- ----------------------------
-- Table structure for soc_city
-- ----------------------------
DROP TABLE IF EXISTS `soc_city`;
CREATE TABLE `soc_city` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '参保城市',
`average_salary` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '职工上年度平均月工资',
`lower_salary` decimal(10, 3) NULL DEFAULT NULL COMMENT '职工上年度最低月工资',
`soc_upper_limit` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '职工社保缴纳基数上限',
`soc_lower_limit` decimal(10, 3) UNSIGNED NULL DEFAULT NULL COMMENT '职工社保缴纳基数下限',
`hou_upper_limit` decimal(10, 3) NULL DEFAULT NULL COMMENT '公积金缴纳基数上限',
`hou_lower_limit` decimal(10, 3) NULL DEFAULT NULL COMMENT '公积金缴纳基数下限',
`per_pension_rate` decimal(6, 3) UNSIGNED NULL DEFAULT NULL COMMENT '个人养老保险缴费比例',
`com_pension_rate` decimal(6, 3) UNSIGNED NULL DEFAULT NULL COMMENT '企业养老保险缴费比例',
`per_medical_rate` decimal(6, 3) UNSIGNED NULL DEFAULT NULL COMMENT '个人医疗保险缴费比例',
`com_medical_rate` decimal(6, 3) UNSIGNED NULL DEFAULT NULL COMMENT '企业医疗保险缴费比例',
`per_unemployment_rate` decimal(6, 3) UNSIGNED NULL DEFAULT NULL COMMENT '个人失业保险缴费比例',
`com_unemployment_rate` decimal(6, 3) UNSIGNED NULL DEFAULT NULL COMMENT '企业失业保险缴费比例',
`com_maternity_rate` decimal(6, 3) UNSIGNED NULL DEFAULT NULL COMMENT '企业生育保险缴费比例',
`remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注',
`create_time` datetime NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 7 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '参保城市表' ROW_FORMAT = DYNAMIC;
-- ----------------------------
-- Records of soc_city
-- ----------------------------
INSERT INTO `soc_city` VALUES (1, '成都', 10000.000, 3000.000, 30000.000, 6000.000, 30000.000, 3000.000, 0.090, 0.160, 0.020, 0.090, 0.007, 0.006, 0.010, NULL, '2022-03-22 15:53:53', '2022-03-24 23:05:28', 0);
INSERT INTO `soc_city` VALUES (2, '重庆', 8000.000, 3000.000, 24000.000, 4800.000, 24000.000, 3000.000, 0.100, 0.100, 0.020, 0.085, 0.005, 0.009, 0.028, NULL, '2022-03-22 16:28:43', '2022-03-23 16:28:51', 0);
INSERT INTO `soc_city` VALUES (3, '北京', 12000.000, 4000.000, 36000.000, 7200.000, 36000.000, 4000.000, 0.080, 0.120, 0.020, 0.090, 0.011, 0.005, 0.008, NULL, '2022-03-23 22:33:51', '2022-03-23 22:33:51', 0);
INSERT INTO `soc_city` VALUES (4, '上海', 15000.000, 10000.000, 45000.000, 9000.000, 45000.000, 10000.000, 0.076, 0.022, 0.010, 0.020, 0.100, 0.120, 0.090, NULL, '2022-03-23 23:29:22', '2022-04-13 11:12:38', 0);
INSERT INTO `soc_city` VALUES (5, '武汉', 5000.000, 3400.000, 15000.000, 3000.000, 15000.000, 3400.000, 0.100, 0.130, 0.100, 0.130, 0.140, 0.021, 0.025, NULL, '2022-03-31 20:02:30', '2022-04-12 17:58:51', 0);
INSERT INTO `soc_city` VALUES (6, '深圳', 13000.000, 10000.000, 39000.000, 7800.000, 39000.000, 10000.000, 0.050, 0.070, 0.030, 0.060, 0.015, 0.010, 0.010, NULL, '2022-05-02 22:10:01', '2022-05-02 22:10:01', 0);
-- ----------------------------
-- Table structure for soc_insurance
-- ----------------------------
DROP TABLE IF EXISTS `soc_insurance`;
CREATE TABLE `soc_insurance` (
`id` int UNSIGNED NOT NULL AUTO_INCREMENT,
`city_id` int NULL DEFAULT NULL COMMENT '城市id',
`staff_id` int NULL DEFAULT NULL COMMENT '员工id',
`house_base` decimal(10, 3) NULL DEFAULT NULL COMMENT '公积金基数',
`per_house_rate` decimal(6, 3) NULL DEFAULT NULL COMMENT '公积金个人缴纳比例',
`per_house_pay` decimal(10, 3) NULL DEFAULT NULL COMMENT '公积金个人缴纳费用',
`com_house_rate` decimal(6, 3) NULL DEFAULT NULL COMMENT '公积金企业缴纳比例',
`com_house_pay` decimal(10, 3) NULL DEFAULT NULL COMMENT '公积金企业缴纳费用',
`social_base` decimal(10, 3) NULL DEFAULT NULL COMMENT '社保基数',
`com_social_pay` decimal(10, 3) NULL DEFAULT NULL COMMENT '社保企业缴纳费用',
`per_social_pay` decimal(10, 3) NULL DEFAULT NULL COMMENT '社保个人缴纳费用',
`com_injury_rate` decimal(6, 3) NULL DEFAULT NULL COMMENT '工伤保险企业缴纳比例',
`social_remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '社保备注',
`house_remark` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '公积金备注',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` datetime NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint UNSIGNED NULL DEFAULT 0,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB AUTO_INCREMENT = 37 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '员工五险一金表' ROW_FORMAT = DYNAMIC;