|
|
|
@ -2,38 +2,39 @@
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
|
|
|
<mapper namespace="com.shxy.xymanager_dao.dao.View_Dy_Line_Tower_TerminalsDao">
|
|
|
|
|
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals">
|
|
|
|
|
<result column="id" jdbcType="INTEGER" property="id" />
|
|
|
|
|
<result column="dy_id" jdbcType="INTEGER" property="dyId" />
|
|
|
|
|
<result column="dy_name" jdbcType="VARCHAR" property="dyName" />
|
|
|
|
|
<result column="line_id" jdbcType="INTEGER" property="lineId" />
|
|
|
|
|
<result column="line_name" jdbcType="VARCHAR" property="lineName" />
|
|
|
|
|
<result column="line_bs_manufacturer" jdbcType="VARCHAR" property="lineBsManufacturer" />
|
|
|
|
|
<result column="tower_id" jdbcType="INTEGER" property="towerId" />
|
|
|
|
|
<result column="tower_name" jdbcType="VARCHAR" property="towerName" />
|
|
|
|
|
<result column="address" jdbcType="VARCHAR" property="address" />
|
|
|
|
|
<result column="order" jdbcType="INTEGER" property="order" />
|
|
|
|
|
<result column="cmdid" jdbcType="VARCHAR" property="cmdid" />
|
|
|
|
|
<result column="org_id" jdbcType="SMALLINT" property="orgId" />
|
|
|
|
|
<result column="equip_name" jdbcType="VARCHAR" property="equipName" />
|
|
|
|
|
<result column="display_name" jdbcType="VARCHAR" property="displayName" />
|
|
|
|
|
<result column="model" jdbcType="VARCHAR" property="model" />
|
|
|
|
|
<result column="essential_info_version" jdbcType="VARCHAR" property="essentialInfoVersion" />
|
|
|
|
|
<result column="has_pan" jdbcType="TINYINT" property="hasPan" />
|
|
|
|
|
<result column="bs_manufacturer" jdbcType="VARCHAR" property="bsManufacturer" />
|
|
|
|
|
<result column="bs_production_date" jdbcType="DATE" property="bsProductionDate" />
|
|
|
|
|
<result column="bs_identifier" jdbcType="VARCHAR" property="bsIdentifier" />
|
|
|
|
|
<result column="latitude" jdbcType="DOUBLE" property="latitude" />
|
|
|
|
|
<result column="longitude" jdbcType="DOUBLE" property="longitude" />
|
|
|
|
|
<result column="status" jdbcType="INTEGER" property="status" />
|
|
|
|
|
<result column="protocol" jdbcType="INTEGER" property="protocol" />
|
|
|
|
|
<result column="sim" jdbcType="VARCHAR" property="sim" />
|
|
|
|
|
<result column="working_date" jdbcType="DATE" property="workingDate" />
|
|
|
|
|
<result column="net_type" jdbcType="TINYINT" property="netType" />
|
|
|
|
|
<result column="dev_type" jdbcType="TINYINT" property="devType" />
|
|
|
|
|
<result column="phase" jdbcType="VARCHAR" property="phase" />
|
|
|
|
|
<result column="equipment_type" jdbcType="VARCHAR" property="equipmentType" />
|
|
|
|
|
<result column="last_heartbeat" jdbcType="BIGINT" property="lastHeartbeat" />
|
|
|
|
|
<result column="termcount" jdbcType="INTEGER" property="termcount" />
|
|
|
|
|
<result column="id" jdbcType="INTEGER" property="id"/>
|
|
|
|
|
<result column="dy_id" jdbcType="INTEGER" property="dyId"/>
|
|
|
|
|
<result column="dy_name" jdbcType="VARCHAR" property="dyName"/>
|
|
|
|
|
<result column="dy_create_time" jdbcType="TIMESTAMP" property="dyCreateTime"/>
|
|
|
|
|
<result column="dy_update_time" jdbcType="TIMESTAMP" property="dyUpdateTime"/>
|
|
|
|
|
<result column="line_id" jdbcType="INTEGER" property="lineId"/>
|
|
|
|
|
<result column="line_name" jdbcType="VARCHAR" property="lineName"/>
|
|
|
|
|
<result column="line_bs_manufacturer" jdbcType="VARCHAR" property="lineBsManufacturer"/>
|
|
|
|
|
<result column="tower_id" jdbcType="INTEGER" property="towerId"/>
|
|
|
|
|
<result column="tower_name" jdbcType="VARCHAR" property="towerName"/>
|
|
|
|
|
<result column="address" jdbcType="VARCHAR" property="address"/>
|
|
|
|
|
<result column="order" jdbcType="INTEGER" property="order"/>
|
|
|
|
|
<result column="cmdid" jdbcType="VARCHAR" property="cmdid"/>
|
|
|
|
|
<result column="org_id" jdbcType="SMALLINT" property="orgId"/>
|
|
|
|
|
<result column="equip_name" jdbcType="VARCHAR" property="equipName"/>
|
|
|
|
|
<result column="display_name" jdbcType="VARCHAR" property="displayName"/>
|
|
|
|
|
<result column="model" jdbcType="VARCHAR" property="model"/>
|
|
|
|
|
<result column="essential_info_version" jdbcType="VARCHAR" property="essentialInfoVersion"/>
|
|
|
|
|
<result column="has_pan" jdbcType="TINYINT" property="hasPan"/>
|
|
|
|
|
<result column="bs_manufacturer" jdbcType="VARCHAR" property="bsManufacturer"/>
|
|
|
|
|
<result column="bs_production_date" jdbcType="DATE" property="bsProductionDate"/>
|
|
|
|
|
<result column="bs_identifier" jdbcType="VARCHAR" property="bsIdentifier"/>
|
|
|
|
|
<result column="latitude" jdbcType="DOUBLE" property="latitude"/>
|
|
|
|
|
<result column="longitude" jdbcType="DOUBLE" property="longitude"/>
|
|
|
|
|
<result column="status" jdbcType="INTEGER" property="status"/>
|
|
|
|
|
<result column="protocol" jdbcType="INTEGER" property="protocol"/>
|
|
|
|
|
<result column="sim" jdbcType="VARCHAR" property="sim"/>
|
|
|
|
|
<result column="working_date" jdbcType="DATE" property="workingDate"/>
|
|
|
|
|
<result column="net_type" jdbcType="TINYINT" property="netType"/>
|
|
|
|
|
<result column="dev_type" jdbcType="TINYINT" property="devType"/>
|
|
|
|
|
<result column="phase" jdbcType="VARCHAR" property="phase"/>
|
|
|
|
|
<result column="equipment_type" jdbcType="VARCHAR" property="equipmentType"/>
|
|
|
|
|
<result column="last_heartbeat" jdbcType="BIGINT" property="lastHeartbeat"/>
|
|
|
|
|
</resultMap>
|
|
|
|
|
<sql id="Example_Where_Clause">
|
|
|
|
|
<where>
|
|
|
|
@ -53,36 +54,8 @@
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Example_Where_Clause_Permission">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="and">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="or" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
or ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
or ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
or ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
or ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
@ -111,7 +84,8 @@
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
and ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
@ -123,37 +97,24 @@
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<sql id="Base_Column_List">
|
|
|
|
|
id, dy_id, dy_name, line_id, line_name, line_bs_manufacturer, tower_id, tower_name,
|
|
|
|
|
address, `order`, cmdid, org_id, equip_name, display_name, model, essential_info_version,
|
|
|
|
|
has_pan, bs_manufacturer, bs_production_date, bs_identifier, latitude, longitude,
|
|
|
|
|
status, protocol, sim, working_date, net_type, dev_type, phase, equipment_type, last_heartbeat,count(id) as termcount
|
|
|
|
|
|
|
|
|
|
id, dy_id, dy_name, dy_create_time, dy_update_time, line_id, line_name, line_bs_manufacturer,
|
|
|
|
|
tower_id, tower_name, address, `order`, cmdid, org_id, equip_name, display_name, model,
|
|
|
|
|
essential_info_version, has_pan, bs_manufacturer, bs_production_date, bs_identifier,
|
|
|
|
|
latitude, longitude, status, protocol, sim, working_date, net_type, dev_type, phase,
|
|
|
|
|
equipment_type, last_heartbeat
|
|
|
|
|
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample" resultMap="BaseResultMap">
|
|
|
|
|
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample"
|
|
|
|
|
resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
from v_dy_line_tower_terminals
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectByPermission" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample" resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List" />
|
|
|
|
|
from v_dy_line_tower_terminals
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause_Permission" />
|
|
|
|
|
</if>
|
|
|
|
|
<if test="groupByClause != null">
|
|
|
|
|
group by ${groupByClause}
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
@ -162,32 +123,36 @@
|
|
|
|
|
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample">
|
|
|
|
|
delete from v_dy_line_tower_terminals
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</delete>
|
|
|
|
|
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals">
|
|
|
|
|
|
|
|
|
|
insert into v_dy_line_tower_terminals (id, dy_id, dy_name,
|
|
|
|
|
line_id, line_name, line_bs_manufacturer,
|
|
|
|
|
tower_id, tower_name, address,
|
|
|
|
|
order, cmdid, org_id,
|
|
|
|
|
equip_name, display_name, model,
|
|
|
|
|
essential_info_version, has_pan, bs_manufacturer,
|
|
|
|
|
bs_production_date, bs_identifier, latitude,
|
|
|
|
|
longitude, status, protocol,
|
|
|
|
|
sim, working_date, net_type,
|
|
|
|
|
dev_type, phase, equipment_type,
|
|
|
|
|
last_heartbeat)
|
|
|
|
|
dy_create_time, dy_update_time, line_id,
|
|
|
|
|
line_name, line_bs_manufacturer, tower_id,
|
|
|
|
|
tower_name, address, `order`,
|
|
|
|
|
cmdid, org_id, equip_name,
|
|
|
|
|
display_name, model, essential_info_version,
|
|
|
|
|
has_pan, bs_manufacturer, bs_production_date,
|
|
|
|
|
bs_identifier, latitude, longitude,
|
|
|
|
|
status, protocol, sim,
|
|
|
|
|
working_date, net_type, dev_type,
|
|
|
|
|
phase, equipment_type, last_heartbeat
|
|
|
|
|
)
|
|
|
|
|
values (#{id,jdbcType=INTEGER}, #{dyId,jdbcType=INTEGER}, #{dyName,jdbcType=VARCHAR},
|
|
|
|
|
#{lineId,jdbcType=INTEGER}, #{lineName,jdbcType=VARCHAR}, #{lineBsManufacturer,jdbcType=VARCHAR},
|
|
|
|
|
#{towerId,jdbcType=INTEGER}, #{towerName,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR},
|
|
|
|
|
#{order,jdbcType=INTEGER}, #{cmdid,jdbcType=VARCHAR}, #{orgId,jdbcType=SMALLINT},
|
|
|
|
|
#{equipName,jdbcType=VARCHAR}, #{displayName,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR},
|
|
|
|
|
#{essentialInfoVersion,jdbcType=VARCHAR}, #{hasPan,jdbcType=TINYINT}, #{bsManufacturer,jdbcType=VARCHAR},
|
|
|
|
|
#{bsProductionDate,jdbcType=DATE}, #{bsIdentifier,jdbcType=VARCHAR}, #{latitude,jdbcType=DOUBLE},
|
|
|
|
|
#{longitude,jdbcType=DOUBLE}, #{status,jdbcType=INTEGER}, #{protocol,jdbcType=INTEGER},
|
|
|
|
|
#{sim,jdbcType=VARCHAR}, #{workingDate,jdbcType=DATE}, #{netType,jdbcType=TINYINT},
|
|
|
|
|
#{devType,jdbcType=TINYINT}, #{phase,jdbcType=VARCHAR}, #{equipmentType,jdbcType=VARCHAR},
|
|
|
|
|
#{lastHeartbeat,jdbcType=BIGINT})
|
|
|
|
|
#{dyCreateTime,jdbcType=TIMESTAMP}, #{dyUpdateTime,jdbcType=TIMESTAMP}, #{lineId,jdbcType=INTEGER},
|
|
|
|
|
#{lineName,jdbcType=VARCHAR}, #{lineBsManufacturer,jdbcType=VARCHAR}, #{towerId,jdbcType=INTEGER},
|
|
|
|
|
#{towerName,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{order,jdbcType=INTEGER},
|
|
|
|
|
#{cmdid,jdbcType=VARCHAR}, #{orgId,jdbcType=SMALLINT}, #{equipName,jdbcType=VARCHAR},
|
|
|
|
|
#{displayName,jdbcType=VARCHAR}, #{model,jdbcType=VARCHAR}, #{essentialInfoVersion,jdbcType=VARCHAR},
|
|
|
|
|
#{hasPan,jdbcType=TINYINT}, #{bsManufacturer,jdbcType=VARCHAR}, #{bsProductionDate,jdbcType=DATE},
|
|
|
|
|
#{bsIdentifier,jdbcType=VARCHAR}, #{latitude,jdbcType=DOUBLE}, #{longitude,jdbcType=DOUBLE},
|
|
|
|
|
#{status,jdbcType=INTEGER}, #{protocol,jdbcType=INTEGER}, #{sim,jdbcType=VARCHAR},
|
|
|
|
|
#{workingDate,jdbcType=DATE}, #{netType,jdbcType=TINYINT}, #{devType,jdbcType=TINYINT},
|
|
|
|
|
#{phase,jdbcType=VARCHAR}, #{equipmentType,jdbcType=VARCHAR}, #{lastHeartbeat,jdbcType=BIGINT}
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals">
|
|
|
|
|
insert into v_dy_line_tower_terminals
|
|
|
|
@ -201,6 +166,12 @@
|
|
|
|
|
<if test="dyName != null">
|
|
|
|
|
dy_name,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="dyCreateTime != null">
|
|
|
|
|
dy_create_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="dyUpdateTime != null">
|
|
|
|
|
dy_update_time,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lineId != null">
|
|
|
|
|
line_id,
|
|
|
|
|
</if>
|
|
|
|
@ -220,7 +191,7 @@
|
|
|
|
|
address,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="order != null">
|
|
|
|
|
order,
|
|
|
|
|
`order`,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="cmdid != null">
|
|
|
|
|
cmdid,
|
|
|
|
@ -296,6 +267,12 @@
|
|
|
|
|
<if test="dyName != null">
|
|
|
|
|
#{dyName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="dyCreateTime != null">
|
|
|
|
|
#{dyCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="dyUpdateTime != null">
|
|
|
|
|
#{dyUpdateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lineId != null">
|
|
|
|
|
#{lineId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
@ -382,10 +359,11 @@
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample" resultType="java.lang.Long">
|
|
|
|
|
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample"
|
|
|
|
|
resultType="java.lang.Long">
|
|
|
|
|
select count(*) from v_dy_line_tower_terminals
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause" />
|
|
|
|
|
<include refid="Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
|
|
@ -400,6 +378,12 @@
|
|
|
|
|
<if test="record.dyName != null">
|
|
|
|
|
dy_name = #{record.dyName,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.dyCreateTime != null">
|
|
|
|
|
dy_create_time = #{record.dyCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.dyUpdateTime != null">
|
|
|
|
|
dy_update_time = #{record.dyUpdateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.lineId != null">
|
|
|
|
|
line_id = #{record.lineId,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
@ -419,7 +403,7 @@
|
|
|
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.order != null">
|
|
|
|
|
order = #{record.order,jdbcType=INTEGER},
|
|
|
|
|
`order`= #{record.order,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="record.cmdid != null">
|
|
|
|
|
cmdid = #{record.cmdid,jdbcType=VARCHAR},
|
|
|
|
@ -486,7 +470,7 @@
|
|
|
|
|
</if>
|
|
|
|
|
</set>
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
<update id="updateByExample" parameterType="map">
|
|
|
|
@ -494,13 +478,15 @@
|
|
|
|
|
set id = #{record.id,jdbcType=INTEGER},
|
|
|
|
|
dy_id = #{record.dyId,jdbcType=INTEGER},
|
|
|
|
|
dy_name = #{record.dyName,jdbcType=VARCHAR},
|
|
|
|
|
dy_create_time = #{record.dyCreateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
dy_update_time = #{record.dyUpdateTime,jdbcType=TIMESTAMP},
|
|
|
|
|
line_id = #{record.lineId,jdbcType=INTEGER},
|
|
|
|
|
line_name = #{record.lineName,jdbcType=VARCHAR},
|
|
|
|
|
line_bs_manufacturer = #{record.lineBsManufacturer,jdbcType=VARCHAR},
|
|
|
|
|
tower_id = #{record.towerId,jdbcType=INTEGER},
|
|
|
|
|
tower_name = #{record.towerName,jdbcType=VARCHAR},
|
|
|
|
|
address = #{record.address,jdbcType=VARCHAR},
|
|
|
|
|
order = #{record.order,jdbcType=INTEGER},
|
|
|
|
|
'order' = #{record.order,jdbcType=INTEGER},
|
|
|
|
|
cmdid = #{record.cmdid,jdbcType=VARCHAR},
|
|
|
|
|
org_id = #{record.orgId,jdbcType=SMALLINT},
|
|
|
|
|
equip_name = #{record.equipName,jdbcType=VARCHAR},
|
|
|
|
@ -523,8 +509,56 @@
|
|
|
|
|
equipment_type = #{record.equipmentType,jdbcType=VARCHAR},
|
|
|
|
|
last_heartbeat = #{record.lastHeartbeat,jdbcType=BIGINT}
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
|
|
|
</if>
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<sql id="Example_Where_Clause_Permission">
|
|
|
|
|
<where>
|
|
|
|
|
<foreach collection="oredCriteria" item="criteria" separator="and">
|
|
|
|
|
<if test="criteria.valid">
|
|
|
|
|
<trim prefix="(" prefixOverrides="or" suffix=")">
|
|
|
|
|
<foreach collection="criteria.criteria" item="criterion">
|
|
|
|
|
<choose>
|
|
|
|
|
<when test="criterion.noValue">
|
|
|
|
|
or ${criterion.condition}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.singleValue">
|
|
|
|
|
or ${criterion.condition} #{criterion.value}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.betweenValue">
|
|
|
|
|
or ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
|
|
</when>
|
|
|
|
|
<when test="criterion.listValue">
|
|
|
|
|
or ${criterion.condition}
|
|
|
|
|
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
|
|
|
|
separator=",">
|
|
|
|
|
#{listItem}
|
|
|
|
|
</foreach>
|
|
|
|
|
</when>
|
|
|
|
|
</choose>
|
|
|
|
|
</foreach>
|
|
|
|
|
</trim>
|
|
|
|
|
</if>
|
|
|
|
|
</foreach>
|
|
|
|
|
</where>
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByPermission" parameterType="com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample"
|
|
|
|
|
resultMap="BaseResultMap">
|
|
|
|
|
select
|
|
|
|
|
<if test="distinct">
|
|
|
|
|
distinct
|
|
|
|
|
</if>
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
from v_dy_line_tower_terminals
|
|
|
|
|
<if test="_parameter != null">
|
|
|
|
|
<include refid="Example_Where_Clause_Permission"/>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="groupByClause != null">
|
|
|
|
|
group by ${groupByClause}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="orderByClause != null">
|
|
|
|
|
order by ${orderByClause}
|
|
|
|
|
</if>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|