Bläddra i källkod

Merge remote-tracking branch 'origin/master'

wangxx 1 vecka sedan
förälder
incheckning
1de40d4798

+ 29 - 0
airport-common/src/main/java/com/sundot/airport/common/enums/ScoreTypeEnum.java

@@ -0,0 +1,29 @@
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 ScoreTypeEnum {
12
+
13
+    ALL("0", "全部"),
14
+    PLUS("1", "加分"),
15
+    REDUCE("2", "扣分");
16
+
17
+    private final String code;
18
+    private final String desc;
19
+
20
+    public static ScoreTypeEnum getByCode(String code) {
21
+        for (ScoreTypeEnum itemEnum : values()) {
22
+            if (itemEnum.getCode().equals(code)) {
23
+                return itemEnum;
24
+            }
25
+        }
26
+        return null;
27
+    }
28
+
29
+}

+ 54 - 0
airport-ledger/src/main/java/com/sundot/airport/ledger/domain/ScoreEvent.java

@@ -105,6 +105,33 @@ public class ScoreEvent extends BaseEntity {
105 105
     @Excel(name = "层级维度", readConverterExp = "1=部门,2=队室,3=通道,4=员工", combo = "部门,队室,通道,员工")
106 106
     private String org;
107 107
 
108
+    @Excel(name = "航站楼ID")
109
+    private Long terminlId;
110
+
111
+    @Excel(name = "航站楼名称")
112
+    private String terminlName;
113
+
114
+    @Excel(name = "区域ID")
115
+    private Long regionalId;
116
+
117
+    @Excel(name = "区域名称")
118
+    private String regionalName;
119
+
120
+    @Excel(name = "通道ID")
121
+    private Long channelId;
122
+
123
+    @Excel(name = "通道名称")
124
+    private String channelName;
125
+
126
+    @Excel(name = "岗位ID")
127
+    private Long postId;
128
+
129
+    @Excel(name = "岗位名称")
130
+    private String postName;
131
+
132
+    @Excel(name = "加扣分类型")
133
+    private String scoreType;
134
+
108 135
     public Long getId() { return id; }
109 136
     public void setId(Long id) { this.id = id; }
110 137
 
@@ -191,4 +218,31 @@ public class ScoreEvent extends BaseEntity {
191 218
 
192 219
     public String getOrg() { return org; }
193 220
     public void setOrg(String org) { this.org = org; }
221
+
222
+    public Long getTerminlId() { return terminlId; }
223
+    public void setTerminlId(Long terminlId) { this.terminlId = terminlId; }
224
+
225
+    public String getTerminlName() { return terminlName; }
226
+    public void setTerminlName(String terminlName) { this.terminlName = terminlName; }
227
+
228
+    public Long getRegionalId() { return regionalId; }
229
+    public void setRegionalId(Long regionalId) { this.regionalId = regionalId; }
230
+
231
+    public String getRegionalName() { return regionalName; }
232
+    public void setRegionalName(String regionalName) { this.regionalName = regionalName; }
233
+
234
+    public Long getChannelId() { return channelId; }
235
+    public void setChannelId(Long channelId) { this.channelId = channelId; }
236
+
237
+    public String getChannelName() { return channelName; }
238
+    public void setChannelName(String channelName) { this.channelName = channelName; }
239
+
240
+    public Long getPostId() { return postId; }
241
+    public void setPostId(Long postId) { this.postId = postId; }
242
+
243
+    public String getPostName() { return postName; }
244
+    public void setPostName(String postName) { this.postName = postName; }
245
+
246
+    public String getScoreType() { return scoreType; }
247
+    public void setScoreType(String scoreType) { this.scoreType = scoreType; }
194 248
 }

+ 23 - 1
airport-ledger/src/main/resources/mapper/ledger/ScoreEventMapper.xml

@@ -32,6 +32,15 @@
32 32
         <result property="importBatch"   column="import_batch"/>
33 33
         <result property="evidenceFile"  column="evidence_file"/>
34 34
         <result property="org"  column="org"/>
35
+        <result property="terminlId"  column="terminl_id"/>
36
+        <result property="terminlName"  column="terminl_name"/>
37
+        <result property="regionalId"  column="regional_id"/>
38
+        <result property="regionalName"  column="regional_name"/>
39
+        <result property="channelId"  column="channel_id"/>
40
+        <result property="channelName"  column="channel_name"/>
41
+        <result property="postId"  column="post_id"/>
42
+        <result property="postName"  column="post_name"/>
43
+        <result property="scoreType"  column="score_type"/>
35 44
         <result property="remark"        column="remark"/>
36 45
         <result property="createBy"      column="create_by"/>
37 46
         <result property="createTime"    column="create_time"/>
@@ -45,7 +54,9 @@
45 54
                level2_name, level3_name, level4_name,
46 55
                event_time, location, person_id, dept_id, team_id, group_id, person_name, dept_name, team_name, group_name,
47 56
                score_value, cascade_score, total_score, event_desc,
48
-               source_type, source_ledger, import_batch, evidence_file, org, remark,
57
+               source_type, source_ledger, import_batch, evidence_file, org,
58
+               terminl_id, terminl_name, regional_id, regional_name, channel_id, channel_name, post_id, post_name, score_type,
59
+               remark,
49 60
                create_by, create_time, update_by, update_time
50 61
         FROM score_event
51 62
         WHERE del_flag = '0'
@@ -60,6 +71,17 @@
60 71
         <if test="teamId != null">AND team_id = #{teamId}</if>
61 72
         <if test="groupId != null">AND group_id = #{groupId}</if>
62 73
         <if test="org != null and org != ''">AND org = #{org}</if>
74
+        <if test="terminlId != null">AND terminl_id = #{terminlId}</if>
75
+        <if test="terminlName != null and terminlName != ''">AND terminl_name LIKE CONCAT('%', #{terminlName}, '%')</if>
76
+        <if test="regionalId != null">AND regional_id = #{regionalId}</if>
77
+        <if test="regionalName != null and regionalName != ''">
78
+            AND regional_name LIKE CONCAT('%', #{regionalName}, '%')
79
+        </if>
80
+        <if test="channelId != null">AND channel_id = #{channelId}</if>
81
+        <if test="channelName != null and channelName != ''">AND channel_name LIKE CONCAT('%', #{channelName}, '%')</if>
82
+        <if test="postId != null">AND post_id = #{postId}</if>
83
+        <if test="postName != null and postName != ''">AND post_name LIKE CONCAT('%', #{postName}, '%')</if>
84
+        <if test="scoreType != null and scoreType != ''">AND score_type = #{scoreType}</if>
63 85
         <if test="personName != null and personName != ''">AND person_name LIKE CONCAT('%', #{personName}, '%')</if>
64 86
         <if test="deptName != null and deptName != ''">AND dept_name LIKE CONCAT('%', #{deptName}, '%')</if>
65 87
         <if test="teamName != null and teamName != ''">AND team_name LIKE CONCAT('%', #{teamName}, '%')</if>