You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
974 lines
42 KiB
XML
974 lines
42 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="com.glxp.udidl.admin.dao.udid.DeviceMapper">
|
|
<resultMap id="BaseResultMap" type="com.glxp.udidl.admin.entity.udid.Device">
|
|
<id column="uuid" jdbcType="VARCHAR" property="uuid"/>
|
|
<result column="deviceRecordKey" jdbcType="VARCHAR" property="devicerecordkey"/>
|
|
<result column="btcpbs" jdbcType="VARCHAR" property="btcpbs"/>
|
|
<result column="btcpbsyzxxsdycpbssfyz" jdbcType="VARCHAR" property="btcpbsyzxxsdycpbssfyz"/>
|
|
<result column="cgzmraqxgxx" jdbcType="VARCHAR" property="cgzmraqxgxx"/>
|
|
<result column="cpbsbmtxmc" jdbcType="VARCHAR" property="cpbsbmtxmc"/>
|
|
<result column="cpbsfbrq" jdbcType="VARCHAR" property="cpbsfbrq"/>
|
|
<result column="cphhhbh" jdbcType="VARCHAR" property="cphhhbh"/>
|
|
<result column="cplb" jdbcType="VARCHAR" property="cplb"/>
|
|
<result column="cpmctymc" jdbcType="VARCHAR" property="cpmctymc"/>
|
|
<result column="cpms" jdbcType="VARCHAR" property="cpms"/>
|
|
<result column="flbm" jdbcType="VARCHAR" property="flbm"/>
|
|
<result column="ggxh" jdbcType="VARCHAR" property="ggxh"/>
|
|
<result column="mjfs" jdbcType="VARCHAR" property="mjfs"/>
|
|
<result column="qtxxdwzlj" jdbcType="VARCHAR" property="qtxxdwzlj"/>
|
|
<result column="qxlb" jdbcType="VARCHAR" property="qxlb"/>
|
|
<result column="scbssfbhph" jdbcType="VARCHAR" property="scbssfbhph"/>
|
|
<result column="scbssfbhscrq" jdbcType="VARCHAR" property="scbssfbhscrq"/>
|
|
<result column="scbssfbhsxrq" jdbcType="VARCHAR" property="scbssfbhsxrq"/>
|
|
<result column="scbssfbhxlh" jdbcType="VARCHAR" property="scbssfbhxlh"/>
|
|
<result column="sfbjwycxsy" jdbcType="VARCHAR" property="sfbjwycxsy"/>
|
|
<result column="sfwblztlcp" jdbcType="VARCHAR" property="sfwblztlcp"/>
|
|
<result column="sfwwjbz" jdbcType="VARCHAR" property="sfwwjbz"/>
|
|
<result column="sfybtzjbs" jdbcType="VARCHAR" property="sfybtzjbs"/>
|
|
<result column="spmc" jdbcType="VARCHAR" property="spmc"/>
|
|
<result column="sydycpbs" jdbcType="VARCHAR" property="sydycpbs"/>
|
|
<result column="syqsfxyjxmj" jdbcType="VARCHAR" property="syqsfxyjxmj"/>
|
|
<result column="tscchcztj" jdbcType="VARCHAR" property="tscchcztj"/>
|
|
<result column="tsccsm" jdbcType="VARCHAR" property="tsccsm"/>
|
|
<result column="tsrq" jdbcType="VARCHAR" property="tsrq"/>
|
|
<result column="tyshxydm" jdbcType="VARCHAR" property="tyshxydm"/>
|
|
<result column="versionNumber" jdbcType="VARCHAR" property="versionnumber"/>
|
|
<result column="versionStatus" jdbcType="VARCHAR" property="versionstatus"/>
|
|
<result column="versionTime" jdbcType="VARCHAR" property="versiontime"/>
|
|
<result column="ybbm" jdbcType="VARCHAR" property="ybbm"/>
|
|
<result column="yflbm" jdbcType="VARCHAR" property="yflbm"/>
|
|
<result column="ylqxzcrbarmc" jdbcType="VARCHAR" property="ylqxzcrbarmc"/>
|
|
<result column="ylqxzcrbarywmc" jdbcType="VARCHAR" property="ylqxzcrbarywmc"/>
|
|
<result column="zczbhhzbapzbh" jdbcType="VARCHAR" property="zczbhhzbapzbh"/>
|
|
<result column="zdcfsycs" jdbcType="VARCHAR" property="zdcfsycs"/>
|
|
<result column="zxxsdycpbs" jdbcType="VARCHAR" property="zxxsdycpbs"/>
|
|
<result column="bszt" jdbcType="VARCHAR" property="bszt"/>
|
|
<result column="sfyzcbayz" jdbcType="VARCHAR" property="sfyzcbayz"/>
|
|
<result column="zcbacpbs" jdbcType="VARCHAR" property="zcbacpbs"/>
|
|
<result column="zxxsdyzsydydsl" jdbcType="VARCHAR" property="zxxsdyzsydydsl"/>
|
|
<result column="deviceHistoryRecordKey" jdbcType="VARCHAR" property="devicehistoryrecordkey"/>
|
|
<result column="bssjzt" jdbcType="VARCHAR" property="bssjzt"/>
|
|
</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">
|
|
uuid, deviceRecordKey, btcpbs, btcpbsyzxxsdycpbssfyz, cgzmraqxgxx, cpbsbmtxmc, cpbsfbrq,
|
|
cphhhbh, cplb, cpmctymc, cpms, flbm, ggxh, mjfs, qtxxdwzlj, qxlb, scbssfbhph, scbssfbhscrq,
|
|
scbssfbhsxrq, scbssfbhxlh, sfbjwycxsy, sfwblztlcp, sfwwjbz, sfybtzjbs, spmc, sydycpbs,
|
|
syqsfxyjxmj, tscchcztj, tsccsm, tsrq, tyshxydm, versionNumber, versionStatus, versionTime,
|
|
ybbm, yflbm, ylqxzcrbarmc, ylqxzcrbarywmc, zczbhhzbapzbh, zdcfsycs, zxxsdycpbs, bszt,
|
|
sfyzcbayz, zcbacpbs, zxxsdyzsydydsl, deviceHistoryRecordKey, bssjzt
|
|
</sql>
|
|
<select id="selectByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceExample" resultMap="BaseResultMap">
|
|
select
|
|
<if test="distinct">
|
|
distinct
|
|
</if>
|
|
<include refid="Base_Column_List"/>
|
|
from device
|
|
<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.String" resultMap="BaseResultMap">
|
|
select
|
|
<include refid="Base_Column_List"/>
|
|
from device
|
|
where uuid = #{uuid,jdbcType=VARCHAR}
|
|
</select>
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.String">
|
|
delete from device
|
|
where uuid = #{uuid,jdbcType=VARCHAR}
|
|
</delete>
|
|
<delete id="deleteByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceExample">
|
|
delete from device
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause"/>
|
|
</if>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.glxp.udidl.admin.entity.udid.Device">
|
|
insert into device (uuid, deviceRecordKey, btcpbs,
|
|
btcpbsyzxxsdycpbssfyz, cgzmraqxgxx, cpbsbmtxmc,
|
|
cpbsfbrq, cphhhbh, cplb,
|
|
cpmctymc, cpms, flbm,
|
|
ggxh, mjfs, qtxxdwzlj,
|
|
qxlb, scbssfbhph, scbssfbhscrq,
|
|
scbssfbhsxrq, scbssfbhxlh, sfbjwycxsy,
|
|
sfwblztlcp, sfwwjbz, sfybtzjbs,
|
|
spmc, sydycpbs, syqsfxyjxmj,
|
|
tscchcztj, tsccsm, tsrq,
|
|
tyshxydm, versionNumber, versionStatus,
|
|
versionTime, ybbm, yflbm,
|
|
ylqxzcrbarmc, ylqxzcrbarywmc, zczbhhzbapzbh,
|
|
zdcfsycs, zxxsdycpbs, bszt,
|
|
sfyzcbayz, zcbacpbs, zxxsdyzsydydsl,
|
|
deviceHistoryRecordKey, bssjzt,lastModifyTime,requestDate)
|
|
values (#{uuid,jdbcType=VARCHAR}, #{devicerecordkey,jdbcType=VARCHAR}, #{btcpbs,jdbcType=VARCHAR},
|
|
#{btcpbsyzxxsdycpbssfyz,jdbcType=VARCHAR}, #{cgzmraqxgxx,jdbcType=VARCHAR}, #{cpbsbmtxmc,jdbcType=VARCHAR},
|
|
#{cpbsfbrq,jdbcType=VARCHAR}, #{cphhhbh,jdbcType=VARCHAR}, #{cplb,jdbcType=VARCHAR},
|
|
#{cpmctymc,jdbcType=VARCHAR}, #{cpms,jdbcType=VARCHAR}, #{flbm,jdbcType=VARCHAR},
|
|
#{ggxh,jdbcType=VARCHAR}, #{mjfs,jdbcType=VARCHAR}, #{qtxxdwzlj,jdbcType=VARCHAR},
|
|
#{qxlb,jdbcType=VARCHAR}, #{scbssfbhph,jdbcType=VARCHAR}, #{scbssfbhscrq,jdbcType=VARCHAR},
|
|
#{scbssfbhsxrq,jdbcType=VARCHAR}, #{scbssfbhxlh,jdbcType=VARCHAR}, #{sfbjwycxsy,jdbcType=VARCHAR},
|
|
#{sfwblztlcp,jdbcType=VARCHAR}, #{sfwwjbz,jdbcType=VARCHAR}, #{sfybtzjbs,jdbcType=VARCHAR},
|
|
#{spmc,jdbcType=VARCHAR}, #{sydycpbs,jdbcType=VARCHAR}, #{syqsfxyjxmj,jdbcType=VARCHAR},
|
|
#{tscchcztj,jdbcType=VARCHAR}, #{tsccsm,jdbcType=VARCHAR}, #{tsrq,jdbcType=VARCHAR},
|
|
#{tyshxydm,jdbcType=VARCHAR}, #{versionnumber,jdbcType=VARCHAR}, #{versionstatus,jdbcType=VARCHAR},
|
|
#{versiontime,jdbcType=VARCHAR}, #{ybbm,jdbcType=VARCHAR}, #{yflbm,jdbcType=VARCHAR},
|
|
#{ylqxzcrbarmc,jdbcType=VARCHAR}, #{ylqxzcrbarywmc,jdbcType=VARCHAR}, #{zczbhhzbapzbh,jdbcType=VARCHAR},
|
|
#{zdcfsycs,jdbcType=VARCHAR}, #{zxxsdycpbs,jdbcType=VARCHAR}, #{bszt,jdbcType=VARCHAR},
|
|
#{sfyzcbayz,jdbcType=VARCHAR}, #{zcbacpbs,jdbcType=VARCHAR}, #{zxxsdyzsydydsl,jdbcType=VARCHAR},
|
|
#{devicehistoryrecordkey,jdbcType=VARCHAR}, #{bssjzt,jdbcType=VARCHAR},#{lastModifyTime,jdbcType=VARCHAR},#{requestDate})
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.glxp.udidl.admin.entity.udid.Device">
|
|
insert into device
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<if test="uuid != null">
|
|
uuid,
|
|
</if>
|
|
<if test="devicerecordkey != null">
|
|
deviceRecordKey,
|
|
</if>
|
|
<if test="btcpbs != null">
|
|
btcpbs,
|
|
</if>
|
|
<if test="btcpbsyzxxsdycpbssfyz != null">
|
|
btcpbsyzxxsdycpbssfyz,
|
|
</if>
|
|
<if test="cgzmraqxgxx != null">
|
|
cgzmraqxgxx,
|
|
</if>
|
|
<if test="cpbsbmtxmc != null">
|
|
cpbsbmtxmc,
|
|
</if>
|
|
<if test="cpbsfbrq != null">
|
|
cpbsfbrq,
|
|
</if>
|
|
<if test="cphhhbh != null">
|
|
cphhhbh,
|
|
</if>
|
|
<if test="cplb != null">
|
|
cplb,
|
|
</if>
|
|
<if test="cpmctymc != null">
|
|
cpmctymc,
|
|
</if>
|
|
<if test="cpms != null">
|
|
cpms,
|
|
</if>
|
|
<if test="flbm != null">
|
|
flbm,
|
|
</if>
|
|
<if test="ggxh != null">
|
|
ggxh,
|
|
</if>
|
|
<if test="mjfs != null">
|
|
mjfs,
|
|
</if>
|
|
<if test="qtxxdwzlj != null">
|
|
qtxxdwzlj,
|
|
</if>
|
|
<if test="qxlb != null">
|
|
qxlb,
|
|
</if>
|
|
<if test="scbssfbhph != null">
|
|
scbssfbhph,
|
|
</if>
|
|
<if test="scbssfbhscrq != null">
|
|
scbssfbhscrq,
|
|
</if>
|
|
<if test="scbssfbhsxrq != null">
|
|
scbssfbhsxrq,
|
|
</if>
|
|
<if test="scbssfbhxlh != null">
|
|
scbssfbhxlh,
|
|
</if>
|
|
<if test="sfbjwycxsy != null">
|
|
sfbjwycxsy,
|
|
</if>
|
|
<if test="sfwblztlcp != null">
|
|
sfwblztlcp,
|
|
</if>
|
|
<if test="sfwwjbz != null">
|
|
sfwwjbz,
|
|
</if>
|
|
<if test="sfybtzjbs != null">
|
|
sfybtzjbs,
|
|
</if>
|
|
<if test="spmc != null">
|
|
spmc,
|
|
</if>
|
|
<if test="sydycpbs != null">
|
|
sydycpbs,
|
|
</if>
|
|
<if test="syqsfxyjxmj != null">
|
|
syqsfxyjxmj,
|
|
</if>
|
|
<if test="tscchcztj != null">
|
|
tscchcztj,
|
|
</if>
|
|
<if test="tsccsm != null">
|
|
tsccsm,
|
|
</if>
|
|
<if test="tsrq != null">
|
|
tsrq,
|
|
</if>
|
|
<if test="tyshxydm != null">
|
|
tyshxydm,
|
|
</if>
|
|
<if test="versionnumber != null">
|
|
versionNumber,
|
|
</if>
|
|
<if test="versionstatus != null">
|
|
versionStatus,
|
|
</if>
|
|
<if test="versiontime != null">
|
|
versionTime,
|
|
</if>
|
|
<if test="ybbm != null">
|
|
ybbm,
|
|
</if>
|
|
<if test="yflbm != null">
|
|
yflbm,
|
|
</if>
|
|
<if test="ylqxzcrbarmc != null">
|
|
ylqxzcrbarmc,
|
|
</if>
|
|
<if test="ylqxzcrbarywmc != null">
|
|
ylqxzcrbarywmc,
|
|
</if>
|
|
<if test="zczbhhzbapzbh != null">
|
|
zczbhhzbapzbh,
|
|
</if>
|
|
<if test="zdcfsycs != null">
|
|
zdcfsycs,
|
|
</if>
|
|
<if test="zxxsdycpbs != null">
|
|
zxxsdycpbs,
|
|
</if>
|
|
<if test="bszt != null">
|
|
bszt,
|
|
</if>
|
|
<if test="sfyzcbayz != null">
|
|
sfyzcbayz,
|
|
</if>
|
|
<if test="zcbacpbs != null">
|
|
zcbacpbs,
|
|
</if>
|
|
<if test="zxxsdyzsydydsl != null">
|
|
zxxsdyzsydydsl,
|
|
</if>
|
|
<if test="devicehistoryrecordkey != null">
|
|
deviceHistoryRecordKey,
|
|
</if>
|
|
<if test="bssjzt != null">
|
|
bssjzt,
|
|
</if>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="uuid != null">
|
|
#{uuid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="devicerecordkey != null">
|
|
#{devicerecordkey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="btcpbs != null">
|
|
#{btcpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="btcpbsyzxxsdycpbssfyz != null">
|
|
#{btcpbsyzxxsdycpbssfyz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cgzmraqxgxx != null">
|
|
#{cgzmraqxgxx,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpbsbmtxmc != null">
|
|
#{cpbsbmtxmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpbsfbrq != null">
|
|
#{cpbsfbrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cphhhbh != null">
|
|
#{cphhhbh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cplb != null">
|
|
#{cplb,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpmctymc != null">
|
|
#{cpmctymc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpms != null">
|
|
#{cpms,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="flbm != null">
|
|
#{flbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ggxh != null">
|
|
#{ggxh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="mjfs != null">
|
|
#{mjfs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="qtxxdwzlj != null">
|
|
#{qtxxdwzlj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="qxlb != null">
|
|
#{qxlb,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhph != null">
|
|
#{scbssfbhph,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhscrq != null">
|
|
#{scbssfbhscrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhsxrq != null">
|
|
#{scbssfbhsxrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhxlh != null">
|
|
#{scbssfbhxlh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfbjwycxsy != null">
|
|
#{sfbjwycxsy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfwblztlcp != null">
|
|
#{sfwblztlcp,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfwwjbz != null">
|
|
#{sfwwjbz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfybtzjbs != null">
|
|
#{sfybtzjbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="spmc != null">
|
|
#{spmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sydycpbs != null">
|
|
#{sydycpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="syqsfxyjxmj != null">
|
|
#{syqsfxyjxmj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tscchcztj != null">
|
|
#{tscchcztj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tsccsm != null">
|
|
#{tsccsm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tsrq != null">
|
|
#{tsrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tyshxydm != null">
|
|
#{tyshxydm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="versionnumber != null">
|
|
#{versionnumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="versionstatus != null">
|
|
#{versionstatus,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="versiontime != null">
|
|
#{versiontime,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ybbm != null">
|
|
#{ybbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="yflbm != null">
|
|
#{yflbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ylqxzcrbarmc != null">
|
|
#{ylqxzcrbarmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ylqxzcrbarywmc != null">
|
|
#{ylqxzcrbarywmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zczbhhzbapzbh != null">
|
|
#{zczbhhzbapzbh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zdcfsycs != null">
|
|
#{zdcfsycs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zxxsdycpbs != null">
|
|
#{zxxsdycpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bszt != null">
|
|
#{bszt,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfyzcbayz != null">
|
|
#{sfyzcbayz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zcbacpbs != null">
|
|
#{zcbacpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zxxsdyzsydydsl != null">
|
|
#{zxxsdyzsydydsl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="devicehistoryrecordkey != null">
|
|
#{devicehistoryrecordkey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bssjzt != null">
|
|
#{bssjzt,jdbcType=VARCHAR},
|
|
</if>
|
|
</trim>
|
|
</insert>
|
|
<select id="countByExample" parameterType="com.glxp.udidl.admin.entity.udid.DeviceExample"
|
|
resultType="java.lang.Long">
|
|
select count(*) from device
|
|
<if test="_parameter != null">
|
|
<include refid="Example_Where_Clause"/>
|
|
</if>
|
|
</select>
|
|
<update id="updateByExampleSelective" parameterType="map">
|
|
update device
|
|
<set>
|
|
<if test="record.uuid != null">
|
|
uuid = #{record.uuid,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.devicerecordkey != null">
|
|
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.btcpbs != null">
|
|
btcpbs = #{record.btcpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.btcpbsyzxxsdycpbssfyz != null">
|
|
btcpbsyzxxsdycpbssfyz = #{record.btcpbsyzxxsdycpbssfyz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cgzmraqxgxx != null">
|
|
cgzmraqxgxx = #{record.cgzmraqxgxx,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cpbsbmtxmc != null">
|
|
cpbsbmtxmc = #{record.cpbsbmtxmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cpbsfbrq != null">
|
|
cpbsfbrq = #{record.cpbsfbrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cphhhbh != null">
|
|
cphhhbh = #{record.cphhhbh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cplb != null">
|
|
cplb = #{record.cplb,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cpmctymc != null">
|
|
cpmctymc = #{record.cpmctymc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.cpms != null">
|
|
cpms = #{record.cpms,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.flbm != null">
|
|
flbm = #{record.flbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.ggxh != null">
|
|
ggxh = #{record.ggxh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.mjfs != null">
|
|
mjfs = #{record.mjfs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.qtxxdwzlj != null">
|
|
qtxxdwzlj = #{record.qtxxdwzlj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.qxlb != null">
|
|
qxlb = #{record.qxlb,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.scbssfbhph != null">
|
|
scbssfbhph = #{record.scbssfbhph,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.scbssfbhscrq != null">
|
|
scbssfbhscrq = #{record.scbssfbhscrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.scbssfbhsxrq != null">
|
|
scbssfbhsxrq = #{record.scbssfbhsxrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.scbssfbhxlh != null">
|
|
scbssfbhxlh = #{record.scbssfbhxlh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sfbjwycxsy != null">
|
|
sfbjwycxsy = #{record.sfbjwycxsy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sfwblztlcp != null">
|
|
sfwblztlcp = #{record.sfwblztlcp,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sfwwjbz != null">
|
|
sfwwjbz = #{record.sfwwjbz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sfybtzjbs != null">
|
|
sfybtzjbs = #{record.sfybtzjbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.spmc != null">
|
|
spmc = #{record.spmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sydycpbs != null">
|
|
sydycpbs = #{record.sydycpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.syqsfxyjxmj != null">
|
|
syqsfxyjxmj = #{record.syqsfxyjxmj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.tscchcztj != null">
|
|
tscchcztj = #{record.tscchcztj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.tsccsm != null">
|
|
tsccsm = #{record.tsccsm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.tsrq != null">
|
|
tsrq = #{record.tsrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.tyshxydm != null">
|
|
tyshxydm = #{record.tyshxydm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.versionnumber != null">
|
|
versionNumber = #{record.versionnumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.versionstatus != null">
|
|
versionStatus = #{record.versionstatus,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.versiontime != null">
|
|
versionTime = #{record.versiontime,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.ybbm != null">
|
|
ybbm = #{record.ybbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.yflbm != null">
|
|
yflbm = #{record.yflbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.ylqxzcrbarmc != null">
|
|
ylqxzcrbarmc = #{record.ylqxzcrbarmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.ylqxzcrbarywmc != null">
|
|
ylqxzcrbarywmc = #{record.ylqxzcrbarywmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.zczbhhzbapzbh != null">
|
|
zczbhhzbapzbh = #{record.zczbhhzbapzbh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.zdcfsycs != null">
|
|
zdcfsycs = #{record.zdcfsycs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.zxxsdycpbs != null">
|
|
zxxsdycpbs = #{record.zxxsdycpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.bszt != null">
|
|
bszt = #{record.bszt,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.sfyzcbayz != null">
|
|
sfyzcbayz = #{record.sfyzcbayz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.zcbacpbs != null">
|
|
zcbacpbs = #{record.zcbacpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.zxxsdyzsydydsl != null">
|
|
zxxsdyzsydydsl = #{record.zxxsdyzsydydsl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.devicehistoryrecordkey != null">
|
|
deviceHistoryRecordKey = #{record.devicehistoryrecordkey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="record.bssjzt != null">
|
|
bssjzt = #{record.bssjzt,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
</if>
|
|
</update>
|
|
<update id="updateByExample" parameterType="map">
|
|
update device
|
|
set uuid = #{record.uuid,jdbcType=VARCHAR},
|
|
deviceRecordKey = #{record.devicerecordkey,jdbcType=VARCHAR},
|
|
btcpbs = #{record.btcpbs,jdbcType=VARCHAR},
|
|
btcpbsyzxxsdycpbssfyz = #{record.btcpbsyzxxsdycpbssfyz,jdbcType=VARCHAR},
|
|
cgzmraqxgxx = #{record.cgzmraqxgxx,jdbcType=VARCHAR},
|
|
cpbsbmtxmc = #{record.cpbsbmtxmc,jdbcType=VARCHAR},
|
|
cpbsfbrq = #{record.cpbsfbrq,jdbcType=VARCHAR},
|
|
cphhhbh = #{record.cphhhbh,jdbcType=VARCHAR},
|
|
cplb = #{record.cplb,jdbcType=VARCHAR},
|
|
cpmctymc = #{record.cpmctymc,jdbcType=VARCHAR},
|
|
cpms = #{record.cpms,jdbcType=VARCHAR},
|
|
flbm = #{record.flbm,jdbcType=VARCHAR},
|
|
ggxh = #{record.ggxh,jdbcType=VARCHAR},
|
|
mjfs = #{record.mjfs,jdbcType=VARCHAR},
|
|
qtxxdwzlj = #{record.qtxxdwzlj,jdbcType=VARCHAR},
|
|
qxlb = #{record.qxlb,jdbcType=VARCHAR},
|
|
scbssfbhph = #{record.scbssfbhph,jdbcType=VARCHAR},
|
|
scbssfbhscrq = #{record.scbssfbhscrq,jdbcType=VARCHAR},
|
|
scbssfbhsxrq = #{record.scbssfbhsxrq,jdbcType=VARCHAR},
|
|
scbssfbhxlh = #{record.scbssfbhxlh,jdbcType=VARCHAR},
|
|
sfbjwycxsy = #{record.sfbjwycxsy,jdbcType=VARCHAR},
|
|
sfwblztlcp = #{record.sfwblztlcp,jdbcType=VARCHAR},
|
|
sfwwjbz = #{record.sfwwjbz,jdbcType=VARCHAR},
|
|
sfybtzjbs = #{record.sfybtzjbs,jdbcType=VARCHAR},
|
|
spmc = #{record.spmc,jdbcType=VARCHAR},
|
|
sydycpbs = #{record.sydycpbs,jdbcType=VARCHAR},
|
|
syqsfxyjxmj = #{record.syqsfxyjxmj,jdbcType=VARCHAR},
|
|
tscchcztj = #{record.tscchcztj,jdbcType=VARCHAR},
|
|
tsccsm = #{record.tsccsm,jdbcType=VARCHAR},
|
|
tsrq = #{record.tsrq,jdbcType=VARCHAR},
|
|
tyshxydm = #{record.tyshxydm,jdbcType=VARCHAR},
|
|
versionNumber = #{record.versionnumber,jdbcType=VARCHAR},
|
|
versionStatus = #{record.versionstatus,jdbcType=VARCHAR},
|
|
versionTime = #{record.versiontime,jdbcType=VARCHAR},
|
|
ybbm = #{record.ybbm,jdbcType=VARCHAR},
|
|
yflbm = #{record.yflbm,jdbcType=VARCHAR},
|
|
ylqxzcrbarmc = #{record.ylqxzcrbarmc,jdbcType=VARCHAR},
|
|
ylqxzcrbarywmc = #{record.ylqxzcrbarywmc,jdbcType=VARCHAR},
|
|
zczbhhzbapzbh = #{record.zczbhhzbapzbh,jdbcType=VARCHAR},
|
|
zdcfsycs = #{record.zdcfsycs,jdbcType=VARCHAR},
|
|
zxxsdycpbs = #{record.zxxsdycpbs,jdbcType=VARCHAR},
|
|
bszt = #{record.bszt,jdbcType=VARCHAR},
|
|
sfyzcbayz = #{record.sfyzcbayz,jdbcType=VARCHAR},
|
|
zcbacpbs = #{record.zcbacpbs,jdbcType=VARCHAR},
|
|
zxxsdyzsydydsl = #{record.zxxsdyzsydydsl,jdbcType=VARCHAR},
|
|
deviceHistoryRecordKey = #{record.devicehistoryrecordkey,jdbcType=VARCHAR},
|
|
bssjzt = #{record.bssjzt,jdbcType=VARCHAR}
|
|
<if test="_parameter != null">
|
|
<include refid="Update_By_Example_Where_Clause"/>
|
|
</if>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.glxp.udidl.admin.entity.udid.Device">
|
|
update device
|
|
<set>
|
|
<if test="devicerecordkey != null">
|
|
deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="btcpbs != null">
|
|
btcpbs = #{btcpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="btcpbsyzxxsdycpbssfyz != null">
|
|
btcpbsyzxxsdycpbssfyz = #{btcpbsyzxxsdycpbssfyz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cgzmraqxgxx != null">
|
|
cgzmraqxgxx = #{cgzmraqxgxx,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpbsbmtxmc != null">
|
|
cpbsbmtxmc = #{cpbsbmtxmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpbsfbrq != null">
|
|
cpbsfbrq = #{cpbsfbrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cphhhbh != null">
|
|
cphhhbh = #{cphhhbh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cplb != null">
|
|
cplb = #{cplb,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpmctymc != null">
|
|
cpmctymc = #{cpmctymc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="cpms != null">
|
|
cpms = #{cpms,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="flbm != null">
|
|
flbm = #{flbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ggxh != null">
|
|
ggxh = #{ggxh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="mjfs != null">
|
|
mjfs = #{mjfs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="qtxxdwzlj != null">
|
|
qtxxdwzlj = #{qtxxdwzlj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="qxlb != null">
|
|
qxlb = #{qxlb,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhph != null">
|
|
scbssfbhph = #{scbssfbhph,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhscrq != null">
|
|
scbssfbhscrq = #{scbssfbhscrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhsxrq != null">
|
|
scbssfbhsxrq = #{scbssfbhsxrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="scbssfbhxlh != null">
|
|
scbssfbhxlh = #{scbssfbhxlh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfbjwycxsy != null">
|
|
sfbjwycxsy = #{sfbjwycxsy,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfwblztlcp != null">
|
|
sfwblztlcp = #{sfwblztlcp,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfwwjbz != null">
|
|
sfwwjbz = #{sfwwjbz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfybtzjbs != null">
|
|
sfybtzjbs = #{sfybtzjbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="spmc != null">
|
|
spmc = #{spmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sydycpbs != null">
|
|
sydycpbs = #{sydycpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="syqsfxyjxmj != null">
|
|
syqsfxyjxmj = #{syqsfxyjxmj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tscchcztj != null">
|
|
tscchcztj = #{tscchcztj,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tsccsm != null">
|
|
tsccsm = #{tsccsm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tsrq != null">
|
|
tsrq = #{tsrq,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="tyshxydm != null">
|
|
tyshxydm = #{tyshxydm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="versionnumber != null">
|
|
versionNumber = #{versionnumber,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="versionstatus != null">
|
|
versionStatus = #{versionstatus,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="versiontime != null">
|
|
versionTime = #{versiontime,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ybbm != null">
|
|
ybbm = #{ybbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="yflbm != null">
|
|
yflbm = #{yflbm,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ylqxzcrbarmc != null">
|
|
ylqxzcrbarmc = #{ylqxzcrbarmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="ylqxzcrbarywmc != null">
|
|
ylqxzcrbarywmc = #{ylqxzcrbarywmc,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zczbhhzbapzbh != null">
|
|
zczbhhzbapzbh = #{zczbhhzbapzbh,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zdcfsycs != null">
|
|
zdcfsycs = #{zdcfsycs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zxxsdycpbs != null">
|
|
zxxsdycpbs = #{zxxsdycpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bszt != null">
|
|
bszt = #{bszt,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="sfyzcbayz != null">
|
|
sfyzcbayz = #{sfyzcbayz,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zcbacpbs != null">
|
|
zcbacpbs = #{zcbacpbs,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="zxxsdyzsydydsl != null">
|
|
zxxsdyzsydydsl = #{zxxsdyzsydydsl,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="devicehistoryrecordkey != null">
|
|
deviceHistoryRecordKey = #{devicehistoryrecordkey,jdbcType=VARCHAR},
|
|
</if>
|
|
<if test="bssjzt != null">
|
|
bssjzt = #{bssjzt,jdbcType=VARCHAR},
|
|
</if>
|
|
</set>
|
|
where uuid = #{uuid,jdbcType=VARCHAR}
|
|
</update>
|
|
<update id="updateByPrimaryKey" parameterType="com.glxp.udidl.admin.entity.udid.Device">
|
|
update device
|
|
set deviceRecordKey = #{devicerecordkey,jdbcType=VARCHAR},
|
|
btcpbs = #{btcpbs,jdbcType=VARCHAR},
|
|
btcpbsyzxxsdycpbssfyz = #{btcpbsyzxxsdycpbssfyz,jdbcType=VARCHAR},
|
|
cgzmraqxgxx = #{cgzmraqxgxx,jdbcType=VARCHAR},
|
|
cpbsbmtxmc = #{cpbsbmtxmc,jdbcType=VARCHAR},
|
|
cpbsfbrq = #{cpbsfbrq,jdbcType=VARCHAR},
|
|
cphhhbh = #{cphhhbh,jdbcType=VARCHAR},
|
|
cplb = #{cplb,jdbcType=VARCHAR},
|
|
cpmctymc = #{cpmctymc,jdbcType=VARCHAR},
|
|
cpms = #{cpms,jdbcType=VARCHAR},
|
|
flbm = #{flbm,jdbcType=VARCHAR},
|
|
ggxh = #{ggxh,jdbcType=VARCHAR},
|
|
mjfs = #{mjfs,jdbcType=VARCHAR},
|
|
qtxxdwzlj = #{qtxxdwzlj,jdbcType=VARCHAR},
|
|
qxlb = #{qxlb,jdbcType=VARCHAR},
|
|
scbssfbhph = #{scbssfbhph,jdbcType=VARCHAR},
|
|
scbssfbhscrq = #{scbssfbhscrq,jdbcType=VARCHAR},
|
|
scbssfbhsxrq = #{scbssfbhsxrq,jdbcType=VARCHAR},
|
|
scbssfbhxlh = #{scbssfbhxlh,jdbcType=VARCHAR},
|
|
sfbjwycxsy = #{sfbjwycxsy,jdbcType=VARCHAR},
|
|
sfwblztlcp = #{sfwblztlcp,jdbcType=VARCHAR},
|
|
sfwwjbz = #{sfwwjbz,jdbcType=VARCHAR},
|
|
sfybtzjbs = #{sfybtzjbs,jdbcType=VARCHAR},
|
|
spmc = #{spmc,jdbcType=VARCHAR},
|
|
sydycpbs = #{sydycpbs,jdbcType=VARCHAR},
|
|
syqsfxyjxmj = #{syqsfxyjxmj,jdbcType=VARCHAR},
|
|
tscchcztj = #{tscchcztj,jdbcType=VARCHAR},
|
|
tsccsm = #{tsccsm,jdbcType=VARCHAR},
|
|
tsrq = #{tsrq,jdbcType=VARCHAR},
|
|
tyshxydm = #{tyshxydm,jdbcType=VARCHAR},
|
|
versionNumber = #{versionnumber,jdbcType=VARCHAR},
|
|
versionStatus = #{versionstatus,jdbcType=VARCHAR},
|
|
versionTime = #{versiontime,jdbcType=VARCHAR},
|
|
ybbm = #{ybbm,jdbcType=VARCHAR},
|
|
yflbm = #{yflbm,jdbcType=VARCHAR},
|
|
ylqxzcrbarmc = #{ylqxzcrbarmc,jdbcType=VARCHAR},
|
|
ylqxzcrbarywmc = #{ylqxzcrbarywmc,jdbcType=VARCHAR},
|
|
zczbhhzbapzbh = #{zczbhhzbapzbh,jdbcType=VARCHAR},
|
|
zdcfsycs = #{zdcfsycs,jdbcType=VARCHAR},
|
|
zxxsdycpbs = #{zxxsdycpbs,jdbcType=VARCHAR},
|
|
bszt = #{bszt,jdbcType=VARCHAR},
|
|
sfyzcbayz = #{sfyzcbayz,jdbcType=VARCHAR},
|
|
zcbacpbs = #{zcbacpbs,jdbcType=VARCHAR},
|
|
zxxsdyzsydydsl = #{zxxsdyzsydydsl,jdbcType=VARCHAR},
|
|
deviceHistoryRecordKey = #{devicehistoryrecordkey,jdbcType=VARCHAR},
|
|
bssjzt = #{bssjzt,jdbcType=VARCHAR}
|
|
where uuid = #{uuid,jdbcType=VARCHAR}
|
|
</update>
|
|
|
|
<select id="searchBykey" parameterType="com.glxp.udidl.admin.req.udid.DeviceListRequest" resultMap="BaseResultMap">
|
|
select * from device WHERE ( zxxsdycpbs like concat(#{key},'%') or cpmctymc like concat(#{key},'%') ) limit #{page},#{limit}
|
|
</select>
|
|
|
|
|
|
<select id="searchByBs" parameterType="Map" resultType="com.glxp.udidl.admin.entity.udid.Device">
|
|
SELECT * FROM device WHERE `zxxsdycpbs`= #{zxxsdycpbs}
|
|
</select>
|
|
|
|
<select id="search" parameterType="com.glxp.udidl.admin.req.udid.DeviceSearchRequest" resultMap="BaseResultMap">
|
|
select * from device
|
|
|
|
<where>
|
|
<if test="zxxsdycpbs != '' and zxxsdycpbs!=null">
|
|
and zxxsdycpbs LIKE concat(#{zxxsdycpbs,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="cpmctymc != '' and cpmctymc!=null">
|
|
and cpmctymc LIKE concat(#{cpmctymc,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc!=null">
|
|
and ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="ggxh != '' and ggxh!=null">
|
|
and ggxh LIKE concat(#{ggxh,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh!=null">
|
|
and zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
|
|
</where>
|
|
limit #{page},#{limit}
|
|
</select>
|
|
<select id="getTotal" parameterType="com.glxp.udidl.admin.req.udid.DeviceSearchRequest" resultType="Long">
|
|
select count(zxxsdycpbs) from device
|
|
|
|
<where>
|
|
|
|
<if test="zxxsdycpbs != '' and zxxsdycpbs!=null">
|
|
and zxxsdycpbs LIKE concat(#{zxxsdycpbs,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="cpmctymc != '' and cpmctymc!=null">
|
|
and cpmctymc LIKE concat(#{cpmctymc,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="ylqxzcrbarmc != '' and ylqxzcrbarmc!=null">
|
|
and ylqxzcrbarmc LIKE concat(#{ylqxzcrbarmc,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="ggxh != '' and ggxh!=null">
|
|
and ggxh LIKE concat(#{ggxh,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
<if test="zczbhhzbapzbh != '' and zczbhhzbapzbh!=null">
|
|
and zczbhhzbapzbh LIKE concat(#{zczbhhzbapzbh,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
|
|
</where>
|
|
</select>
|
|
<delete id="deleteHistory" parameterType="Map">
|
|
DELETE FROM device WHERE deviceRecordKey = #{deviceRecordKey}
|
|
</delete>
|
|
|
|
<select id="searchByDeviceRecordKey" parameterType="Map" resultType="com.glxp.udidl.admin.entity.udid.Device">
|
|
SELECT * from device WHERE deviceRecordKey = #{deviceRecordKey} ORDER BY versionNumber DESC LIMIT 1
|
|
</select>
|
|
|
|
<select id="searchByZxxscpbs" parameterType="Map" resultType="com.glxp.udidl.admin.entity.udid.Device">
|
|
SELECT * from device
|
|
|
|
WHERE zxxsdycpbs = #{zxxsdycpbs}
|
|
|
|
ORDER BY versionNumber DESC LIMIT 1
|
|
</select>
|
|
<select id="searchHistory" parameterType="Map" resultType="com.glxp.udidl.admin.entity.udid.Device">
|
|
SELECT * from device WHERE deviceRecordKey = #{deviceRecordKey}
|
|
</select>
|
|
|
|
<select id="selectisSame" parameterType="Map" resultType="java.lang.String">
|
|
SELECT uuid from device WHERE deviceRecordKey = #{deviceRecordKey} and versionNumber = #{versionNumber} limit 1
|
|
</select>
|
|
|
|
<select id="selectKey" parameterType="Map" resultType="java.lang.String">
|
|
SELECT uuid from device WHERE zxxsdycpbs = #{zxxsdycpbs} limit 1
|
|
</select>
|
|
|
|
<select id="findAllByZxxscpbs" resultType="java.lang.String">
|
|
SELECT uuid from device
|
|
</select>
|
|
|
|
|
|
<select id="findAllByZxxscpbsPage" parameterType="com.glxp.udidl.admin.req.ListPageRequest" resultType="java.lang.String">
|
|
SELECT uuid from device limit #{page},#{limit}
|
|
</select>
|
|
|
|
|
|
<select id="downloadDevice" parameterType="com.glxp.udidl.admin.req.DownloadUdiRequest" resultMap="BaseResultMap">
|
|
select * from device
|
|
limit #{page},#{limit}
|
|
</select>
|
|
</mapper> |