chenshudong 1 kuukausi sitten
vanhempi
commit
7405258747
62 muutettua tiedostoa jossa 412 lisäystä ja 32 poistoa
  1. 28 0
      airport-common/src/main/java/com/sundot/airport/common/enums/LedgerSyncFlagEnum.java
  2. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerBannerLetter.java
  3. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerChannelPassRate.java
  4. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerComplaint.java
  5. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerDailyTraining.java
  6. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerDormFireSafety.java
  7. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerExamScore.java
  8. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerHealthSoldier.java
  9. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerLeaderDuty.java
  10. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerLeaveSpecial.java
  11. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerPatrolInspection.java
  12. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerRealtimeInterception.java
  13. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerRewardApproval.java
  14. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerRewardPenalty.java
  15. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSecurityTest.java
  16. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSeizureStats.java
  17. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerServicePatrol.java
  18. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSupervisionProblem.java
  19. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerTerminalBonus.java
  20. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerTrainingIssue.java
  21. 6 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerUnsafeEvent.java
  22. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerBannerLetterMapper.java
  23. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerChannelPassRateMapper.java
  24. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerComplaintMapper.java
  25. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerDailyTrainingMapper.java
  26. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerDormFireSafetyMapper.java
  27. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerExamScoreMapper.java
  28. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerHealthSoldierMapper.java
  29. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerLeaderDutyMapper.java
  30. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerLeaveSpecialMapper.java
  31. 6 3
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerPatrolInspectionMapper.java
  32. 2 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerRealtimeInterceptionMapper.java
  33. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerRewardApprovalMapper.java
  34. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerRewardPenaltyMapper.java
  35. 2 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerSecurityTestMapper.java
  36. 2 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerSeizureStatsMapper.java
  37. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerServicePatrolMapper.java
  38. 2 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerSupervisionProblemMapper.java
  39. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerTerminalBonusMapper.java
  40. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerTrainingIssueMapper.java
  41. 3 0
      airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerUnsafeEventMapper.java
  42. 40 9
      airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerSyncServiceImpl.java
  43. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerBannerLetterMapper.xml
  44. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerChannelPassRateMapper.xml
  45. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerComplaintMapper.xml
  46. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerDailyTrainingMapper.xml
  47. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerDormFireSafetyMapper.xml
  48. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerExamScoreMapper.xml
  49. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerHealthSoldierMapper.xml
  50. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerLeaderDutyMapper.xml
  51. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerLeaveSpecialMapper.xml
  52. 9 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerPatrolInspectionMapper.xml
  53. 9 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerRealtimeInterceptionMapper.xml
  54. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerRewardApprovalMapper.xml
  55. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerRewardPenaltyMapper.xml
  56. 9 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerSecurityTestMapper.xml
  57. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerSeizureStatsMapper.xml
  58. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerServicePatrolMapper.xml
  59. 9 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerSupervisionProblemMapper.xml
  60. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerTerminalBonusMapper.xml
  61. 8 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerTrainingIssueMapper.xml
  62. 9 1
      airport-ledger/src/main/resources/mapper/ledger/LedgerUnsafeEventMapper.xml

+ 28 - 0
airport-common/src/main/java/com/sundot/airport/common/enums/LedgerSyncFlagEnum.java

@@ -0,0 +1,28 @@
1
+package com.sundot.airport.common.enums;
2
+
3
+import lombok.AllArgsConstructor;
4
+import lombok.Getter;
5
+
6
+/**
7
+ * 台账同步标志枚举
8
+ */
9
+@Getter
10
+@AllArgsConstructor
11
+public enum LedgerSyncFlagEnum {
12
+
13
+    ZERO("0", "未同步"),
14
+    ONE("1", "已同步");
15
+
16
+    private final String code;
17
+    private final String desc;
18
+
19
+    public static LedgerSyncFlagEnum getByCode(String code) {
20
+        for (LedgerSyncFlagEnum itemEnum : values()) {
21
+            if (itemEnum.getCode().equals(code)) {
22
+                return itemEnum;
23
+            }
24
+        }
25
+        return null;
26
+    }
27
+
28
+}

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerBannerLetter.java

@@ -53,6 +53,9 @@ public class LedgerBannerLetter extends BaseEntity {
53
     @Excel(name = "备注")
53
     @Excel(name = "备注")
54
     private String remark;
54
     private String remark;
55
 
55
 
56
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
57
+    private String syncFlag;
58
+
56
     public Long getId() { return id; }
59
     public Long getId() { return id; }
57
     public void setId(Long id) { this.id = id; }
60
     public void setId(Long id) { this.id = id; }
58
 
61
 
@@ -88,4 +91,7 @@ public class LedgerBannerLetter extends BaseEntity {
88
 
91
 
89
     public String getRemark() { return remark; }
92
     public String getRemark() { return remark; }
90
     public void setRemark(String remark) { this.remark = remark; }
93
     public void setRemark(String remark) { this.remark = remark; }
94
+
95
+    public String getSyncFlag() { return syncFlag; }
96
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
91
 }
97
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerChannelPassRate.java

@@ -50,6 +50,9 @@ public class LedgerChannelPassRate extends BaseEntity {
50
     @Excel(name = "数据来源")
50
     @Excel(name = "数据来源")
51
     private String sourceType;
51
     private String sourceType;
52
 
52
 
53
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
54
+    private String syncFlag;
55
+
53
     public Long getId() { return id; }
56
     public Long getId() { return id; }
54
     public void setId(Long id) { this.id = id; }
57
     public void setId(Long id) { this.id = id; }
55
 
58
 
@@ -82,4 +85,7 @@ public class LedgerChannelPassRate extends BaseEntity {
82
 
85
 
83
     public String getSourceType() { return sourceType; }
86
     public String getSourceType() { return sourceType; }
84
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
87
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
88
+
89
+    public String getSyncFlag() { return syncFlag; }
90
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
85
 }
91
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerComplaint.java

@@ -62,6 +62,9 @@ public class LedgerComplaint extends BaseEntity {
62
     @Excel(name = "数据来源")
62
     @Excel(name = "数据来源")
63
     private String sourceType;
63
     private String sourceType;
64
 
64
 
65
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
66
+    private String syncFlag;
67
+
65
     public Long getId() { return id; }
68
     public Long getId() { return id; }
66
     public void setId(Long id) { this.id = id; }
69
     public void setId(Long id) { this.id = id; }
67
 
70
 
@@ -106,4 +109,7 @@ public class LedgerComplaint extends BaseEntity {
106
 
109
 
107
     public String getSourceType() { return sourceType; }
110
     public String getSourceType() { return sourceType; }
108
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
111
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
112
+
113
+    public String getSyncFlag() { return syncFlag; }
114
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
109
 }
115
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerDailyTraining.java

@@ -55,6 +55,9 @@ public class LedgerDailyTraining extends BaseEntity {
55
     private String importBatch;
55
     private String importBatch;
56
     private String sourceType;
56
     private String sourceType;
57
 
57
 
58
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
59
+    private String syncFlag;
60
+
58
     public Long getId() { return id; }
61
     public Long getId() { return id; }
59
     public void setId(Long id) { this.id = id; }
62
     public void setId(Long id) { this.id = id; }
60
 
63
 
@@ -99,4 +102,7 @@ public class LedgerDailyTraining extends BaseEntity {
99
 
102
 
100
     public String getSourceType() { return sourceType; }
103
     public String getSourceType() { return sourceType; }
101
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
104
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
105
+
106
+    public String getSyncFlag() { return syncFlag; }
107
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
102
 }
108
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerDormFireSafety.java

@@ -54,6 +54,9 @@ public class LedgerDormFireSafety extends BaseEntity {
54
     private String importBatch;
54
     private String importBatch;
55
     private String sourceType;
55
     private String sourceType;
56
 
56
 
57
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
58
+    private String syncFlag;
59
+
57
     public Long getId() { return id; }
60
     public Long getId() { return id; }
58
     public void setId(Long id) { this.id = id; }
61
     public void setId(Long id) { this.id = id; }
59
 
62
 
@@ -95,4 +98,7 @@ public class LedgerDormFireSafety extends BaseEntity {
95
 
98
 
96
     public String getSourceType() { return sourceType; }
99
     public String getSourceType() { return sourceType; }
97
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
100
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
101
+
102
+    public String getSyncFlag() { return syncFlag; }
103
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
98
 }
104
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerExamScore.java

@@ -56,6 +56,9 @@ public class LedgerExamScore extends BaseEntity {
56
     @Excel(name = "数据来源")
56
     @Excel(name = "数据来源")
57
     private String sourceType;
57
     private String sourceType;
58
 
58
 
59
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
60
+    private String syncFlag;
61
+
59
     public Long getId() { return id; }
62
     public Long getId() { return id; }
60
     public void setId(Long id) { this.id = id; }
63
     public void setId(Long id) { this.id = id; }
61
 
64
 
@@ -94,4 +97,7 @@ public class LedgerExamScore extends BaseEntity {
94
 
97
 
95
     public String getSourceType() { return sourceType; }
98
     public String getSourceType() { return sourceType; }
96
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
99
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
100
+
101
+    public String getSyncFlag() { return syncFlag; }
102
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
97
 }
103
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerHealthSoldier.java

@@ -57,6 +57,9 @@ public class LedgerHealthSoldier extends BaseEntity {
57
     private String importBatch;
57
     private String importBatch;
58
     private String sourceType;
58
     private String sourceType;
59
 
59
 
60
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
61
+    private String syncFlag;
62
+
60
     public Long getId() { return id; }
63
     public Long getId() { return id; }
61
     public void setId(Long id) { this.id = id; }
64
     public void setId(Long id) { this.id = id; }
62
 
65
 
@@ -128,4 +131,7 @@ public class LedgerHealthSoldier extends BaseEntity {
128
 
131
 
129
     public String getSourceType() { return sourceType; }
132
     public String getSourceType() { return sourceType; }
130
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
133
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
134
+
135
+    public String getSyncFlag() { return syncFlag; }
136
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
131
 }
137
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerLeaderDuty.java

@@ -34,6 +34,9 @@ public class LedgerLeaderDuty extends BaseEntity {
34
     private String importBatch;
34
     private String importBatch;
35
     private String sourceType;
35
     private String sourceType;
36
 
36
 
37
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
38
+    private String syncFlag;
39
+
37
     public Long getId() { return id; }
40
     public Long getId() { return id; }
38
     public void setId(Long id) { this.id = id; }
41
     public void setId(Long id) { this.id = id; }
39
 
42
 
@@ -60,4 +63,7 @@ public class LedgerLeaderDuty extends BaseEntity {
60
 
63
 
61
     public String getSourceType() { return sourceType; }
64
     public String getSourceType() { return sourceType; }
62
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
65
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
66
+
67
+    public String getSyncFlag() { return syncFlag; }
68
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
63
 }
69
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerLeaveSpecial.java

@@ -51,6 +51,9 @@ public class LedgerLeaveSpecial extends BaseEntity {
51
     @Excel(name = "备注")
51
     @Excel(name = "备注")
52
     private String remark;
52
     private String remark;
53
 
53
 
54
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
55
+    private String syncFlag;
56
+
54
     public Long getId() { return id; }
57
     public Long getId() { return id; }
55
     public void setId(Long id) { this.id = id; }
58
     public void setId(Long id) { this.id = id; }
56
 
59
 
@@ -83,4 +86,7 @@ public class LedgerLeaveSpecial extends BaseEntity {
83
 
86
 
84
     public String getRemark() { return remark; }
87
     public String getRemark() { return remark; }
85
     public void setRemark(String remark) { this.remark = remark; }
88
     public void setRemark(String remark) { this.remark = remark; }
89
+
90
+    public String getSyncFlag() { return syncFlag; }
91
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
86
 }
92
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerPatrolInspection.java

@@ -77,6 +77,9 @@ public class LedgerPatrolInspection extends BaseEntity {
77
     @Excel(name = "数据来源")
77
     @Excel(name = "数据来源")
78
     private String sourceType;
78
     private String sourceType;
79
 
79
 
80
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
81
+    private String syncFlag;
82
+
80
     public Long getId() { return id; }
83
     public Long getId() { return id; }
81
     public void setId(Long id) { this.id = id; }
84
     public void setId(Long id) { this.id = id; }
82
 
85
 
@@ -136,4 +139,7 @@ public class LedgerPatrolInspection extends BaseEntity {
136
 
139
 
137
     public String getSourceType() { return sourceType; }
140
     public String getSourceType() { return sourceType; }
138
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
141
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
142
+
143
+    public String getSyncFlag() { return syncFlag; }
144
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
139
 }
145
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerRealtimeInterception.java

@@ -170,6 +170,9 @@ public class LedgerRealtimeInterception extends BaseEntity {
170
     @Excel(name = "数据来源")
170
     @Excel(name = "数据来源")
171
     private String sourceType;
171
     private String sourceType;
172
 
172
 
173
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
174
+    private String syncFlag;
175
+
173
     public Long getId() { return id; }
176
     public Long getId() { return id; }
174
     public void setId(Long id) { this.id = id; }
177
     public void setId(Long id) { this.id = id; }
175
 
178
 
@@ -328,4 +331,7 @@ public class LedgerRealtimeInterception extends BaseEntity {
328
 
331
 
329
     public String getSourceType() { return sourceType; }
332
     public String getSourceType() { return sourceType; }
330
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
333
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
334
+
335
+    public String getSyncFlag() { return syncFlag; }
336
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
331
 }
337
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerRewardApproval.java

@@ -50,6 +50,9 @@ public class LedgerRewardApproval extends BaseEntity {
50
     @Excel(name = "数据来源")
50
     @Excel(name = "数据来源")
51
     private String sourceType;
51
     private String sourceType;
52
 
52
 
53
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
54
+    private String syncFlag;
55
+
53
     public Long getId() { return id; }
56
     public Long getId() { return id; }
54
     public void setId(Long id) { this.id = id; }
57
     public void setId(Long id) { this.id = id; }
55
 
58
 
@@ -82,4 +85,7 @@ public class LedgerRewardApproval extends BaseEntity {
82
 
85
 
83
     public String getSourceType() { return sourceType; }
86
     public String getSourceType() { return sourceType; }
84
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
87
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
88
+
89
+    public String getSyncFlag() { return syncFlag; }
90
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
85
 }
91
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerRewardPenalty.java

@@ -53,6 +53,9 @@ public class LedgerRewardPenalty extends BaseEntity {
53
     @Excel(name = "备注")
53
     @Excel(name = "备注")
54
     private String remark;
54
     private String remark;
55
 
55
 
56
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
57
+    private String syncFlag;
58
+
56
     public Long getId() { return id; }
59
     public Long getId() { return id; }
57
     public void setId(Long id) { this.id = id; }
60
     public void setId(Long id) { this.id = id; }
58
 
61
 
@@ -88,4 +91,7 @@ public class LedgerRewardPenalty extends BaseEntity {
88
 
91
 
89
     public String getRemark() { return remark; }
92
     public String getRemark() { return remark; }
90
     public void setRemark(String remark) { this.remark = remark; }
93
     public void setRemark(String remark) { this.remark = remark; }
94
+
95
+    public String getSyncFlag() { return syncFlag; }
96
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
91
 }
97
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSecurityTest.java

@@ -118,6 +118,9 @@ public class LedgerSecurityTest extends BaseEntity {
118
     @Excel(name = "数据来源")
118
     @Excel(name = "数据来源")
119
     private String sourceType;
119
     private String sourceType;
120
 
120
 
121
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
122
+    private String syncFlag;
123
+
121
     public Long getId() { return id; }
124
     public Long getId() { return id; }
122
     public void setId(Long id) { this.id = id; }
125
     public void setId(Long id) { this.id = id; }
123
 
126
 
@@ -225,4 +228,7 @@ public class LedgerSecurityTest extends BaseEntity {
225
 
228
 
226
     public String getTeamLeader() { return teamLeader; }
229
     public String getTeamLeader() { return teamLeader; }
227
     public void setTeamLeader(String teamLeader) { this.teamLeader = teamLeader; }
230
     public void setTeamLeader(String teamLeader) { this.teamLeader = teamLeader; }
231
+
232
+    public String getSyncFlag() { return syncFlag; }
233
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
228
 }
234
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSeizureStats.java

@@ -137,6 +137,9 @@ public class LedgerSeizureStats extends BaseEntity {
137
     @Excel(name = "数据来源")
137
     @Excel(name = "数据来源")
138
     private String sourceType;
138
     private String sourceType;
139
 
139
 
140
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
141
+    private String syncFlag;
142
+
140
     public Long getId() { return id; }
143
     public Long getId() { return id; }
141
     public void setId(Long id) { this.id = id; }
144
     public void setId(Long id) { this.id = id; }
142
 
145
 
@@ -262,4 +265,7 @@ public class LedgerSeizureStats extends BaseEntity {
262
 
265
 
263
     public String getSourceType() { return sourceType; }
266
     public String getSourceType() { return sourceType; }
264
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
267
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
268
+
269
+    public String getSyncFlag() { return syncFlag; }
270
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
265
 }
271
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerServicePatrol.java

@@ -74,6 +74,9 @@ public class LedgerServicePatrol extends BaseEntity {
74
     @Excel(name = "数据来源")
74
     @Excel(name = "数据来源")
75
     private String sourceType;
75
     private String sourceType;
76
 
76
 
77
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
78
+    private String syncFlag;
79
+
77
     public Long getId() { return id; }
80
     public Long getId() { return id; }
78
     public void setId(Long id) { this.id = id; }
81
     public void setId(Long id) { this.id = id; }
79
 
82
 
@@ -130,4 +133,7 @@ public class LedgerServicePatrol extends BaseEntity {
130
 
133
 
131
     public String getSourceType() { return sourceType; }
134
     public String getSourceType() { return sourceType; }
132
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
135
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
136
+
137
+    public String getSyncFlag() { return syncFlag; }
138
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
133
 }
139
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerSupervisionProblem.java

@@ -138,6 +138,9 @@ public class LedgerSupervisionProblem extends BaseEntity {
138
     @Excel(name = "数据来源")
138
     @Excel(name = "数据来源")
139
     private String sourceType;
139
     private String sourceType;
140
 
140
 
141
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
142
+    private String syncFlag;
143
+
141
     public Long getId() { return id; }
144
     public Long getId() { return id; }
142
     public void setId(Long id) { this.id = id; }
145
     public void setId(Long id) { this.id = id; }
143
 
146
 
@@ -263,4 +266,7 @@ public class LedgerSupervisionProblem extends BaseEntity {
263
 
266
 
264
     public String getSourceType() { return sourceType; }
267
     public String getSourceType() { return sourceType; }
265
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
268
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
269
+
270
+    public String getSyncFlag() { return syncFlag; }
271
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
266
 }
272
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerTerminalBonus.java

@@ -50,6 +50,9 @@ public class LedgerTerminalBonus extends BaseEntity {
50
     @Excel(name = "数据来源")
50
     @Excel(name = "数据来源")
51
     private String sourceType;
51
     private String sourceType;
52
 
52
 
53
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
54
+    private String syncFlag;
55
+
53
     public Long getId() { return id; }
56
     public Long getId() { return id; }
54
     public void setId(Long id) { this.id = id; }
57
     public void setId(Long id) { this.id = id; }
55
 
58
 
@@ -82,4 +85,7 @@ public class LedgerTerminalBonus extends BaseEntity {
82
 
85
 
83
     public String getSourceType() { return sourceType; }
86
     public String getSourceType() { return sourceType; }
84
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
87
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
88
+
89
+    public String getSyncFlag() { return syncFlag; }
90
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
85
 }
91
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerTrainingIssue.java

@@ -40,6 +40,9 @@ public class LedgerTrainingIssue extends BaseEntity {
40
     private String importBatch;
40
     private String importBatch;
41
     private String sourceType;
41
     private String sourceType;
42
 
42
 
43
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
44
+    private String syncFlag;
45
+
43
     public Long getId() { return id; }
46
     public Long getId() { return id; }
44
     public void setId(Long id) { this.id = id; }
47
     public void setId(Long id) { this.id = id; }
45
 
48
 
@@ -69,4 +72,7 @@ public class LedgerTrainingIssue extends BaseEntity {
69
 
72
 
70
     public String getSourceType() { return sourceType; }
73
     public String getSourceType() { return sourceType; }
71
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
74
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
75
+
76
+    public String getSyncFlag() { return syncFlag; }
77
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
72
 }
78
 }

+ 6 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/LedgerUnsafeEvent.java

@@ -92,6 +92,9 @@ public class LedgerUnsafeEvent extends BaseEntity {
92
     @Excel(name = "数据来源")
92
     @Excel(name = "数据来源")
93
     private String sourceType;
93
     private String sourceType;
94
 
94
 
95
+    @Excel(name = "同步标志(0=未同步;1=已同步)")
96
+    private String syncFlag;
97
+
95
     public Long getId() { return id; }
98
     public Long getId() { return id; }
96
     public void setId(Long id) { this.id = id; }
99
     public void setId(Long id) { this.id = id; }
97
 
100
 
@@ -172,4 +175,7 @@ public class LedgerUnsafeEvent extends BaseEntity {
172
 
175
 
173
     public String getSourceType() { return sourceType; }
176
     public String getSourceType() { return sourceType; }
174
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
177
     public void setSourceType(String sourceType) { this.sourceType = sourceType; }
178
+
179
+    public String getSyncFlag() { return syncFlag; }
180
+    public void setSyncFlag(String syncFlag) { this.syncFlag = syncFlag; }
175
 }
181
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerBannerLetterMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerBannerLetter;
6
 import com.sundot.airport.ledger.domain.LedgerBannerLetter;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerBannerLetter;
9
  */
10
  */
10
 public interface LedgerBannerLetterMapper extends BaseMapper<LedgerBannerLetter> {
11
 public interface LedgerBannerLetterMapper extends BaseMapper<LedgerBannerLetter> {
11
     List<LedgerBannerLetter> selectList(LedgerBannerLetter query);
12
     List<LedgerBannerLetter> selectList(LedgerBannerLetter query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerChannelPassRateMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerChannelPassRate;
6
 import com.sundot.airport.ledger.domain.LedgerChannelPassRate;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerChannelPassRate;
9
  */
10
  */
10
 public interface LedgerChannelPassRateMapper extends BaseMapper<LedgerChannelPassRate> {
11
 public interface LedgerChannelPassRateMapper extends BaseMapper<LedgerChannelPassRate> {
11
     List<LedgerChannelPassRate> selectList(LedgerChannelPassRate query);
12
     List<LedgerChannelPassRate> selectList(LedgerChannelPassRate query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerComplaintMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerComplaint;
6
 import com.sundot.airport.ledger.domain.LedgerComplaint;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerComplaint;
9
  */
10
  */
10
 public interface LedgerComplaintMapper extends BaseMapper<LedgerComplaint> {
11
 public interface LedgerComplaintMapper extends BaseMapper<LedgerComplaint> {
11
     List<LedgerComplaint> selectList(LedgerComplaint query);
12
     List<LedgerComplaint> selectList(LedgerComplaint query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerDailyTrainingMapper.java

@@ -1,9 +1,12 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerDailyTraining;
6
 import com.sundot.airport.ledger.domain.LedgerDailyTraining;
6
 
7
 
7
 public interface LedgerDailyTrainingMapper extends BaseMapper<LedgerDailyTraining> {
8
 public interface LedgerDailyTrainingMapper extends BaseMapper<LedgerDailyTraining> {
8
     List<LedgerDailyTraining> selectList(LedgerDailyTraining query);
9
     List<LedgerDailyTraining> selectList(LedgerDailyTraining query);
10
+
11
+    int updateSyncFlag();
9
 }
12
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerDormFireSafetyMapper.java

@@ -1,9 +1,12 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerDormFireSafety;
6
 import com.sundot.airport.ledger.domain.LedgerDormFireSafety;
6
 
7
 
7
 public interface LedgerDormFireSafetyMapper extends BaseMapper<LedgerDormFireSafety> {
8
 public interface LedgerDormFireSafetyMapper extends BaseMapper<LedgerDormFireSafety> {
8
     List<LedgerDormFireSafety> selectList(LedgerDormFireSafety query);
9
     List<LedgerDormFireSafety> selectList(LedgerDormFireSafety query);
10
+
11
+    int updateSyncFlag();
9
 }
12
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerExamScoreMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerExamScore;
6
 import com.sundot.airport.ledger.domain.LedgerExamScore;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerExamScore;
9
  */
10
  */
10
 public interface LedgerExamScoreMapper extends BaseMapper<LedgerExamScore> {
11
 public interface LedgerExamScoreMapper extends BaseMapper<LedgerExamScore> {
11
     List<LedgerExamScore> selectList(LedgerExamScore query);
12
     List<LedgerExamScore> selectList(LedgerExamScore query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerHealthSoldierMapper.java

@@ -1,9 +1,12 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerHealthSoldier;
6
 import com.sundot.airport.ledger.domain.LedgerHealthSoldier;
6
 
7
 
7
 public interface LedgerHealthSoldierMapper extends BaseMapper<LedgerHealthSoldier> {
8
 public interface LedgerHealthSoldierMapper extends BaseMapper<LedgerHealthSoldier> {
8
     List<LedgerHealthSoldier> selectList(LedgerHealthSoldier query);
9
     List<LedgerHealthSoldier> selectList(LedgerHealthSoldier query);
10
+
11
+    int updateSyncFlag();
9
 }
12
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerLeaderDutyMapper.java

@@ -1,9 +1,12 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerLeaderDuty;
6
 import com.sundot.airport.ledger.domain.LedgerLeaderDuty;
6
 
7
 
7
 public interface LedgerLeaderDutyMapper extends BaseMapper<LedgerLeaderDuty> {
8
 public interface LedgerLeaderDutyMapper extends BaseMapper<LedgerLeaderDuty> {
8
     List<LedgerLeaderDuty> selectList(LedgerLeaderDuty query);
9
     List<LedgerLeaderDuty> selectList(LedgerLeaderDuty query);
10
+
11
+    int updateSyncFlag();
9
 }
12
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerLeaveSpecialMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerLeaveSpecial;
6
 import com.sundot.airport.ledger.domain.LedgerLeaveSpecial;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerLeaveSpecial;
9
  */
10
  */
10
 public interface LedgerLeaveSpecialMapper extends BaseMapper<LedgerLeaveSpecial> {
11
 public interface LedgerLeaveSpecialMapper extends BaseMapper<LedgerLeaveSpecial> {
11
     List<LedgerLeaveSpecial> selectList(LedgerLeaveSpecial query);
12
     List<LedgerLeaveSpecial> selectList(LedgerLeaveSpecial query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 6 - 3
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerPatrolInspectionMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerPatrolInspection;
6
 import com.sundot.airport.ledger.domain.LedgerPatrolInspection;
6
 import org.apache.ibatis.annotations.Param;
7
 import org.apache.ibatis.annotations.Param;
@@ -10,7 +11,9 @@ import org.apache.ibatis.annotations.Param;
10
  */
11
  */
11
 public interface LedgerPatrolInspectionMapper extends BaseMapper<LedgerPatrolInspection> {
12
 public interface LedgerPatrolInspectionMapper extends BaseMapper<LedgerPatrolInspection> {
12
     List<LedgerPatrolInspection> selectList(LedgerPatrolInspection query);
13
     List<LedgerPatrolInspection> selectList(LedgerPatrolInspection query);
13
-    
14
+
15
+    int updateSyncFlag();
16
+
14
     /**
17
     /**
15
      * 根据被查人姓名和时间范围统计三级质控巡查次数
18
      * 根据被查人姓名和时间范围统计三级质控巡查次数
16
      * @param inspectedName 被查人姓名
19
      * @param inspectedName 被查人姓名
@@ -18,7 +21,7 @@ public interface LedgerPatrolInspectionMapper extends BaseMapper<LedgerPatrolIns
18
      * @param endTime 结束时间
21
      * @param endTime 结束时间
19
      * @return 巡查次数
22
      * @return 巡查次数
20
      */
23
      */
21
-    int countByInspectedNameAndDateRange(@Param("inspectedName") String inspectedName, 
22
-                                         @Param("beginTime") String beginTime, 
24
+    int countByInspectedNameAndDateRange(@Param("inspectedName") String inspectedName,
25
+                                         @Param("beginTime") String beginTime,
23
                                          @Param("endTime") String endTime);
26
                                          @Param("endTime") String endTime);
24
 }
27
 }

+ 2 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerRealtimeInterceptionMapper.java

@@ -13,5 +13,7 @@ import com.sundot.airport.ledger.domain.LedgerRealtimeInterception;
13
 public interface LedgerRealtimeInterceptionMapper extends BaseMapper<LedgerRealtimeInterception> {
13
 public interface LedgerRealtimeInterceptionMapper extends BaseMapper<LedgerRealtimeInterception> {
14
     List<LedgerRealtimeInterception> selectList(LedgerRealtimeInterception query);
14
     List<LedgerRealtimeInterception> selectList(LedgerRealtimeInterception query);
15
 
15
 
16
+    int updateSyncFlag();
17
+
16
     List<LedgerCommonResVO> realtimeInterceptionItem(LedgerCommonQueryReqVO query);
18
     List<LedgerCommonResVO> realtimeInterceptionItem(LedgerCommonQueryReqVO query);
17
 }
19
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerRewardApprovalMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerRewardApproval;
6
 import com.sundot.airport.ledger.domain.LedgerRewardApproval;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerRewardApproval;
9
  */
10
  */
10
 public interface LedgerRewardApprovalMapper extends BaseMapper<LedgerRewardApproval> {
11
 public interface LedgerRewardApprovalMapper extends BaseMapper<LedgerRewardApproval> {
11
     List<LedgerRewardApproval> selectList(LedgerRewardApproval query);
12
     List<LedgerRewardApproval> selectList(LedgerRewardApproval query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerRewardPenaltyMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerRewardPenalty;
6
 import com.sundot.airport.ledger.domain.LedgerRewardPenalty;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerRewardPenalty;
9
  */
10
  */
10
 public interface LedgerRewardPenaltyMapper extends BaseMapper<LedgerRewardPenalty> {
11
 public interface LedgerRewardPenaltyMapper extends BaseMapper<LedgerRewardPenalty> {
11
     List<LedgerRewardPenalty> selectList(LedgerRewardPenalty query);
12
     List<LedgerRewardPenalty> selectList(LedgerRewardPenalty query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 2 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerSecurityTestMapper.java

@@ -13,6 +13,8 @@ import com.sundot.airport.common.dto.LedgerCommonResVO;
13
 public interface LedgerSecurityTestMapper extends BaseMapper<LedgerSecurityTest> {
13
 public interface LedgerSecurityTestMapper extends BaseMapper<LedgerSecurityTest> {
14
     List<LedgerSecurityTest> selectList(LedgerSecurityTest query);
14
     List<LedgerSecurityTest> selectList(LedgerSecurityTest query);
15
 
15
 
16
+    int updateSyncFlag();
17
+
16
     List<LedgerCommonResVO> securityTestItemClassification(LedgerCommonQueryReqVO queryReq);
18
     List<LedgerCommonResVO> securityTestItemClassification(LedgerCommonQueryReqVO queryReq);
17
 
19
 
18
     List<LedgerCommonResVO> securityTestPassingStatus(LedgerCommonQueryReqVO queryReq);
20
     List<LedgerCommonResVO> securityTestPassingStatus(LedgerCommonQueryReqVO queryReq);

+ 2 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerSeizureStatsMapper.java

@@ -18,6 +18,8 @@ import org.apache.ibatis.annotations.Param;
18
 public interface LedgerSeizureStatsMapper extends BaseMapper<LedgerSeizureStats> {
18
 public interface LedgerSeizureStatsMapper extends BaseMapper<LedgerSeizureStats> {
19
     List<LedgerSeizureStats> selectList(LedgerSeizureStats query);
19
     List<LedgerSeizureStats> selectList(LedgerSeizureStats query);
20
 
20
 
21
+    int updateSyncFlag();
22
+
21
     int countByInspectorAndDateRange(@Param("inspectorName") String inspectorName,
23
     int countByInspectorAndDateRange(@Param("inspectorName") String inspectorName,
22
                                      @Param("beginTime") String beginTime,
24
                                      @Param("beginTime") String beginTime,
23
                                      @Param("endTime") String endTime);
25
                                      @Param("endTime") String endTime);

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerServicePatrolMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerServicePatrol;
6
 import com.sundot.airport.ledger.domain.LedgerServicePatrol;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerServicePatrol;
9
  */
10
  */
10
 public interface LedgerServicePatrolMapper extends BaseMapper<LedgerServicePatrol> {
11
 public interface LedgerServicePatrolMapper extends BaseMapper<LedgerServicePatrol> {
11
     List<LedgerServicePatrol> selectList(LedgerServicePatrol query);
12
     List<LedgerServicePatrol> selectList(LedgerServicePatrol query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 2 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerSupervisionProblemMapper.java

@@ -14,4 +14,6 @@ public interface LedgerSupervisionProblemMapper extends BaseMapper<LedgerSupervi
14
     List<LedgerSupervisionProblem> selectList(LedgerSupervisionProblem query);
14
     List<LedgerSupervisionProblem> selectList(LedgerSupervisionProblem query);
15
 
15
 
16
     List<LedgerCommonResVO> supervisionProblemPosition(LedgerCommonQueryReqVO query);
16
     List<LedgerCommonResVO> supervisionProblemPosition(LedgerCommonQueryReqVO query);
17
+
18
+    int updateSyncFlag();
17
 }
19
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerTerminalBonusMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerTerminalBonus;
6
 import com.sundot.airport.ledger.domain.LedgerTerminalBonus;
6
 
7
 
@@ -9,4 +10,6 @@ import com.sundot.airport.ledger.domain.LedgerTerminalBonus;
9
  */
10
  */
10
 public interface LedgerTerminalBonusMapper extends BaseMapper<LedgerTerminalBonus> {
11
 public interface LedgerTerminalBonusMapper extends BaseMapper<LedgerTerminalBonus> {
11
     List<LedgerTerminalBonus> selectList(LedgerTerminalBonus query);
12
     List<LedgerTerminalBonus> selectList(LedgerTerminalBonus query);
13
+
14
+    int updateSyncFlag();
12
 }
15
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerTrainingIssueMapper.java

@@ -1,9 +1,12 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerTrainingIssue;
6
 import com.sundot.airport.ledger.domain.LedgerTrainingIssue;
6
 
7
 
7
 public interface LedgerTrainingIssueMapper extends BaseMapper<LedgerTrainingIssue> {
8
 public interface LedgerTrainingIssueMapper extends BaseMapper<LedgerTrainingIssue> {
8
     List<LedgerTrainingIssue> selectList(LedgerTrainingIssue query);
9
     List<LedgerTrainingIssue> selectList(LedgerTrainingIssue query);
10
+
11
+    int updateSyncFlag();
9
 }
12
 }

+ 3 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/mapper/LedgerUnsafeEventMapper.java

@@ -1,6 +1,7 @@
1
 package com.sundot.airport.ledger.mapper;
1
 package com.sundot.airport.ledger.mapper;
2
 
2
 
3
 import java.util.List;
3
 import java.util.List;
4
+
4
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
5
 import com.sundot.airport.ledger.domain.LedgerUnsafeEvent;
6
 import com.sundot.airport.ledger.domain.LedgerUnsafeEvent;
6
 import com.sundot.airport.ledger.domain.vo.CountQueryReqVO;
7
 import com.sundot.airport.ledger.domain.vo.CountQueryReqVO;
@@ -14,6 +15,8 @@ import com.sundot.airport.ledger.domain.vo.UnsafeTypeVO;
14
 public interface LedgerUnsafeEventMapper extends BaseMapper<LedgerUnsafeEvent> {
15
 public interface LedgerUnsafeEventMapper extends BaseMapper<LedgerUnsafeEvent> {
15
     List<LedgerUnsafeEvent> selectList(LedgerUnsafeEvent query);
16
     List<LedgerUnsafeEvent> selectList(LedgerUnsafeEvent query);
16
 
17
 
18
+    int updateSyncFlag();
19
+
17
     /**
20
     /**
18
      * 功能描述:不安全事件物品分布
21
      * 功能描述:不安全事件物品分布
19
      *
22
      *

+ 40 - 9
airport-ledger/src/main/java/com/sundot/airport/ledger/service/impl/LedgerSyncServiceImpl.java

@@ -4,6 +4,7 @@ import cn.hutool.core.util.StrUtil;
4
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
4
 import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
5
 import com.sundot.airport.common.core.domain.entity.SysDept;
5
 import com.sundot.airport.common.core.domain.entity.SysDept;
6
 import com.sundot.airport.common.core.domain.entity.SysUser;
6
 import com.sundot.airport.common.core.domain.entity.SysUser;
7
+import com.sundot.airport.common.enums.LedgerSyncFlagEnum;
7
 import com.sundot.airport.common.utils.DateUtils;
8
 import com.sundot.airport.common.utils.DateUtils;
8
 import com.sundot.airport.ledger.domain.*;
9
 import com.sundot.airport.ledger.domain.*;
9
 import com.sundot.airport.ledger.mapper.*;
10
 import com.sundot.airport.ledger.mapper.*;
@@ -184,7 +185,9 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
184
 
185
 
185
     /** 1. 部门监察问题记录 → 安全防控能力/员工规范化操作(按问题层级区分L3) */
186
     /** 1. 部门监察问题记录 → 安全防控能力/员工规范化操作(按问题层级区分L3) */
186
     private SyncResult syncSupervisionProblem() {
187
     private SyncResult syncSupervisionProblem() {
187
-        List<LedgerSupervisionProblem> list = supervisionMapper.selectList(new LedgerSupervisionProblem());
188
+        LedgerSupervisionProblem query = new LedgerSupervisionProblem();
189
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
190
+        List<LedgerSupervisionProblem> list = supervisionMapper.selectList(query);
188
         Long dimId = dimCache.get("安全防控能力");
191
         Long dimId = dimCache.get("安全防控能力");
189
         ScoreIndicator lv2 = getIndicator(IND_SUPERVISION_L2);
192
         ScoreIndicator lv2 = getIndicator(IND_SUPERVISION_L2);
190
         int ins = 0, skip = 0;
193
         int ins = 0, skip = 0;
@@ -207,11 +210,14 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
207
             scoreEventMapper.insert(e);
210
             scoreEventMapper.insert(e);
208
             ins++;
211
             ins++;
209
         }
212
         }
213
+        supervisionMapper.updateSyncFlag();
210
         return new SyncResult(ins, skip, "");
214
         return new SyncResult(ins, skip, "");
211
     }
215
     }
212
 
216
 
213
     /** 2. 实时质控拦截 → 安全防控能力/后台实时质控拦截(按问题层级区分L3) */
217
     /** 2. 实时质控拦截 → 安全防控能力/后台实时质控拦截(按问题层级区分L3) */
214
     private SyncResult syncRealtimeInterception() {
218
     private SyncResult syncRealtimeInterception() {
219
+        LedgerRealtimeInterception query = new LedgerRealtimeInterception();
220
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
215
         List<LedgerRealtimeInterception> list = interceptionMapper.selectList(new LedgerRealtimeInterception());
221
         List<LedgerRealtimeInterception> list = interceptionMapper.selectList(new LedgerRealtimeInterception());
216
         Long dimId = dimCache.get("安全防控能力");
222
         Long dimId = dimCache.get("安全防控能力");
217
         ScoreIndicator lv2 = getIndicator(IND_INTERCEPT_L2);
223
         ScoreIndicator lv2 = getIndicator(IND_INTERCEPT_L2);
@@ -242,12 +248,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
242
             scoreEventMapper.insert(e);
248
             scoreEventMapper.insert(e);
243
             ins++;
249
             ins++;
244
         }
250
         }
251
+        interceptionMapper.updateSyncFlag();
245
         return new SyncResult(ins, skip, "");
252
         return new SyncResult(ins, skip, "");
246
     }
253
     }
247
 
254
 
248
     /** 3. 安保测试(仅"未通过"才计分,按层级选L3,分值均为-0.5) */
255
     /** 3. 安保测试(仅"未通过"才计分,按层级选L3,分值均为-0.5) */
249
     private SyncResult syncSecurityTest() {
256
     private SyncResult syncSecurityTest() {
250
-        List<LedgerSecurityTest> list = securityTestMapper.selectList(new LedgerSecurityTest());
257
+        LedgerSecurityTest query = new LedgerSecurityTest();
258
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
259
+        List<LedgerSecurityTest> list = securityTestMapper.selectList(query);
251
         Long dimId = dimCache.get("安全防控能力");
260
         Long dimId = dimCache.get("安全防控能力");
252
         ScoreIndicator lv2 = getIndicator(IND_SECTEST_L2);
261
         ScoreIndicator lv2 = getIndicator(IND_SECTEST_L2);
253
         int ins = 0, skip = 0;
262
         int ins = 0, skip = 0;
@@ -270,12 +279,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
270
             scoreEventMapper.insert(e);
279
             scoreEventMapper.insert(e);
271
             ins++;
280
             ins++;
272
         }
281
         }
282
+        securityTestMapper.updateSyncFlag();
273
         return new SyncResult(ins, skip, "");
283
         return new SyncResult(ins, skip, "");
274
     }
284
     }
275
 
285
 
276
     /** 4. 不安全事件(按类别选L3和默认分值) */
286
     /** 4. 不安全事件(按类别选L3和默认分值) */
277
     private SyncResult syncUnsafeEvent() {
287
     private SyncResult syncUnsafeEvent() {
278
-        List<LedgerUnsafeEvent> list = unsafeEventMapper.selectList(new LedgerUnsafeEvent());
288
+        LedgerUnsafeEvent query = new LedgerUnsafeEvent();
289
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
290
+        List<LedgerUnsafeEvent> list = unsafeEventMapper.selectList(query);
279
         Long dimId = dimCache.get("安全防控能力");
291
         Long dimId = dimCache.get("安全防控能力");
280
         ScoreIndicator lv2 = getIndicator(IND_UNSAFE_L2);
292
         ScoreIndicator lv2 = getIndicator(IND_UNSAFE_L2);
281
         int ins = 0, skip = 0;
293
         int ins = 0, skip = 0;
@@ -299,12 +311,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
299
             scoreEventMapper.insert(e);
311
             scoreEventMapper.insert(e);
300
             ins++;
312
             ins++;
301
         }
313
         }
314
+        unsafeEventMapper.updateSyncFlag();
302
         return new SyncResult(ins, skip, "");
315
         return new SyncResult(ins, skip, "");
303
     }
316
     }
304
 
317
 
305
     /** 5. 查获违规品统计(加分,按类别选L3) */
318
     /** 5. 查获违规品统计(加分,按类别选L3) */
306
     private SyncResult syncSeizureStats() {
319
     private SyncResult syncSeizureStats() {
307
-        List<LedgerSeizureStats> list = seizureMapper.selectList(new LedgerSeizureStats());
320
+        LedgerSeizureStats query = new LedgerSeizureStats();
321
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
322
+        List<LedgerSeizureStats> list = seizureMapper.selectList(query);
308
         Long dimId = dimCache.get("安全防控能力");
323
         Long dimId = dimCache.get("安全防控能力");
309
         ScoreIndicator lv2 = getIndicator(IND_SEIZURE_L2);
324
         ScoreIndicator lv2 = getIndicator(IND_SEIZURE_L2);
310
         int ins = 0, skip = 0;
325
         int ins = 0, skip = 0;
@@ -326,12 +341,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
326
             scoreEventMapper.insert(e);
341
             scoreEventMapper.insert(e);
327
             ins++;
342
             ins++;
328
         }
343
         }
344
+        seizureMapper.updateSyncFlag();
329
         return new SyncResult(ins, skip, "");
345
         return new SyncResult(ins, skip, "");
330
     }
346
     }
331
 
347
 
332
     /** 6. 小额奖励审批单(安全类查获加分,按类别选L3) */
348
     /** 6. 小额奖励审批单(安全类查获加分,按类别选L3) */
333
     private SyncResult syncRewardApproval() {
349
     private SyncResult syncRewardApproval() {
334
-        List<LedgerRewardApproval> list = rewardApprovalMapper.selectList(new LedgerRewardApproval());
350
+        LedgerRewardApproval query = new LedgerRewardApproval();
351
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
352
+        List<LedgerRewardApproval> list = rewardApprovalMapper.selectList(query);
335
         Long dimId = dimCache.get("安全防控能力");
353
         Long dimId = dimCache.get("安全防控能力");
336
         ScoreIndicator lv2 = getIndicator(IND_SEIZURE_L2);
354
         ScoreIndicator lv2 = getIndicator(IND_SEIZURE_L2);
337
         int ins = 0, skip = 0;
355
         int ins = 0, skip = 0;
@@ -352,12 +370,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
352
             scoreEventMapper.insert(e);
370
             scoreEventMapper.insert(e);
353
             ins++;
371
             ins++;
354
         }
372
         }
373
+        rewardApprovalMapper.updateSyncFlag();
355
         return new SyncResult(ins, skip, "");
374
         return new SyncResult(ins, skip, "");
356
     }
375
     }
357
 
376
 
358
     /** 7. 服务巡查 → 服务响应能力/服务监察(按问题层级区分L3) */
377
     /** 7. 服务巡查 → 服务响应能力/服务监察(按问题层级区分L3) */
359
     private SyncResult syncServicePatrol() {
378
     private SyncResult syncServicePatrol() {
360
-        List<LedgerServicePatrol> list = servicePatrolMapper.selectList(new LedgerServicePatrol());
379
+        LedgerServicePatrol query = new LedgerServicePatrol();
380
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
381
+        List<LedgerServicePatrol> list = servicePatrolMapper.selectList(query);
361
         Long dimId = dimCache.get("服务响应能力");
382
         Long dimId = dimCache.get("服务响应能力");
362
         ScoreIndicator lv2 = getIndicator(IND_SVCPATROL_L2);
383
         ScoreIndicator lv2 = getIndicator(IND_SVCPATROL_L2);
363
         int ins = 0, skip = 0;
384
         int ins = 0, skip = 0;
@@ -379,12 +400,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
379
             scoreEventMapper.insert(e);
400
             scoreEventMapper.insert(e);
380
             ins++;
401
             ins++;
381
         }
402
         }
403
+        servicePatrolMapper.updateSyncFlag();
382
         return new SyncResult(ins, skip, "");
404
         return new SyncResult(ins, skip, "");
383
     }
405
     }
384
 
406
 
385
     /** 8. 投诉情况(有责任人才计分;旅客服务投诉为L2叶子节点,无L3) */
407
     /** 8. 投诉情况(有责任人才计分;旅客服务投诉为L2叶子节点,无L3) */
386
     private SyncResult syncComplaint() {
408
     private SyncResult syncComplaint() {
387
-        List<LedgerComplaint> list = complaintMapper.selectList(new LedgerComplaint());
409
+        LedgerComplaint quey = new LedgerComplaint();
410
+        quey.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
411
+        List<LedgerComplaint> list = complaintMapper.selectList(quey);
388
         Long dimId = dimCache.get("服务响应能力");
412
         Long dimId = dimCache.get("服务响应能力");
389
         ScoreIndicator lv2 = getIndicator(IND_COMPLAINT_L2);
413
         ScoreIndicator lv2 = getIndicator(IND_COMPLAINT_L2);
390
         int ins = 0, skip = 0;
414
         int ins = 0, skip = 0;
@@ -400,12 +424,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
400
             scoreEventMapper.insert(e);
424
             scoreEventMapper.insert(e);
401
             ins++;
425
             ins++;
402
         }
426
         }
427
+        complaintMapper.updateSyncFlag();
403
         return new SyncResult(ins, skip, "");
428
         return new SyncResult(ins, skip, "");
404
     }
429
     }
405
 
430
 
406
     /** 9. 航站楼加分 → 服务响应能力/典型服务案例/航站楼加分(分值取台账add_score) */
431
     /** 9. 航站楼加分 → 服务响应能力/典型服务案例/航站楼加分(分值取台账add_score) */
407
     private SyncResult syncTerminalBonus() {
432
     private SyncResult syncTerminalBonus() {
408
-        List<LedgerTerminalBonus> list = terminalBonusMapper.selectList(new LedgerTerminalBonus());
433
+        LedgerTerminalBonus query = new LedgerTerminalBonus();
434
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
435
+        List<LedgerTerminalBonus> list = terminalBonusMapper.selectList(query);
409
         Long dimId = dimCache.get("服务响应能力");
436
         Long dimId = dimCache.get("服务响应能力");
410
         ScoreIndicator lv2 = getIndicator(IND_TYPCASE_L2);
437
         ScoreIndicator lv2 = getIndicator(IND_TYPCASE_L2);
411
         ScoreIndicator lv3 = getIndicator(IND_TYPCASE_L3);
438
         ScoreIndicator lv3 = getIndicator(IND_TYPCASE_L3);
@@ -422,12 +449,15 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
422
             scoreEventMapper.insert(e);
449
             scoreEventMapper.insert(e);
423
             ins++;
450
             ins++;
424
         }
451
         }
452
+        terminalBonusMapper.updateSyncFlag();
425
         return new SyncResult(ins, skip, "");
453
         return new SyncResult(ins, skip, "");
426
     }
454
     }
427
 
455
 
428
     /** 10. 成绩收集(≥98加5分;其余不计分,暂无台账规则) */
456
     /** 10. 成绩收集(≥98加5分;其余不计分,暂无台账规则) */
429
     private SyncResult syncExamScore() {
457
     private SyncResult syncExamScore() {
430
-        List<LedgerExamScore> list = examScoreMapper.selectList(new LedgerExamScore());
458
+        LedgerExamScore query = new LedgerExamScore();
459
+        query.setSyncFlag(LedgerSyncFlagEnum.ZERO.getCode());
460
+        List<LedgerExamScore> list = examScoreMapper.selectList(query);
431
         Long dimId = dimCache.get("业务实操能力");
461
         Long dimId = dimCache.get("业务实操能力");
432
         ScoreIndicator lv2 = getIndicator(IND_EXAM_L2);
462
         ScoreIndicator lv2 = getIndicator(IND_EXAM_L2);
433
         int ins = 0, skip = 0;
463
         int ins = 0, skip = 0;
@@ -451,6 +481,7 @@ public class LedgerSyncServiceImpl implements ILedgerSyncService {
451
             scoreEventMapper.insert(e);
481
             scoreEventMapper.insert(e);
452
             ins++;
482
             ins++;
453
         }
483
         }
484
+        examScoreMapper.updateSyncFlag();
454
         return new SyncResult(ins, skip, "");
485
         return new SyncResult(ins, skip, "");
455
     }
486
     }
456
 
487
 

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerBannerLetterMapper.xml

@@ -18,10 +18,11 @@
18
         <result property="createTime" column="create_time" />
18
         <result property="createTime" column="create_time" />
19
         <result property="updateBy"   column="update_by"   />
19
         <result property="updateBy"   column="update_by"   />
20
         <result property="updateTime" column="update_time" />
20
         <result property="updateTime" column="update_time" />
21
+        <result property="syncFlag" column="sync_flag" />
21
     </resultMap>
22
     </resultMap>
22
 
23
 
23
     <sql id="selectVo">
24
     <sql id="selectVo">
24
-        SELECT id, record_date,dept_name,team_name,person_name,person_user_id,type,giver,content_desc,add_score,evidence_file,remark, create_by, create_time, update_by, update_time
25
+        SELECT id, record_date,dept_name,team_name,person_name,person_user_id,type,giver,content_desc,add_score,evidence_file,remark, create_by, create_time, update_by, update_time, sync_flag
25
         FROM ledger_banner_letter
26
         FROM ledger_banner_letter
26
         WHERE del_flag = '0'
27
         WHERE del_flag = '0'
27
     </sql>
28
     </sql>
@@ -31,6 +32,7 @@
31
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
32
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
32
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
34
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
35
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
34
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
36
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
35
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
37
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
36
         </if>
38
         </if>
@@ -40,4 +42,9 @@
40
         ORDER BY id DESC
42
         ORDER BY id DESC
41
     </select>
43
     </select>
42
 
44
 
45
+    <update id="updateSyncFlag">
46
+        update ledger_banner_letter
47
+        set sync_flag = '1'
48
+        where sync_flag = '0'
49
+    </update>
43
 </mapper>
50
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerChannelPassRateMapper.xml

@@ -17,10 +17,11 @@
17
         <result property="createTime" column="create_time" />
17
         <result property="createTime" column="create_time" />
18
         <result property="updateBy"   column="update_by"   />
18
         <result property="updateBy"   column="update_by"   />
19
         <result property="updateTime" column="update_time" />
19
         <result property="updateTime" column="update_time" />
20
+        <result property="syncFlag" column="sync_flag" />
20
     </resultMap>
21
     </resultMap>
21
 
22
 
22
     <sql id="selectVo">
23
     <sql id="selectVo">
23
-        SELECT id, record_date,dept_name,team_name,channel_no,total_count,pass_count,pass_rate,remark,import_batch,source_type, create_by, create_time, update_by, update_time
24
+        SELECT id, record_date,dept_name,team_name,channel_no,total_count,pass_count,pass_rate,remark,import_batch,source_type, create_by, create_time, update_by, update_time, sync_flag
24
         FROM ledger_channel_pass_rate
25
         FROM ledger_channel_pass_rate
25
         WHERE del_flag = '0'
26
         WHERE del_flag = '0'
26
     </sql>
27
     </sql>
@@ -29,6 +30,7 @@
29
         <include refid="selectVo"/>
30
         <include refid="selectVo"/>
30
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
32
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
32
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
34
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
33
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
35
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
34
         </if>
36
         </if>
@@ -38,4 +40,9 @@
38
         ORDER BY id DESC
40
         ORDER BY id DESC
39
     </select>
41
     </select>
40
 
42
 
43
+    <update id="updateSyncFlag">
44
+        update ledger_channel_pass_rate
45
+        set sync_flag = '1'
46
+        where sync_flag = '0'
47
+    </update>
41
 </mapper>
48
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerComplaintMapper.xml

@@ -21,10 +21,11 @@
21
         <result property="createTime" column="create_time" />
21
         <result property="createTime" column="create_time" />
22
         <result property="updateBy"   column="update_by"   />
22
         <result property="updateBy"   column="update_by"   />
23
         <result property="updateTime" column="update_time" />
23
         <result property="updateTime" column="update_time" />
24
+        <result property="syncFlag" column="sync_flag" />
24
     </resultMap>
25
     </resultMap>
25
 
26
 
26
     <sql id="selectVo">
27
     <sql id="selectVo">
27
-        SELECT id, record_date,dept_name,team_name,responsible_name,flight_no,passenger_name,complaint_type,complaint_desc,result_handling,deduct_score,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time
28
+        SELECT id, record_date,dept_name,team_name,responsible_name,flight_no,passenger_name,complaint_type,complaint_desc,result_handling,deduct_score,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time, sync_flag
28
         FROM ledger_complaint
29
         FROM ledger_complaint
29
         WHERE del_flag = '0'
30
         WHERE del_flag = '0'
30
     </sql>
31
     </sql>
@@ -33,6 +34,7 @@
33
         <include refid="selectVo"/>
34
         <include refid="selectVo"/>
34
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
35
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
35
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
36
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
37
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
36
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
38
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
37
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
39
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
38
         </if>
40
         </if>
@@ -42,4 +44,9 @@
42
         ORDER BY id DESC
44
         ORDER BY id DESC
43
     </select>
45
     </select>
44
 
46
 
47
+    <update id="updateSyncFlag">
48
+        update ledger_complaint
49
+        set sync_flag = '1'
50
+        where sync_flag = '0'
51
+    </update>
45
 </mapper>
52
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerDailyTrainingMapper.xml

@@ -22,12 +22,13 @@
22
         <result property="createTime" column="create_time" />
22
         <result property="createTime" column="create_time" />
23
         <result property="updateBy" column="update_by" />
23
         <result property="updateBy" column="update_by" />
24
         <result property="updateTime" column="update_time" />
24
         <result property="updateTime" column="update_time" />
25
+        <result property="syncFlag" column="sync_flag" />
25
     </resultMap>
26
     </resultMap>
26
 
27
 
27
     <sql id="selectVo">
28
     <sql id="selectVo">
28
         SELECT id, record_date, team_name, responsible_teacher, responsible_leader, hours,
29
         SELECT id, record_date, team_name, responsible_teacher, responsible_leader, hours,
29
                project_name, training_content, trainer, training_location, participant_count,
30
                project_name, training_content, trainer, training_location, participant_count,
30
-               is_completed, remark, import_batch, source_type, create_by, create_time, update_by, update_time
31
+               is_completed, remark, import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
31
         FROM ledger_daily_training
32
         FROM ledger_daily_training
32
         WHERE del_flag = '0'
33
         WHERE del_flag = '0'
33
     </sql>
34
     </sql>
@@ -36,6 +37,7 @@
36
         <include refid="selectVo"/>
37
         <include refid="selectVo"/>
37
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
38
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
38
         <if test="projectName != null and projectName != ''">AND project_name LIKE CONCAT('%', #{projectName}, '%')</if>
39
         <if test="projectName != null and projectName != ''">AND project_name LIKE CONCAT('%', #{projectName}, '%')</if>
40
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
39
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
41
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
40
             AND record_date &gt;= #{params.beginTime}
42
             AND record_date &gt;= #{params.beginTime}
41
         </if>
43
         </if>
@@ -45,4 +47,9 @@
45
         ORDER BY id DESC
47
         ORDER BY id DESC
46
     </select>
48
     </select>
47
 
49
 
50
+    <update id="updateSyncFlag">
51
+        update ledger_daily_training
52
+        set sync_flag = '1'
53
+        where sync_flag = '0'
54
+    </update>
48
 </mapper>
55
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerDormFireSafetyMapper.xml

@@ -21,12 +21,13 @@
21
         <result property="createTime" column="create_time" />
21
         <result property="createTime" column="create_time" />
22
         <result property="updateBy" column="update_by" />
22
         <result property="updateBy" column="update_by" />
23
         <result property="updateTime" column="update_time" />
23
         <result property="updateTime" column="update_time" />
24
+        <result property="syncFlag" column="sync_flag" />
24
     </resultMap>
25
     </resultMap>
25
 
26
 
26
     <sql id="selectVo">
27
     <sql id="selectVo">
27
         SELECT id, check_date, dorm_location, dorm_no, check_items, risk_status, found_risk,
28
         SELECT id, check_date, dorm_location, dorm_no, check_items, risk_status, found_risk,
28
                photos, rectify_person, rectify_time, submit_time, submitter,
29
                photos, rectify_person, rectify_time, submit_time, submitter,
29
-               import_batch, source_type, create_by, create_time, update_by, update_time
30
+               import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
30
         FROM ledger_dorm_fire_safety
31
         FROM ledger_dorm_fire_safety
31
         WHERE del_flag = '0'
32
         WHERE del_flag = '0'
32
     </sql>
33
     </sql>
@@ -36,6 +37,7 @@
36
         <if test="dormLocation != null and dormLocation != ''">AND dorm_location LIKE CONCAT('%', #{dormLocation}, '%')</if>
37
         <if test="dormLocation != null and dormLocation != ''">AND dorm_location LIKE CONCAT('%', #{dormLocation}, '%')</if>
37
         <if test="submitter != null and submitter != ''">AND submitter LIKE CONCAT('%', #{submitter}, '%')</if>
38
         <if test="submitter != null and submitter != ''">AND submitter LIKE CONCAT('%', #{submitter}, '%')</if>
38
         <if test="dormNo != null and dormNo != ''">AND dorm_no LIKE CONCAT('%', #{dormNo}, '%')</if>
39
         <if test="dormNo != null and dormNo != ''">AND dorm_no LIKE CONCAT('%', #{dormNo}, '%')</if>
40
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
39
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
41
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
40
             AND check_date &gt;= #{params.beginTime}
42
             AND check_date &gt;= #{params.beginTime}
41
         </if>
43
         </if>
@@ -45,4 +47,9 @@
45
         ORDER BY id DESC
47
         ORDER BY id DESC
46
     </select>
48
     </select>
47
 
49
 
50
+    <update id="updateSyncFlag">
51
+        update ledger_dorm_fire_safety
52
+        set sync_flag = '1'
53
+        where sync_flag = '0'
54
+    </update>
48
 </mapper>
55
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerExamScoreMapper.xml

@@ -19,10 +19,11 @@
19
         <result property="createTime" column="create_time" />
19
         <result property="createTime" column="create_time" />
20
         <result property="updateBy"   column="update_by"   />
20
         <result property="updateBy"   column="update_by"   />
21
         <result property="updateTime" column="update_time" />
21
         <result property="updateTime" column="update_time" />
22
+        <result property="syncFlag" column="sync_flag" />
22
     </resultMap>
23
     </resultMap>
23
 
24
 
24
     <sql id="selectVo">
25
     <sql id="selectVo">
25
-        SELECT id, exam_date, dept_name, team_name, group_name, person_name, exam_category, exam_period, theory_score, image_score, remark, import_batch, source_type, create_by, create_time, update_by, update_time
26
+        SELECT id, exam_date, dept_name, team_name, group_name, person_name, exam_category, exam_period, theory_score, image_score, remark, import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
26
         FROM ledger_exam_score
27
         FROM ledger_exam_score
27
         WHERE del_flag = '0'
28
         WHERE del_flag = '0'
28
     </sql>
29
     </sql>
@@ -31,6 +32,7 @@
31
         <include refid="selectVo"/>
32
         <include refid="selectVo"/>
32
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
33
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
33
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
34
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
35
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
34
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
36
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
35
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
37
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
36
         </if>
38
         </if>
@@ -40,4 +42,9 @@
40
         ORDER BY id DESC
42
         ORDER BY id DESC
41
     </select>
43
     </select>
42
 
44
 
45
+    <update id="updateSyncFlag">
46
+        update ledger_exam_score
47
+        set sync_flag = '1'
48
+        where sync_flag = '0'
49
+    </update>
43
 </mapper>
50
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerHealthSoldierMapper.xml

@@ -31,6 +31,7 @@
31
         <result property="createTime" column="create_time" />
31
         <result property="createTime" column="create_time" />
32
         <result property="updateBy" column="update_by" />
32
         <result property="updateBy" column="update_by" />
33
         <result property="updateTime" column="update_time" />
33
         <result property="updateTime" column="update_time" />
34
+        <result property="syncFlag" column="sync_flag" />
34
     </resultMap>
35
     </resultMap>
35
 
36
 
36
     <sql id="selectVo">
37
     <sql id="selectVo">
@@ -38,7 +39,7 @@
38
                major_disease_recent, daily_habits, mental_state, work_pressure, evidence_file,
39
                major_disease_recent, daily_habits, mental_state, work_pressure, evidence_file,
39
                ext_major_disease, ext_exam_abnormal, ext_recent_symptoms, ext_chronic_mild, ext_chronic_severe,
40
                ext_major_disease, ext_exam_abnormal, ext_recent_symptoms, ext_chronic_mild, ext_chronic_severe,
40
                medical_history, ext_medical_history, submit_time, team_name, team_leader, sub_health_status,
41
                medical_history, ext_medical_history, submit_time, team_name, team_leader, sub_health_status,
41
-               import_batch, source_type, create_by, create_time, update_by, update_time
42
+               import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
42
         FROM ledger_health_soldier
43
         FROM ledger_health_soldier
43
         WHERE del_flag = '0'
44
         WHERE del_flag = '0'
44
     </sql>
45
     </sql>
@@ -49,6 +50,7 @@
49
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
50
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
50
         <if test="teamLeader != null and teamLeader != ''">AND team_leader LIKE CONCAT('%', #{teamLeader}, '%')</if>
51
         <if test="teamLeader != null and teamLeader != ''">AND team_leader LIKE CONCAT('%', #{teamLeader}, '%')</if>
51
         <if test="subHealthStatus != null and subHealthStatus != ''">AND sub_health_status LIKE CONCAT('%', #{subHealthStatus}, '%')</if>
52
         <if test="subHealthStatus != null and subHealthStatus != ''">AND sub_health_status LIKE CONCAT('%', #{subHealthStatus}, '%')</if>
53
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
52
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
54
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
53
             AND submit_time &gt;= #{params.beginTime}
55
             AND submit_time &gt;= #{params.beginTime}
54
         </if>
56
         </if>
@@ -58,4 +60,9 @@
58
         ORDER BY id DESC
60
         ORDER BY id DESC
59
     </select>
61
     </select>
60
 
62
 
63
+    <update id="updateSyncFlag">
64
+        update ledger_health_soldier
65
+        set sync_flag = '1'
66
+        where sync_flag = '0'
67
+    </update>
61
 </mapper>
68
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerLeaderDutyMapper.xml

@@ -16,11 +16,12 @@
16
         <result property="createTime" column="create_time" />
16
         <result property="createTime" column="create_time" />
17
         <result property="updateBy" column="update_by" />
17
         <result property="updateBy" column="update_by" />
18
         <result property="updateTime" column="update_time" />
18
         <result property="updateTime" column="update_time" />
19
+        <result property="syncFlag" column="sync_flag" />
19
     </resultMap>
20
     </resultMap>
20
 
21
 
21
     <sql id="selectVo">
22
     <sql id="selectVo">
22
         SELECT id, class_comment, problem_handling, work_tip, submitter, team_leader,
23
         SELECT id, class_comment, problem_handling, work_tip, submitter, team_leader,
23
-               quality_officer, import_batch, source_type, create_by, create_time, update_by, update_time
24
+               quality_officer, import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
24
         FROM ledger_leader_duty
25
         FROM ledger_leader_duty
25
         WHERE del_flag = '0'
26
         WHERE del_flag = '0'
26
     </sql>
27
     </sql>
@@ -29,6 +30,7 @@
29
         <include refid="selectVo"/>
30
         <include refid="selectVo"/>
30
         <if test="submitter != null and submitter != ''">AND submitter LIKE CONCAT('%', #{submitter}, '%')</if>
31
         <if test="submitter != null and submitter != ''">AND submitter LIKE CONCAT('%', #{submitter}, '%')</if>
31
         <if test="teamLeader != null and teamLeader != ''">AND team_leader LIKE CONCAT('%', #{teamLeader}, '%')</if>
32
         <if test="teamLeader != null and teamLeader != ''">AND team_leader LIKE CONCAT('%', #{teamLeader}, '%')</if>
33
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
32
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
34
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
33
             AND create_time &gt;= #{params.beginTime}
35
             AND create_time &gt;= #{params.beginTime}
34
         </if>
36
         </if>
@@ -38,4 +40,9 @@
38
         ORDER BY id DESC
40
         ORDER BY id DESC
39
     </select>
41
     </select>
40
 
42
 
43
+    <update id="updateSyncFlag">
44
+        update ledger_leader_duty
45
+        set sync_flag = '1'
46
+        where sync_flag = '0'
47
+    </update>
41
 </mapper>
48
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerLeaveSpecialMapper.xml

@@ -17,10 +17,11 @@
17
         <result property="createTime" column="create_time" />
17
         <result property="createTime" column="create_time" />
18
         <result property="updateBy"   column="update_by"   />
18
         <result property="updateBy"   column="update_by"   />
19
         <result property="updateTime" column="update_time" />
19
         <result property="updateTime" column="update_time" />
20
+        <result property="syncFlag" column="sync_flag" />
20
     </resultMap>
21
     </resultMap>
21
 
22
 
22
     <sql id="selectVo">
23
     <sql id="selectVo">
23
-        SELECT id, dept_name,team_name,person_name,person_user_id,leave_type,start_date,end_date,days,deduct_score,remark, create_by, create_time, update_by, update_time
24
+        SELECT id, dept_name,team_name,person_name,person_user_id,leave_type,start_date,end_date,days,deduct_score,remark, create_by, create_time, update_by, update_time, sync_flag
24
         FROM ledger_leave_special
25
         FROM ledger_leave_special
25
         WHERE del_flag = '0'
26
         WHERE del_flag = '0'
26
     </sql>
27
     </sql>
@@ -30,6 +31,7 @@
30
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
32
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
32
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
33
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
34
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
33
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
35
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
34
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
36
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
35
         </if>
37
         </if>
@@ -39,4 +41,9 @@
39
         ORDER BY id DESC
41
         ORDER BY id DESC
40
     </select>
42
     </select>
41
 
43
 
44
+    <update id="updateSyncFlag">
45
+        update ledger_leave_special
46
+        set sync_flag = '1'
47
+        where sync_flag = '0'
48
+    </update>
42
 </mapper>
49
 </mapper>

+ 9 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerPatrolInspectionMapper.xml

@@ -27,10 +27,11 @@
27
         <result property="createTime" column="create_time" />
27
         <result property="createTime" column="create_time" />
28
         <result property="updateBy"   column="update_by"   />
28
         <result property="updateBy"   column="update_by"   />
29
         <result property="updateTime" column="update_time" />
29
         <result property="updateTime" column="update_time" />
30
+        <result property="syncFlag" column="sync_flag" />
30
     </resultMap>
31
     </resultMap>
31
 
32
 
32
     <sql id="selectVo">
33
     <sql id="selectVo">
33
-        SELECT id, record_date, dept_name, team_name, group_name, inspector_name, inspected_name, patrol_type, patrol_item, problem_desc, location, channel_no, result_handling, deduct_score, score_dimension, score_indicator, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time
34
+        SELECT id, record_date, dept_name, team_name, group_name, inspector_name, inspected_name, patrol_type, patrol_item, problem_desc, location, channel_no, result_handling, deduct_score, score_dimension, score_indicator, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
34
         FROM ledger_patrol_inspection
35
         FROM ledger_patrol_inspection
35
         WHERE del_flag = '0'
36
         WHERE del_flag = '0'
36
     </sql>
37
     </sql>
@@ -40,6 +41,7 @@
40
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
41
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
41
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
42
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
42
         <if test="inspectorName != null and inspectorName != ''">AND inspector_name LIKE CONCAT('%', #{inspectorName}, '%')</if>
43
         <if test="inspectorName != null and inspectorName != ''">AND inspector_name LIKE CONCAT('%', #{inspectorName}, '%')</if>
44
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
43
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
45
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
44
             AND record_date &gt;= #{params.beginTime}
46
             AND record_date &gt;= #{params.beginTime}
45
         </if>
47
         </if>
@@ -49,6 +51,12 @@
49
         ORDER BY record_date DESC, id DESC
51
         ORDER BY record_date DESC, id DESC
50
     </select>
52
     </select>
51
 
53
 
54
+    <update id="updateSyncFlag">
55
+        update ledger_patrol_inspection
56
+        set sync_flag = '1'
57
+        where sync_flag = '0'
58
+    </update>
59
+
52
     <select id="countByInspectedNameAndDateRange" resultType="int">
60
     <select id="countByInspectedNameAndDateRange" resultType="int">
53
         SELECT COUNT(*)
61
         SELECT COUNT(*)
54
         FROM ledger_patrol_inspection
62
         FROM ledger_patrol_inspection

+ 9 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerRealtimeInterceptionMapper.xml

@@ -60,6 +60,7 @@
60
         <result property="createTime" column="create_time" />
60
         <result property="createTime" column="create_time" />
61
         <result property="updateBy"   column="update_by"   />
61
         <result property="updateBy"   column="update_by"   />
62
         <result property="updateTime" column="update_time" />
62
         <result property="updateTime" column="update_time" />
63
+        <result property="syncFlag" column="sync_flag" />
63
     </resultMap>
64
     </resultMap>
64
 
65
 
65
     <sql id="selectVo">
66
     <sql id="selectVo">
@@ -72,7 +73,7 @@
72
                monthly_problem_count, last_month_problem_count, image_miss_difficulty, check_personnel,
73
                monthly_problem_count, last_month_problem_count, image_miss_difficulty, check_personnel,
73
                dept_training_instructor, manage_qc_manager, team_internal_duty, remark, team_leader,
74
                dept_training_instructor, manage_qc_manager, team_internal_duty, remark, team_leader,
74
                deduct_score, add_score, score_dimension, score_indicator, evidence_file, import_batch, source_type,
75
                deduct_score, add_score, score_dimension, score_indicator, evidence_file, import_batch, source_type,
75
-               create_by, create_time, update_by, update_time
76
+               create_by, create_time, update_by, update_time, sync_flag
76
         FROM ledger_realtime_interception
77
         FROM ledger_realtime_interception
77
         WHERE del_flag = '0'
78
         WHERE del_flag = '0'
78
     </sql>
79
     </sql>
@@ -82,6 +83,7 @@
82
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
83
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
83
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
84
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
84
         <if test="inspectorName != null and inspectorName != ''">AND inspector_name LIKE CONCAT('%', #{inspectorName}, '%')</if>
85
         <if test="inspectorName != null and inspectorName != ''">AND inspector_name LIKE CONCAT('%', #{inspectorName}, '%')</if>
86
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
85
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
87
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
86
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
88
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
87
         </if>
89
         </if>
@@ -91,6 +93,12 @@
91
         ORDER BY id DESC
93
         ORDER BY id DESC
92
     </select>
94
     </select>
93
 
95
 
96
+    <update id="updateSyncFlag">
97
+        update ledger_realtime_interception
98
+        set sync_flag = '1'
99
+        where sync_flag = '0'
100
+    </update>
101
+
94
     <select id="realtimeInterceptionItem"
102
     <select id="realtimeInterceptionItem"
95
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
103
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
96
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">
104
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerRewardApprovalMapper.xml

@@ -17,10 +17,11 @@
17
         <result property="createTime" column="create_time" />
17
         <result property="createTime" column="create_time" />
18
         <result property="updateBy"   column="update_by"   />
18
         <result property="updateBy"   column="update_by"   />
19
         <result property="updateTime" column="update_time" />
19
         <result property="updateTime" column="update_time" />
20
+        <result property="syncFlag" column="sync_flag" />
20
     </resultMap>
21
     </resultMap>
21
 
22
 
22
     <sql id="selectVo">
23
     <sql id="selectVo">
23
-        SELECT id, approve_date,dept_name,team_name,person_name,reward_type,reward_amount,approval_status,remark,import_batch,source_type, create_by, create_time, update_by, update_time
24
+        SELECT id, approve_date,dept_name,team_name,person_name,reward_type,reward_amount,approval_status,remark,import_batch,source_type, create_by, create_time, update_by, update_time, sync_flag
24
         FROM ledger_reward_approval
25
         FROM ledger_reward_approval
25
         WHERE del_flag = '0'
26
         WHERE del_flag = '0'
26
     </sql>
27
     </sql>
@@ -30,6 +31,7 @@
30
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
32
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
32
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
33
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
34
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
33
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
35
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
34
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
36
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
35
         </if>
37
         </if>
@@ -39,4 +41,9 @@
39
         ORDER BY id DESC
41
         ORDER BY id DESC
40
     </select>
42
     </select>
41
 
43
 
44
+    <update id="updateSyncFlag">
45
+        update ledger_reward_approval
46
+        set sync_flag = '1'
47
+        where sync_flag = '0'
48
+    </update>
42
 </mapper>
49
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerRewardPenaltyMapper.xml

@@ -18,10 +18,11 @@
18
         <result property="createTime" column="create_time" />
18
         <result property="createTime" column="create_time" />
19
         <result property="updateBy"   column="update_by"   />
19
         <result property="updateBy"   column="update_by"   />
20
         <result property="updateTime" column="update_time" />
20
         <result property="updateTime" column="update_time" />
21
+        <result property="syncFlag" column="sync_flag" />
21
     </resultMap>
22
     </resultMap>
22
 
23
 
23
     <sql id="selectVo">
24
     <sql id="selectVo">
24
-        SELECT id, record_date,dept_name,team_name,person_name,person_user_id,type,event_desc,score_change,score_dimension,evidence_file,remark, create_by, create_time, update_by, update_time
25
+        SELECT id, record_date,dept_name,team_name,person_name,person_user_id,type,event_desc,score_change,score_dimension,evidence_file,remark, create_by, create_time, update_by, update_time, sync_flag
25
         FROM ledger_reward_penalty
26
         FROM ledger_reward_penalty
26
         WHERE del_flag = '0'
27
         WHERE del_flag = '0'
27
     </sql>
28
     </sql>
@@ -31,6 +32,7 @@
31
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
32
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
32
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
34
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
35
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
34
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
36
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
35
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
37
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
36
         </if>
38
         </if>
@@ -40,4 +42,9 @@
40
         ORDER BY id DESC
42
         ORDER BY id DESC
41
     </select>
43
     </select>
42
 
44
 
45
+    <update id="updateSyncFlag">
46
+        update ledger_reward_penalty
47
+        set sync_flag = '1'
48
+        where sync_flag = '0'
49
+    </update>
43
 </mapper>
50
 </mapper>

+ 9 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerSecurityTestMapper.xml

@@ -43,6 +43,7 @@
43
         <result property="createTime" column="create_time" />
43
         <result property="createTime" column="create_time" />
44
         <result property="updateBy"   column="update_by"   />
44
         <result property="updateBy"   column="update_by"   />
45
         <result property="updateTime" column="update_time" />
45
         <result property="updateTime" column="update_time" />
46
+        <result property="syncFlag" column="sync_flag" />
46
     </resultMap>
47
     </resultMap>
47
 
48
 
48
     <sql id="selectVo">
49
     <sql id="selectVo">
@@ -50,7 +51,7 @@
50
                tester_name, tester_id, tested_name, tested_id, test_type, position_id, test_item, test_result,
51
                tester_name, tester_id, tested_name, tested_id, test_type, position_id, test_item, test_result,
51
                problem_desc, result_handling, review_location_time, review_material, push_team_qc, push_qc_captain,
52
                problem_desc, result_handling, review_location_time, review_material, push_team_qc, push_qc_captain,
52
                team_internal_duty, push_to_relevant, team_leader, deduct_score, add_score, score_dimension,
53
                team_internal_duty, push_to_relevant, team_leader, deduct_score, add_score, score_dimension,
53
-               score_indicator, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time
54
+               score_indicator, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
54
         FROM ledger_security_test
55
         FROM ledger_security_test
55
         WHERE del_flag = '0'
56
         WHERE del_flag = '0'
56
     </sql>
57
     </sql>
@@ -60,6 +61,7 @@
60
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
61
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
61
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
62
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
62
         <if test="testedName != null and testedName != ''">AND tested_name LIKE CONCAT('%', #{testedName}, '%')</if>
63
         <if test="testedName != null and testedName != ''">AND tested_name LIKE CONCAT('%', #{testedName}, '%')</if>
64
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
63
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
65
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
64
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
66
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
65
         </if>
67
         </if>
@@ -69,6 +71,12 @@
69
         ORDER BY id DESC
71
         ORDER BY id DESC
70
     </select>
72
     </select>
71
 
73
 
74
+    <update id="updateSyncFlag">
75
+        update ledger_security_test
76
+        set sync_flag = '1'
77
+        where sync_flag = '0'
78
+    </update>
79
+
72
     <select id="securityTestItemClassification"
80
     <select id="securityTestItemClassification"
73
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
81
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
74
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">
82
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerSeizureStatsMapper.xml


+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerServicePatrolMapper.xml

@@ -25,10 +25,11 @@
25
         <result property="createTime" column="create_time" />
25
         <result property="createTime" column="create_time" />
26
         <result property="updateBy"   column="update_by"   />
26
         <result property="updateBy"   column="update_by"   />
27
         <result property="updateTime" column="update_time" />
27
         <result property="updateTime" column="update_time" />
28
+        <result property="syncFlag" column="sync_flag" />
28
     </resultMap>
29
     </resultMap>
29
 
30
 
30
     <sql id="selectVo">
31
     <sql id="selectVo">
31
-        SELECT id, record_date,dept_name,team_name,group_name,inspector_name,inspected_name,service_type,problem_desc,location,result_handling,deduct_score,add_score,score_dimension,score_indicator,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time
32
+        SELECT id, record_date,dept_name,team_name,group_name,inspector_name,inspected_name,service_type,problem_desc,location,result_handling,deduct_score,add_score,score_dimension,score_indicator,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time, sync_flag
32
         FROM ledger_service_patrol
33
         FROM ledger_service_patrol
33
         WHERE del_flag = '0'
34
         WHERE del_flag = '0'
34
     </sql>
35
     </sql>
@@ -38,6 +39,7 @@
38
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
39
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
39
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
40
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
40
         <if test="inspectedName != null and inspectedName != ''">AND inspected_name LIKE CONCAT('%', #{inspectedName}, '%')</if>
41
         <if test="inspectedName != null and inspectedName != ''">AND inspected_name LIKE CONCAT('%', #{inspectedName}, '%')</if>
42
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
41
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
43
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
42
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
44
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
43
         </if>
45
         </if>
@@ -47,4 +49,9 @@
47
         ORDER BY id DESC
49
         ORDER BY id DESC
48
     </select>
50
     </select>
49
 
51
 
52
+    <update id="updateSyncFlag">
53
+        update ledger_service_patrol
54
+        set sync_flag = '1'
55
+        where sync_flag = '0'
56
+    </update>
50
 </mapper>
57
 </mapper>

+ 9 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerSupervisionProblemMapper.xml

@@ -49,6 +49,7 @@
49
         <result property="createTime"       column="create_time"      />
49
         <result property="createTime"       column="create_time"      />
50
         <result property="updateBy"         column="update_by"        />
50
         <result property="updateBy"         column="update_by"        />
51
         <result property="updateTime"       column="update_time"      />
51
         <result property="updateTime"       column="update_time"      />
52
+        <result property="syncFlag" column="sync_flag" />
52
     </resultMap>
53
     </resultMap>
53
 
54
 
54
     <sql id="selectVo">
55
     <sql id="selectVo">
@@ -58,7 +59,7 @@
58
                rectification_status, evidence_material, send_to_relevant, monthly_problem_count, last_month_exceed_three,
59
                rectification_status, evidence_material, send_to_relevant, monthly_problem_count, last_month_exceed_three,
59
                check_personnel, manage_qc_manager, input_time, dept_training_instructor, team_internal_duty, team_leader,
60
                check_personnel, manage_qc_manager, input_time, dept_training_instructor, team_internal_duty, team_leader,
60
                deduct_score, add_score, score_dimension, score_indicator, evidence_file, remark,
61
                deduct_score, add_score, score_dimension, score_indicator, evidence_file, remark,
61
-               import_batch, source_type, create_by, create_time, update_by, update_time
62
+               import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
62
         FROM ledger_supervision_problem
63
         FROM ledger_supervision_problem
63
         WHERE del_flag = '0'
64
         WHERE del_flag = '0'
64
     </sql>
65
     </sql>
@@ -69,6 +70,7 @@
69
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
70
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
70
         <if test="inspectorName != null and inspectorName != ''">AND inspector_name LIKE CONCAT('%', #{inspectorName}, '%')</if>
71
         <if test="inspectorName != null and inspectorName != ''">AND inspector_name LIKE CONCAT('%', #{inspectorName}, '%')</if>
71
         <if test="inspectedName != null and inspectedName != ''">AND inspected_name LIKE CONCAT('%', #{inspectedName}, '%')</if>
72
         <if test="inspectedName != null and inspectedName != ''">AND inspected_name LIKE CONCAT('%', #{inspectedName}, '%')</if>
73
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
72
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
74
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
73
             AND record_date &gt;= #{params.beginTime}
75
             AND record_date &gt;= #{params.beginTime}
74
         </if>
76
         </if>
@@ -78,6 +80,12 @@
78
         ORDER BY record_date DESC, id DESC
80
         ORDER BY record_date DESC, id DESC
79
     </select>
81
     </select>
80
 
82
 
83
+    <update id="updateSyncFlag">
84
+        update ledger_supervision_problem
85
+        set sync_flag = '1'
86
+        where sync_flag = '0'
87
+    </update>
88
+
81
     <select id="supervisionProblemPosition"
89
     <select id="supervisionProblemPosition"
82
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
90
             parameterType="com.sundot.airport.common.dto.LedgerCommonQueryReqVO"
83
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">
91
             resultType="com.sundot.airport.common.dto.LedgerCommonResVO">

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerTerminalBonusMapper.xml

@@ -17,10 +17,11 @@
17
         <result property="createTime" column="create_time" />
17
         <result property="createTime" column="create_time" />
18
         <result property="updateBy"   column="update_by"   />
18
         <result property="updateBy"   column="update_by"   />
19
         <result property="updateTime" column="update_time" />
19
         <result property="updateTime" column="update_time" />
20
+        <result property="syncFlag" column="sync_flag" />
20
     </resultMap>
21
     </resultMap>
21
 
22
 
22
     <sql id="selectVo">
23
     <sql id="selectVo">
23
-        SELECT id, approve_date,dept_name,team_name,person_name,bonus_type,add_score,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time
24
+        SELECT id, approve_date,dept_name,team_name,person_name,bonus_type,add_score,evidence_file,remark,import_batch,source_type, create_by, create_time, update_by, update_time, sync_flag
24
         FROM ledger_terminal_bonus
25
         FROM ledger_terminal_bonus
25
         WHERE del_flag = '0'
26
         WHERE del_flag = '0'
26
     </sql>
27
     </sql>
@@ -29,6 +30,7 @@
29
         <include refid="selectVo"/>
30
         <include refid="selectVo"/>
30
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
31
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
32
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
32
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
34
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
33
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
35
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
34
         </if>
36
         </if>
@@ -38,4 +40,9 @@
38
         ORDER BY id DESC
40
         ORDER BY id DESC
39
     </select>
41
     </select>
40
 
42
 
43
+    <update id="updateSyncFlag">
44
+        update ledger_terminal_bonus
45
+        set sync_flag = '1'
46
+        where sync_flag = '0'
47
+    </update>
41
 </mapper>
48
 </mapper>

+ 8 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerTrainingIssueMapper.xml

@@ -17,12 +17,13 @@
17
         <result property="createTime" column="create_time" />
17
         <result property="createTime" column="create_time" />
18
         <result property="updateBy" column="update_by" />
18
         <result property="updateBy" column="update_by" />
19
         <result property="updateTime" column="update_time" />
19
         <result property="updateTime" column="update_time" />
20
+        <result property="syncFlag" column="sync_flag" />
20
     </resultMap>
21
     </resultMap>
21
 
22
 
22
     <sql id="selectVo">
23
     <sql id="selectVo">
23
         SELECT id, record_date, ledger_content, specific_problem, handler, team_name,
24
         SELECT id, record_date, ledger_content, specific_problem, handler, team_name,
24
                recheck_problem, is_rectified, import_batch, source_type,
25
                recheck_problem, is_rectified, import_batch, source_type,
25
-               create_by, create_time, update_by, update_time
26
+               create_by, create_time, update_by, update_time, sync_flag
26
         FROM ledger_training_issue
27
         FROM ledger_training_issue
27
         WHERE del_flag = '0'
28
         WHERE del_flag = '0'
28
     </sql>
29
     </sql>
@@ -32,6 +33,7 @@
32
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
33
         <if test="handler != null and handler != ''">AND handler LIKE CONCAT('%', #{handler}, '%')</if>
34
         <if test="handler != null and handler != ''">AND handler LIKE CONCAT('%', #{handler}, '%')</if>
34
         <if test="isRectified != null and isRectified != ''">AND is_rectified = #{isRectified}</if>
35
         <if test="isRectified != null and isRectified != ''">AND is_rectified = #{isRectified}</if>
36
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
35
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
37
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
36
             AND record_date &gt;= #{params.beginTime}
38
             AND record_date &gt;= #{params.beginTime}
37
         </if>
39
         </if>
@@ -41,4 +43,9 @@
41
         ORDER BY id DESC
43
         ORDER BY id DESC
42
     </select>
44
     </select>
43
 
45
 
46
+    <update id="updateSyncFlag">
47
+        update ledger_training_issue
48
+        set sync_flag = '1'
49
+        where sync_flag = '0'
50
+    </update>
44
 </mapper>
51
 </mapper>

+ 9 - 1
airport-ledger/src/main/resources/mapper/ledger/LedgerUnsafeEventMapper.xml

@@ -34,10 +34,11 @@
34
         <result property="createTime" column="create_time" />
34
         <result property="createTime" column="create_time" />
35
         <result property="updateBy"   column="update_by"   />
35
         <result property="updateBy"   column="update_by"   />
36
         <result property="updateTime" column="update_time" />
36
         <result property="updateTime" column="update_time" />
37
+        <result property="syncFlag" column="sync_flag" />
37
     </resultMap>
38
     </resultMap>
38
 
39
 
39
     <sql id="selectVo">
40
     <sql id="selectVo">
40
-        SELECT id, record_date, flight_no, dept_name, dept_id, team_name, team_internal_duty, team_id, group_name, group_id, responsible_name, responsible_id, event_type, involved_items, position, position_id, area, area_id, channel_no, image, event_desc, result_handling, deduct_score, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time
41
+        SELECT id, record_date, flight_no, dept_name, dept_id, team_name, team_internal_duty, team_id, group_name, group_id, responsible_name, responsible_id, event_type, involved_items, position, position_id, area, area_id, channel_no, image, event_desc, result_handling, deduct_score, evidence_file, remark, import_batch, source_type, create_by, create_time, update_by, update_time, sync_flag
41
         FROM ledger_unsafe_event
42
         FROM ledger_unsafe_event
42
         WHERE del_flag = '0'
43
         WHERE del_flag = '0'
43
     </sql>
44
     </sql>
@@ -47,6 +48,7 @@
47
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
48
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
48
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
49
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>
49
         <if test="responsibleName != null and responsibleName != ''">AND responsible_name LIKE CONCAT('%', #{responsibleName}, '%')</if>
50
         <if test="responsibleName != null and responsibleName != ''">AND responsible_name LIKE CONCAT('%', #{responsibleName}, '%')</if>
51
+        <if test="syncFlag != null and syncFlag != ''">AND sync_flag = #{syncFlag}</if>
50
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
52
         <if test="params != null and params.beginTime != null and params.beginTime != ''">
51
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
53
             AND (record_date &gt;= #{params.beginTime} OR approve_date &gt;= #{params.beginTime} OR exam_date &gt;= #{params.beginTime})
52
         </if>
54
         </if>
@@ -56,6 +58,12 @@
56
         ORDER BY id DESC
58
         ORDER BY id DESC
57
     </select>
59
     </select>
58
 
60
 
61
+    <update id="updateSyncFlag">
62
+        update ledger_unsafe_event
63
+        set sync_flag = '1'
64
+        where sync_flag = '0'
65
+    </update>
66
+
59
     <select id="countSeizureStatsItem" parameterType="com.sundot.airport.ledger.domain.vo.CountQueryReqVO" resultType="com.sundot.airport.ledger.domain.vo.UnsafeItemVO">
67
     <select id="countSeizureStatsItem" parameterType="com.sundot.airport.ledger.domain.vo.CountQueryReqVO" resultType="com.sundot.airport.ledger.domain.vo.UnsafeItemVO">
60
         SELECT involved_items AS itemName, COUNT(*) AS itemNum
68
         SELECT involved_items AS itemName, COUNT(*) AS itemNum
61
         FROM ledger_unsafe_event
69
         FROM ledger_unsafe_event