|
@@ -402,6 +402,9 @@
|
|
|
on rpt.PORT_TYPE_ID=rp.PORT_TYPE_ID
|
|
|
where rp.DELETED=0)
|
|
|
<where>
|
|
|
+ <if test="con != null and con != ''.toString()">
|
|
|
+ and "portName" || "portAllName" || "portTypeName" like concat('%',concat(#{con},'%'))
|
|
|
+ </if>
|
|
|
<if test="portName != null">
|
|
|
and "portName" in
|
|
|
<foreach collection="portName" item="item" open="(" separator="," close=")">
|
|
@@ -461,6 +464,14 @@
|
|
|
</if>
|
|
|
order by "value"
|
|
|
</select>
|
|
|
-
|
|
|
+ <select id="countPortByName" resultType="java.lang.Integer">
|
|
|
+ select
|
|
|
+ count(rp.PORT_ID)
|
|
|
+ from RMS_PORT rp
|
|
|
+ left join RMS_PORT_TYPE rpt
|
|
|
+ on rpt.PORT_TYPE_ID=rp.PORT_TYPE_ID
|
|
|
+ where rp.DELETED=0 AND
|
|
|
+ (rp.PORT_NAME = #{port.portName} or rp.PORT_ALL_NAME = #{port.portAllName})
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|