chenshudong 1 kuukausi sitten
vanhempi
commit
318bb415a4

+ 24 - 0
airport-equipment/src/main/java/com/sundot/airport/equipment/domain/EquipmentLedger.java

@@ -151,6 +151,14 @@ public class EquipmentLedger extends BaseEntity {
151 151
     @TableField(exist = false)
152 152
     private List<BaseAttachment> baseAttachmentList;
153 153
 
154
+    /** 查询定/自检小组人员ID*/
155
+    @TableField(exist = false)
156
+    private String inspectionTeamUserId;
157
+
158
+    /** 查询定/自检小组人员ID名称*/
159
+    @TableField(exist = false)
160
+    private String inspectionTeamUserName;
161
+
154 162
     public void setTenantId(String tenantId) {
155 163
         this.tenantId = tenantId;
156 164
     }
@@ -383,6 +391,22 @@ public class EquipmentLedger extends BaseEntity {
383 391
         this.baseAttachmentList = baseAttachmentList;
384 392
     }
385 393
 
394
+    public String getInspectionTeamUserId() {
395
+        return inspectionTeamUserId;
396
+    }
397
+
398
+    public void setInspectionTeamUserId(String inspectionTeamUserId) {
399
+        this.inspectionTeamUserId = inspectionTeamUserId;
400
+    }
401
+
402
+    public String getInspectionTeamUserName() {
403
+        return inspectionTeamUserName;
404
+    }
405
+
406
+    public void setInspectionTeamUserName(String inspectionTeamUserName) {
407
+        this.inspectionTeamUserName = inspectionTeamUserName;
408
+    }
409
+
386 410
     @Override
387 411
     public String toString() {
388 412
         return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)

+ 12 - 0
airport-equipment/src/main/resources/mapper/equipment/EquipmentLedgerMapper.xml

@@ -121,6 +121,18 @@
121 121
             <if test="inspectionTeamMember2Name != null  and inspectionTeamMember2Name != ''">and
122 122
                 inspection_team_member2_name like concat('%', #{inspectionTeamMember2Name}, '%')
123 123
             </if>
124
+            <if test="inspectionTeamUserId != null ">and (
125
+                inspection_team_leader_id = #{inspectionTeamUserId} or
126
+                inspection_team_member1_id = #{inspectionTeamUserId} or
127
+                inspection_team_member2_id = #{inspectionTeamUserId}
128
+                )
129
+            </if>
130
+            <if test="inspectionTeamUserName != null  and inspectionTeamUserName != ''">and (
131
+                inspection_team_leader_name like concat('%', #{inspectionTeamUserName}, '%') or
132
+                inspection_team_member1_name like concat('%', #{inspectionTeamUserName}, '%') or
133
+                inspection_team_member2_name like concat('%', #{inspectionTeamUserName}, '%')
134
+                )
135
+            </if>
124 136
         </where>
125 137
         order by create_time desc
126 138
     </select>