边带管理下拉选

This commit is contained in:
cwchen 2024-03-25 17:51:42 +08:00
parent ae0c651bdc
commit 12e3d337a4
2 changed files with 9 additions and 5 deletions

View File

@ -180,7 +180,13 @@
LEFT JOIN sys_dict sd ON sd.dict_code = tbd.devic_type LEFT JOIN sys_dict sd ON sd.dict_code = tbd.devic_type
LEFT JOIN sys_dict sd2 ON sd2.dict_code = tbd.status LEFT JOIN sys_dict sd2 ON sd2.dict_code = tbd.status
LEFT JOIN sys_area sa ON tbd.area_id = sa.area_id LEFT JOIN sys_area sa ON tbd.area_id = sa.area_id
WHERE tbd.bd_id = #{id} <where>
<if test="keyWord!=null and keyWord!=''">
AND (
INSTR(tpb.bd_name,#{keyWord}) > 0
)
</if>
</where>
</select> </select>
<!--边带设备编码是否重复--> <!--边带设备编码是否重复-->
<select id="isDeviceCodeExist" resultType="java.lang.Integer"> <select id="isDeviceCodeExist" resultType="java.lang.Integer">

View File

@ -93,9 +93,7 @@
area_name AS name area_name AS name
FROM sys_area FROM sys_area
<where> <where>
<if test="bidCode !=null and bidCode!=''"> bid_code = #{bidCode}
AND bid_code = #{bidCode}
</if>
<if test="gtId !=null and gtId!=''"> <if test="gtId !=null and gtId!=''">
AND gt_id = #{gtId} AND gt_id = #{gtId}
</if> </if>
@ -103,7 +101,7 @@
</select> </select>
<!--边带下拉选--> <!--边带下拉选-->
<select id="getBdLists" resultType="com.securitycontrol.entity.system.vo.SelectVo"> <select id="getBdLists" resultType="com.securitycontrol.entity.system.vo.SelectVo">
SELECT id,bd_name AS name,bd_code AS bidCode,gt_id AS gtId SELECT id,bd_name AS name,bid_code AS bidCode,gt_id AS gtId
FROM tb_pro_bd FROM tb_pro_bd
<where> <where>
<if test="bidCode!=null and bidCode !=''"> <if test="bidCode!=null and bidCode !=''">