Przeglądaj źródła

查询字段补充

车车 5 miesięcy temu
rodzic
commit
af009735f9

+ 4 - 0
ktg-iscs/src/main/java/com/ktg/iscs/domain/IsLockCabinet.java

@@ -68,4 +68,8 @@ public class IsLockCabinet extends BaseBean
     @TableField(exist = false)
     private String serialNumber;
 
+    @ApiModelProperty(value = "岗位名称")
+    @TableField(exist = false)
+    private String workstationName;
+
 }

+ 3 - 1
ktg-iscs/src/main/resources/mapper/IsLockCabinetMapper.xml

@@ -7,10 +7,12 @@
     <select id="getIsLockCabinetPage" resultType="com.ktg.iscs.domain.IsLockCabinet">
         SELECT
             c.*,
-            h.serial_number
+            h.serial_number,
+            w.workstation_name
         FROM
             is_lock_cabinet c
                 LEFT JOIN is_hardware h ON h.id = c.hardware_id
+                LEFT JOIN is_workstation w ON w.workstation_id = c.workstation_id
         <where>
             <if test="isLockCabinet.cabinetName != null and isLockCabinet.cabinetName != ''">
                 AND c.cabinet_name like concat('%', #{isLockCabinet.cabinetName}, '%')