wangxx před 1 měsícem
rodič
revize
b957eb6279

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

@@ -131,6 +131,11 @@ public class SysUser extends BaseEntity {
131 131
     private Long roleId;
132 132
 
133 133
     /**
134
+     * 角色名称(模糊查询)
135
+     */
136
+    private String roleName;
137
+
138
+    /**
134 139
      * 身份证号
135 140
      */
136 141
     @Excel(name = "身份证号", cellType = ColumnType.TEXT)
@@ -540,6 +545,14 @@ public class SysUser extends BaseEntity {
540 545
         this.roleId = roleId;
541 546
     }
542 547
 
548
+    public String getRoleName() {
549
+        return roleName;
550
+    }
551
+
552
+    public void setRoleName(String roleName) {
553
+        this.roleName = roleName;
554
+    }
555
+
543 556
     public String getCardNumber() {
544 557
         return cardNumber;
545 558
     }

+ 42 - 0
airport-item/src/main/java/com/sundot/airport/item/domain/ItemSeizureRecord.java

@@ -214,6 +214,24 @@ public class ItemSeizureRecord extends BaseEntity {
214 214
     private String inspectUserName;
215 215
 
216 216
     /**
217
+     * 开机指令(0-指令,1-非指令,默认 0)
218
+     */
219
+    @Excel(name = "开机指令", readConverterExp = "0=指令,1=非指令")
220
+    private Integer powerOnInstruction;
221
+
222
+    /**
223
+     * X 光开机员 ID(当开机指令为非指令时必填)
224
+     */
225
+    @Excel(name = "X 光开机员 ID")
226
+    private Long xrayOperatorId;
227
+
228
+    /**
229
+     * X 光开机员名称
230
+     */
231
+    @Excel(name = "X 光开机员名称")
232
+    private String xrayOperatorName;
233
+
234
+    /**
217 235
      * 流程状态 0草稿,1审核中,2 人工终止 ,3归档
218 236
      */
219 237
     @Excel(name = "流程状态 0草稿,1审核中,2 人工终止 ,3归档")
@@ -552,6 +570,30 @@ public class ItemSeizureRecord extends BaseEntity {
552 570
         this.itemSeizureItemsList = itemSeizureItemsList;
553 571
     }
554 572
 
573
+    public Integer getPowerOnInstruction() {
574
+        return powerOnInstruction;
575
+    }
576
+
577
+    public void setPowerOnInstruction(Integer powerOnInstruction) {
578
+        this.powerOnInstruction = powerOnInstruction;
579
+    }
580
+
581
+    public Long getXrayOperatorId() {
582
+        return xrayOperatorId;
583
+    }
584
+
585
+    public void setXrayOperatorId(Long xrayOperatorId) {
586
+        this.xrayOperatorId = xrayOperatorId;
587
+    }
588
+
589
+    public String getXrayOperatorName() {
590
+        return xrayOperatorName;
591
+    }
592
+
593
+    public void setXrayOperatorName(String xrayOperatorName) {
594
+        this.xrayOperatorName = xrayOperatorName;
595
+    }
596
+
555 597
     @Override
556 598
     public String toString() {
557 599
         return "ItemSeizureRecord{" +

+ 16 - 1
airport-item/src/main/resources/mapper/item/ItemSeizureRecordMapper.xml

@@ -47,6 +47,9 @@
47 47
         <result property="attendanceBrigadeName" column="attendance_brigade_name"/>
48 48
         <result property="inspectBrigadeId" column="inspect_brigade_id"/>
49 49
         <result property="inspectBrigadeName" column="inspect_brigade_name"/>
50
+        <result property="powerOnInstruction" column="power_on_instruction"/>
51
+        <result property="xrayOperatorId" column="xray_operator_id"/>
52
+        <result property="xrayOperatorName" column="xray_operator_name"/>
50 53
     </resultMap>
51 54
 
52 55
     <resultMap type="ItemSeizureRecord" id="ItemSeizureRecordExportResult" extends="ItemSeizureRecordResult">
@@ -121,7 +124,10 @@
121 124
                attendance_brigade_id,
122 125
                attendance_brigade_name,
123 126
                inspect_brigade_id,
124
-               inspect_brigade_name
127
+               inspect_brigade_name,
128
+               power_on_instruction,
129
+               xray_operator_id,
130
+               xray_operator_name
125 131
         from item_seizure_record
126 132
     </sql>
127 133
 
@@ -388,6 +394,9 @@
388 394
             <if test="attendanceBrigadeName != null">attendance_brigade_name,</if>
389 395
             <if test="inspectBrigadeId != null">inspect_brigade_id,</if>
390 396
             <if test="inspectBrigadeName != null">inspect_brigade_name,</if>
397
+            <if test="powerOnInstruction != null">power_on_instruction,</if>
398
+            <if test="xrayOperatorId != null">xray_operator_id,</if>
399
+            <if test="xrayOperatorName != null and xrayOperatorName != ''">xray_operator_name,</if>
391 400
         </trim>
392 401
         <trim prefix="values (" suffix=")" suffixOverrides=",">
393 402
             <if test="tenantId != null">#{tenantId},</if>
@@ -433,6 +442,9 @@
433 442
             <if test="attendanceBrigadeName != null">#{attendanceBrigadeName},</if>
434 443
             <if test="inspectBrigadeId != null">#{inspectBrigadeId},</if>
435 444
             <if test="inspectBrigadeName != null">#{inspectBrigadeName},</if>
445
+            <if test="powerOnInstruction != null">#{powerOnInstruction},</if>
446
+            <if test="xrayOperatorId != null">#{xrayOperatorId},</if>
447
+            <if test="xrayOperatorName != null and xrayOperatorName != ''">#{xrayOperatorName},</if>
436 448
         </trim>
437 449
     </insert>
438 450
 
@@ -492,6 +504,9 @@
492 504
             <if test="attendanceBrigadeName != null">attendance_brigade_name = #{attendanceBrigadeName},</if>
493 505
             <if test="inspectBrigadeId != null">inspect_brigade_id = #{inspectBrigadeId},</if>
494 506
             <if test="inspectBrigadeName != null">inspect_brigade_name = #{inspectBrigadeName},</if>
507
+            <if test="powerOnInstruction != null">power_on_instruction = #{powerOnInstruction},</if>
508
+            <if test="xrayOperatorId != null">xray_operator_id= #{xrayOperatorId},</if>
509
+            <if test="xrayOperatorName != null and xrayOperatorName != ''">xray_operator_name = #{xrayOperatorName},</if>
495 510
         </trim>
496 511
         where id = #{id}
497 512
     </update>

+ 8 - 0
airport-system/src/main/resources/mapper/system/SysUserMapper.xml

@@ -214,6 +214,14 @@
214 214
             AND (u.dept_id = #{deptId} OR u.dept_id IN ( SELECT t.dept_id FROM sys_dept t WHERE find_in_set(#{deptId},
215 215
             ancestors) ))
216 216
         </if>
217
+        <!-- 角色查询 -->
218
+        <if test="roleId != null and roleId != 0">
219
+            AND u.user_id IN (SELECT user_id FROM sys_user_role WHERE role_id= #{roleId})
220
+        </if>
221
+        <!-- 角色名称模糊查询 -->
222
+        <if test="roleName != null and roleName != ''">
223
+            AND u.user_id IN (SELECT user_id FROM sys_user_role sur INNER JOIN sys_role sr ON sur.role_id = sr.role_id WHERE sr.role_name like concat('%', #{roleName}, '%'))
224
+        </if>
217 225
         <if test="cardNumber != null and cardNumber != ''">
218 226
             AND u.card_number like concat('%', #{cardNumber}, '%')
219 227
         </if>