Преглед на файлове

Merge remote-tracking branch 'origin/master'

chenshudong преди 2 седмици
родител
ревизия
8ed5d07c1d

+ 14 - 0
airport-common/src/main/java/com/sundot/airport/common/core/domain/entity/SysUser.java

@@ -395,6 +395,12 @@ public class SysUser extends BaseEntity {
395 395
     private String subordinateEvaluationGrowthPotential;
396 396
 
397 397
     /**
398
+     * 用户标签(多个逗号分隔)
399
+     */
400
+    @Excel(name = "用户标签(多个逗号分隔)")
401
+    private String tags;
402
+
403
+    /**
398 404
      * 团队配合人员列表
399 405
      */
400 406
     private List<SysUser> teamCooperationList;
@@ -927,6 +933,14 @@ public class SysUser extends BaseEntity {
927 933
         this.workPenaltiesNumber = workPenaltiesNumber;
928 934
     }
929 935
 
936
+    public String getTags() {
937
+        return tags;
938
+    }
939
+
940
+    public void setTags(String tags) {
941
+        this.tags = tags;
942
+    }
943
+
930 944
     public List<SysUser> getTeamCooperationList() {
931 945
         return teamCooperationList;
932 946
     }

+ 12 - 1
airport-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -71,6 +71,7 @@
71 71
         <result property="securityInspectionPosition" column="security_inspection_position"/>
72 72
         <result property="workRewardsNumber" column="work_rewards_number"/>
73 73
         <result property="workPenaltiesNumber" column="work_penalties_number"/>
74
+        <result property="tags" column="tags"/>
74 75
         <association property="dept" javaType="SysDept" resultMap="deptResult"/>
75 76
         <collection property="roles" javaType="java.util.List" resultMap="RoleResult"/>
76 77
     </resultMap>
@@ -157,6 +158,7 @@
157 158
                u.security_inspection_position,
158 159
                u.work_rewards_number,
159 160
                u.work_penalties_number,
161
+               u.tags,
160 162
                d.dept_id,
161 163
                d.parent_id,
162 164
                d.ancestors,
@@ -197,7 +199,7 @@
197 199
         u.schooling,u.political_review_situation,u.start_working_date,
198 200
         u.security_check_start_date,u.entry_date,u.xray_operator_starttime,
199 201
         u.professional,u.native_place,u.nation,
200
-        u.security_inspection_position,u.work_rewards_number,u.work_penalties_number,
202
+        u.security_inspection_position,u.work_rewards_number,u.work_penalties_number,u.tags,
201 203
         d.dept_name, d.leader from sys_user u
202 204
         left join sys_dept d on u.dept_id = d.dept_id
203 205
         where u.del_flag = '0'
@@ -566,6 +568,9 @@
566 568
         <if test="workPenaltiesNumber != null">
567 569
             work_penalties_number,
568 570
         </if>
571
+        <if test="tags != null and tags != ''">
572
+            tags,
573
+        </if>
569 574
         create_time
570 575
         )values(
571 576
         <if test="userId != null and userId != ''">#{userId},</if>
@@ -694,6 +699,9 @@
694 699
         <if test="workPenaltiesNumber != null">
695 700
             #{workPenaltiesNumber},
696 701
         </if>
702
+        <if test="tags != null and tags != ''">
703
+            #{tags},
704
+        </if>
697 705
         sysdate()
698 706
         )
699 707
     </insert>
@@ -826,6 +834,9 @@
826 834
             <if test="workPenaltiesNumber != null ">
827 835
                 work_penalties_number = #{workPenaltiesNumber},
828 836
             </if>
837
+            <if test="tags != null">
838
+                tags = #{tags},
839
+            </if>
829 840
             update_time = sysdate()
830 841
         </set>
831 842
         where user_id = #{userId}