and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period,
imei, dperiod, company_id
delete from onenet_device
insert into onenet_device (id, verifyCode, deviceId,
deviceType, userName, latitude,
longitude, type, period,
imei, dperiod, company_id
)
values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{deviceid,jdbcType=VARCHAR},
#{devicetype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=DOUBLE},
#{longitude,jdbcType=DOUBLE}, #{type,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR},
#{imei,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}
)
insert into onenet_device
id,
verifyCode,
deviceId,
deviceType,
userName,
latitude,
longitude,
type,
period,
imei,
dperiod,
company_id,
#{id,jdbcType=INTEGER},
#{verifycode,jdbcType=VARCHAR},
#{deviceid,jdbcType=VARCHAR},
#{devicetype,jdbcType=VARCHAR},
#{username,jdbcType=VARCHAR},
#{latitude,jdbcType=DOUBLE},
#{longitude,jdbcType=DOUBLE},
#{type,jdbcType=VARCHAR},
#{period,jdbcType=VARCHAR},
#{imei,jdbcType=VARCHAR},
#{dperiod,jdbcType=INTEGER},
#{companyId,jdbcType=INTEGER},
update onenet_device
id = #{record.id,jdbcType=INTEGER},
verifyCode = #{record.verifycode,jdbcType=VARCHAR},
deviceId = #{record.deviceid,jdbcType=VARCHAR},
deviceType = #{record.devicetype,jdbcType=VARCHAR},
userName = #{record.username,jdbcType=VARCHAR},
latitude = #{record.latitude,jdbcType=DOUBLE},
longitude = #{record.longitude,jdbcType=DOUBLE},
type = #{record.type,jdbcType=VARCHAR},
period = #{record.period,jdbcType=VARCHAR},
imei = #{record.imei,jdbcType=VARCHAR},
dperiod = #{record.dperiod,jdbcType=INTEGER},
company_id = #{record.companyId,jdbcType=INTEGER},
update onenet_device
set id = #{record.id,jdbcType=INTEGER},
verifyCode = #{record.verifycode,jdbcType=VARCHAR},
deviceId = #{record.deviceid,jdbcType=VARCHAR},
deviceType = #{record.devicetype,jdbcType=VARCHAR},
userName = #{record.username,jdbcType=VARCHAR},
latitude = #{record.latitude,jdbcType=DOUBLE},
longitude = #{record.longitude,jdbcType=DOUBLE},
type = #{record.type,jdbcType=VARCHAR},
period = #{record.period,jdbcType=VARCHAR},
imei = #{record.imei,jdbcType=VARCHAR},
dperiod = #{record.dperiod,jdbcType=INTEGER},
company_id = #{record.companyId,jdbcType=INTEGER}
insert into onenet_device
(id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period,
imei, dperiod, company_id)
values
(#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.deviceid,jdbcType=VARCHAR},
#{item.devicetype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=DOUBLE},
#{item.longitude,jdbcType=DOUBLE}, #{item.type,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR},
#{item.imei,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}
)
insert into onenet_device (
${column.escapedColumnName}
)
values
(
#{item.id,jdbcType=INTEGER}
#{item.verifycode,jdbcType=VARCHAR}
#{item.deviceid,jdbcType=VARCHAR}
#{item.devicetype,jdbcType=VARCHAR}
#{item.username,jdbcType=VARCHAR}
#{item.latitude,jdbcType=DOUBLE}
#{item.longitude,jdbcType=DOUBLE}
#{item.type,jdbcType=VARCHAR}
#{item.period,jdbcType=VARCHAR}
#{item.imei,jdbcType=VARCHAR}
#{item.dperiod,jdbcType=INTEGER}
#{item.companyId,jdbcType=INTEGER}
)