|
@@ -368,371 +368,4 @@
|
|
|
FINISHED_MAN = #{finishedMan,jdbcType=VARCHAR}
|
|
|
where ID = #{id,jdbcType=INTEGER}
|
|
|
</update>
|
|
|
- <resultMap id="BaseResultMap" type="com.mvc.entity.TSetup">
|
|
|
- <id column="ID" jdbcType="INTEGER" property="id" />
|
|
|
- <result column="SETUP_ID" jdbcType="VARCHAR" property="setupId" />
|
|
|
- <result column="STATION_CODE" jdbcType="VARCHAR" property="stationCode" />
|
|
|
- <result column="STATION_NAME" jdbcType="VARCHAR" property="stationName" />
|
|
|
- <result column="DEVICE_SN" jdbcType="VARCHAR" property="deviceSn" />
|
|
|
- <result column="SETUP_TIME" jdbcType="TIMESTAMP" property="setupTime" />
|
|
|
- <result column="SETUP_MAN" jdbcType="VARCHAR" property="setupMan" />
|
|
|
- <result column="FLOOR_RSRP" jdbcType="INTEGER" property="floorRsrp" />
|
|
|
- <result column="STATION_CONTACT" jdbcType="VARCHAR" property="stationContact" />
|
|
|
- <result column="STATION_ADDRESS" jdbcType="VARCHAR" property="stationAddress" />
|
|
|
- <result column="STATION_LON" jdbcType="DECIMAL" property="stationLon" />
|
|
|
- <result column="STATION_LAT" jdbcType="DECIMAL" property="stationLat" />
|
|
|
- <result column="FINISHED_FLAG" jdbcType="CHAR" property="finishedFlag" />
|
|
|
- <result column="FINISHED_TIME" jdbcType="DATE" property="finishedTime" />
|
|
|
- <result column="FINISHED_MAN" jdbcType="VARCHAR" property="finishedMan" />
|
|
|
- </resultMap>
|
|
|
- <sql id="Example_Where_Clause">
|
|
|
- <where>
|
|
|
- <foreach collection="oredCriteria" item="criteria" separator="or">
|
|
|
- <if test="criteria.valid">
|
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
|
- <choose>
|
|
|
- <when test="criterion.noValue">
|
|
|
- and ${criterion.condition}
|
|
|
- </when>
|
|
|
- <when test="criterion.singleValue">
|
|
|
- and ${criterion.condition} #{criterion.value}
|
|
|
- </when>
|
|
|
- <when test="criterion.betweenValue">
|
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
- </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="Update_By_Example_Where_Clause">
|
|
|
- <where>
|
|
|
- <foreach collection="example.oredCriteria" item="criteria" separator="or">
|
|
|
- <if test="criteria.valid">
|
|
|
- <trim prefix="(" prefixOverrides="and" suffix=")">
|
|
|
- <foreach collection="criteria.criteria" item="criterion">
|
|
|
- <choose>
|
|
|
- <when test="criterion.noValue">
|
|
|
- and ${criterion.condition}
|
|
|
- </when>
|
|
|
- <when test="criterion.singleValue">
|
|
|
- and ${criterion.condition} #{criterion.value}
|
|
|
- </when>
|
|
|
- <when test="criterion.betweenValue">
|
|
|
- and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
|
|
- </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="Base_Column_List">
|
|
|
- ID, SETUP_ID, STATION_CODE, STATION_NAME, DEVICE_SN, SETUP_TIME, SETUP_MAN, FLOOR_RSRP,
|
|
|
- STATION_CONTACT, STATION_ADDRESS, STATION_LON, STATION_LAT, FINISHED_FLAG, FINISHED_TIME,
|
|
|
- FINISHED_MAN
|
|
|
- </sql>
|
|
|
- <select id="selectByExample" parameterType="com.mvc.entity.TSetupExample" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
- <if test="distinct">
|
|
|
- distinct
|
|
|
- </if>
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from t_setup
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- <if test="orderByClause != null">
|
|
|
- order by ${orderByClause}
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
- select
|
|
|
- <include refid="Base_Column_List" />
|
|
|
- from t_setup
|
|
|
- where ID = #{id,jdbcType=INTEGER}
|
|
|
- </select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
|
|
- delete from t_setup
|
|
|
- where ID = #{id,jdbcType=INTEGER}
|
|
|
- </delete>
|
|
|
- <delete id="deleteByExample" parameterType="com.mvc.entity.TSetupExample">
|
|
|
- delete from t_setup
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.mvc.entity.TSetup">
|
|
|
- insert into t_setup (ID, SETUP_ID, STATION_CODE,
|
|
|
- STATION_NAME, DEVICE_SN, SETUP_TIME,
|
|
|
- SETUP_MAN, FLOOR_RSRP, STATION_CONTACT,
|
|
|
- STATION_ADDRESS, STATION_LON, STATION_LAT,
|
|
|
- FINISHED_FLAG, FINISHED_TIME, FINISHED_MAN
|
|
|
- )
|
|
|
- values (#{id,jdbcType=INTEGER}, #{setupId,jdbcType=VARCHAR}, #{stationCode,jdbcType=VARCHAR},
|
|
|
- #{stationName,jdbcType=VARCHAR}, #{deviceSn,jdbcType=VARCHAR}, #{setupTime,jdbcType=TIMESTAMP},
|
|
|
- #{setupMan,jdbcType=VARCHAR}, #{floorRsrp,jdbcType=INTEGER}, #{stationContact,jdbcType=VARCHAR},
|
|
|
- #{stationAddress,jdbcType=VARCHAR}, #{stationLon,jdbcType=DECIMAL}, #{stationLat,jdbcType=DECIMAL},
|
|
|
- #{finishedFlag,jdbcType=CHAR}, #{finishedTime,jdbcType=DATE}, #{finishedMan,jdbcType=VARCHAR}
|
|
|
- )
|
|
|
- </insert>
|
|
|
- <insert id="insertSelective" parameterType="com.mvc.entity.TSetup">
|
|
|
- insert into t_setup
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- ID,
|
|
|
- </if>
|
|
|
- <if test="setupId != null">
|
|
|
- SETUP_ID,
|
|
|
- </if>
|
|
|
- <if test="stationCode != null">
|
|
|
- STATION_CODE,
|
|
|
- </if>
|
|
|
- <if test="stationName != null">
|
|
|
- STATION_NAME,
|
|
|
- </if>
|
|
|
- <if test="deviceSn != null">
|
|
|
- DEVICE_SN,
|
|
|
- </if>
|
|
|
- <if test="setupTime != null">
|
|
|
- SETUP_TIME,
|
|
|
- </if>
|
|
|
- <if test="setupMan != null">
|
|
|
- SETUP_MAN,
|
|
|
- </if>
|
|
|
- <if test="floorRsrp != null">
|
|
|
- FLOOR_RSRP,
|
|
|
- </if>
|
|
|
- <if test="stationContact != null">
|
|
|
- STATION_CONTACT,
|
|
|
- </if>
|
|
|
- <if test="stationAddress != null">
|
|
|
- STATION_ADDRESS,
|
|
|
- </if>
|
|
|
- <if test="stationLon != null">
|
|
|
- STATION_LON,
|
|
|
- </if>
|
|
|
- <if test="stationLat != null">
|
|
|
- STATION_LAT,
|
|
|
- </if>
|
|
|
- <if test="finishedFlag != null">
|
|
|
- FINISHED_FLAG,
|
|
|
- </if>
|
|
|
- <if test="finishedTime != null">
|
|
|
- FINISHED_TIME,
|
|
|
- </if>
|
|
|
- <if test="finishedMan != null">
|
|
|
- FINISHED_MAN,
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- #{id,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="setupId != null">
|
|
|
- #{setupId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationCode != null">
|
|
|
- #{stationCode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationName != null">
|
|
|
- #{stationName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="deviceSn != null">
|
|
|
- #{deviceSn,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="setupTime != null">
|
|
|
- #{setupTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="setupMan != null">
|
|
|
- #{setupMan,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="floorRsrp != null">
|
|
|
- #{floorRsrp,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="stationContact != null">
|
|
|
- #{stationContact,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationAddress != null">
|
|
|
- #{stationAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationLon != null">
|
|
|
- #{stationLon,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="stationLat != null">
|
|
|
- #{stationLat,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="finishedFlag != null">
|
|
|
- #{finishedFlag,jdbcType=CHAR},
|
|
|
- </if>
|
|
|
- <if test="finishedTime != null">
|
|
|
- #{finishedTime,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="finishedMan != null">
|
|
|
- #{finishedMan,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </trim>
|
|
|
- </insert>
|
|
|
- <select id="countByExample" parameterType="com.mvc.entity.TSetupExample" resultType="java.lang.Long">
|
|
|
- select count(*) from t_setup
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </select>
|
|
|
- <update id="updateByExampleSelective" parameterType="map">
|
|
|
- update t_setup
|
|
|
- <set>
|
|
|
- <if test="record.id != null">
|
|
|
- ID = #{record.id,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.setupId != null">
|
|
|
- SETUP_ID = #{record.setupId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.stationCode != null">
|
|
|
- STATION_CODE = #{record.stationCode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.stationName != null">
|
|
|
- STATION_NAME = #{record.stationName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.deviceSn != null">
|
|
|
- DEVICE_SN = #{record.deviceSn,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.setupTime != null">
|
|
|
- SETUP_TIME = #{record.setupTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="record.setupMan != null">
|
|
|
- SETUP_MAN = #{record.setupMan,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.floorRsrp != null">
|
|
|
- FLOOR_RSRP = #{record.floorRsrp,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="record.stationContact != null">
|
|
|
- STATION_CONTACT = #{record.stationContact,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.stationAddress != null">
|
|
|
- STATION_ADDRESS = #{record.stationAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="record.stationLon != null">
|
|
|
- STATION_LON = #{record.stationLon,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.stationLat != null">
|
|
|
- STATION_LAT = #{record.stationLat,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="record.finishedFlag != null">
|
|
|
- FINISHED_FLAG = #{record.finishedFlag,jdbcType=CHAR},
|
|
|
- </if>
|
|
|
- <if test="record.finishedTime != null">
|
|
|
- FINISHED_TIME = #{record.finishedTime,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="record.finishedMan != null">
|
|
|
- FINISHED_MAN = #{record.finishedMan,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByExample" parameterType="map">
|
|
|
- update t_setup
|
|
|
- set ID = #{record.id,jdbcType=INTEGER},
|
|
|
- SETUP_ID = #{record.setupId,jdbcType=VARCHAR},
|
|
|
- STATION_CODE = #{record.stationCode,jdbcType=VARCHAR},
|
|
|
- STATION_NAME = #{record.stationName,jdbcType=VARCHAR},
|
|
|
- DEVICE_SN = #{record.deviceSn,jdbcType=VARCHAR},
|
|
|
- SETUP_TIME = #{record.setupTime,jdbcType=TIMESTAMP},
|
|
|
- SETUP_MAN = #{record.setupMan,jdbcType=VARCHAR},
|
|
|
- FLOOR_RSRP = #{record.floorRsrp,jdbcType=INTEGER},
|
|
|
- STATION_CONTACT = #{record.stationContact,jdbcType=VARCHAR},
|
|
|
- STATION_ADDRESS = #{record.stationAddress,jdbcType=VARCHAR},
|
|
|
- STATION_LON = #{record.stationLon,jdbcType=DECIMAL},
|
|
|
- STATION_LAT = #{record.stationLat,jdbcType=DECIMAL},
|
|
|
- FINISHED_FLAG = #{record.finishedFlag,jdbcType=CHAR},
|
|
|
- FINISHED_TIME = #{record.finishedTime,jdbcType=DATE},
|
|
|
- FINISHED_MAN = #{record.finishedMan,jdbcType=VARCHAR}
|
|
|
- <if test="_parameter != null">
|
|
|
- <include refid="Update_By_Example_Where_Clause" />
|
|
|
- </if>
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKeySelective" parameterType="com.mvc.entity.TSetup">
|
|
|
- update t_setup
|
|
|
- <set>
|
|
|
- <if test="setupId != null">
|
|
|
- SETUP_ID = #{setupId,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationCode != null">
|
|
|
- STATION_CODE = #{stationCode,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationName != null">
|
|
|
- STATION_NAME = #{stationName,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="deviceSn != null">
|
|
|
- DEVICE_SN = #{deviceSn,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="setupTime != null">
|
|
|
- SETUP_TIME = #{setupTime,jdbcType=TIMESTAMP},
|
|
|
- </if>
|
|
|
- <if test="setupMan != null">
|
|
|
- SETUP_MAN = #{setupMan,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="floorRsrp != null">
|
|
|
- FLOOR_RSRP = #{floorRsrp,jdbcType=INTEGER},
|
|
|
- </if>
|
|
|
- <if test="stationContact != null">
|
|
|
- STATION_CONTACT = #{stationContact,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationAddress != null">
|
|
|
- STATION_ADDRESS = #{stationAddress,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="stationLon != null">
|
|
|
- STATION_LON = #{stationLon,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="stationLat != null">
|
|
|
- STATION_LAT = #{stationLat,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="finishedFlag != null">
|
|
|
- FINISHED_FLAG = #{finishedFlag,jdbcType=CHAR},
|
|
|
- </if>
|
|
|
- <if test="finishedTime != null">
|
|
|
- FINISHED_TIME = #{finishedTime,jdbcType=DATE},
|
|
|
- </if>
|
|
|
- <if test="finishedMan != null">
|
|
|
- FINISHED_MAN = #{finishedMan,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- </set>
|
|
|
- where ID = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
- <update id="updateByPrimaryKey" parameterType="com.mvc.entity.TSetup">
|
|
|
- update t_setup
|
|
|
- set SETUP_ID = #{setupId,jdbcType=VARCHAR},
|
|
|
- STATION_CODE = #{stationCode,jdbcType=VARCHAR},
|
|
|
- STATION_NAME = #{stationName,jdbcType=VARCHAR},
|
|
|
- DEVICE_SN = #{deviceSn,jdbcType=VARCHAR},
|
|
|
- SETUP_TIME = #{setupTime,jdbcType=TIMESTAMP},
|
|
|
- SETUP_MAN = #{setupMan,jdbcType=VARCHAR},
|
|
|
- FLOOR_RSRP = #{floorRsrp,jdbcType=INTEGER},
|
|
|
- STATION_CONTACT = #{stationContact,jdbcType=VARCHAR},
|
|
|
- STATION_ADDRESS = #{stationAddress,jdbcType=VARCHAR},
|
|
|
- STATION_LON = #{stationLon,jdbcType=DECIMAL},
|
|
|
- STATION_LAT = #{stationLat,jdbcType=DECIMAL},
|
|
|
- FINISHED_FLAG = #{finishedFlag,jdbcType=CHAR},
|
|
|
- FINISHED_TIME = #{finishedTime,jdbcType=DATE},
|
|
|
- FINISHED_MAN = #{finishedMan,jdbcType=VARCHAR}
|
|
|
- where ID = #{id,jdbcType=INTEGER}
|
|
|
- </update>
|
|
|
</mapper>
|