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} imei, id, device_type, order_id, project_id, name, lon, lat, buy_date, buy_long, time, imsi, iccid, address, delivered, platform, deviceId, company_id, period, belong, handle_result, register_info_id, updatetime delete from device_detail where imei = #{imei,jdbcType=VARCHAR} delete from device_detail insert into device_detail (imei, id, device_type, order_id, project_id, name, lon, lat, buy_date, buy_long, time, imsi, iccid, address, delivered, platform, deviceId, company_id, period, belong, handle_result, register_info_id, updatetime) values (#{imei,jdbcType=VARCHAR}, #{id,jdbcType=INTEGER}, #{deviceType,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{lon,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{buyDate,jdbcType=TIMESTAMP}, #{buyLong,jdbcType=REAL}, #{time,jdbcType=TIMESTAMP}, #{imsi,jdbcType=VARCHAR}, #{iccid,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{delivered,jdbcType=INTEGER}, #{platform,jdbcType=VARCHAR}, #{deviceid,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{period,jdbcType=INTEGER}, #{belong,jdbcType=INTEGER}, #{handleResult,jdbcType=VARCHAR}, #{registerInfoId,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP}) insert into device_detail imei, id, device_type, order_id, project_id, name, lon, lat, buy_date, buy_long, time, imsi, iccid, address, delivered, platform, deviceId, company_id, period, belong, handle_result, register_info_id, updatetime, #{imei,jdbcType=VARCHAR}, #{id,jdbcType=INTEGER}, #{deviceType,jdbcType=INTEGER}, #{orderId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{lon,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{buyDate,jdbcType=TIMESTAMP}, #{buyLong,jdbcType=REAL}, #{time,jdbcType=TIMESTAMP}, #{imsi,jdbcType=VARCHAR}, #{iccid,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{delivered,jdbcType=INTEGER}, #{platform,jdbcType=VARCHAR}, #{deviceid,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, #{period,jdbcType=INTEGER}, #{belong,jdbcType=INTEGER}, #{handleResult,jdbcType=VARCHAR}, #{registerInfoId,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP}, update device_detail imei = #{record.imei,jdbcType=VARCHAR}, id = #{record.id,jdbcType=INTEGER}, device_type = #{record.deviceType,jdbcType=INTEGER}, order_id = #{record.orderId,jdbcType=INTEGER}, project_id = #{record.projectId,jdbcType=INTEGER}, name = #{record.name,jdbcType=VARCHAR}, lon = #{record.lon,jdbcType=DOUBLE}, lat = #{record.lat,jdbcType=DOUBLE}, buy_date = #{record.buyDate,jdbcType=TIMESTAMP}, buy_long = #{record.buyLong,jdbcType=REAL}, time = #{record.time,jdbcType=TIMESTAMP}, imsi = #{record.imsi,jdbcType=VARCHAR}, iccid = #{record.iccid,jdbcType=VARCHAR}, address = #{record.address,jdbcType=VARCHAR}, delivered = #{record.delivered,jdbcType=INTEGER}, platform = #{record.platform,jdbcType=VARCHAR}, deviceId = #{record.deviceid,jdbcType=VARCHAR}, company_id = #{record.companyId,jdbcType=INTEGER}, period = #{record.period,jdbcType=INTEGER}, belong = #{record.belong,jdbcType=INTEGER}, handle_result = #{record.handleResult,jdbcType=VARCHAR}, register_info_id = #{record.registerInfoId,jdbcType=INTEGER}, updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, update device_detail set imei = #{record.imei,jdbcType=VARCHAR}, id = #{record.id,jdbcType=INTEGER}, device_type = #{record.deviceType,jdbcType=INTEGER}, order_id = #{record.orderId,jdbcType=INTEGER}, project_id = #{record.projectId,jdbcType=INTEGER}, name = #{record.name,jdbcType=VARCHAR}, lon = #{record.lon,jdbcType=DOUBLE}, lat = #{record.lat,jdbcType=DOUBLE}, buy_date = #{record.buyDate,jdbcType=TIMESTAMP}, buy_long = #{record.buyLong,jdbcType=REAL}, time = #{record.time,jdbcType=TIMESTAMP}, imsi = #{record.imsi,jdbcType=VARCHAR}, iccid = #{record.iccid,jdbcType=VARCHAR}, address = #{record.address,jdbcType=VARCHAR}, delivered = #{record.delivered,jdbcType=INTEGER}, platform = #{record.platform,jdbcType=VARCHAR}, deviceId = #{record.deviceid,jdbcType=VARCHAR}, company_id = #{record.companyId,jdbcType=INTEGER}, period = #{record.period,jdbcType=INTEGER}, belong = #{record.belong,jdbcType=INTEGER}, handle_result = #{record.handleResult,jdbcType=VARCHAR}, register_info_id = #{record.registerInfoId,jdbcType=INTEGER}, updatetime = #{record.updatetime,jdbcType=TIMESTAMP} update device_detail id = #{id,jdbcType=INTEGER}, device_type = #{deviceType,jdbcType=INTEGER}, order_id = #{orderId,jdbcType=INTEGER}, project_id = #{projectId,jdbcType=INTEGER}, name = #{name,jdbcType=VARCHAR}, lon = #{lon,jdbcType=DOUBLE}, lat = #{lat,jdbcType=DOUBLE}, buy_date = #{buyDate,jdbcType=TIMESTAMP}, buy_long = #{buyLong,jdbcType=REAL}, time = #{time,jdbcType=TIMESTAMP}, imsi = #{imsi,jdbcType=VARCHAR}, iccid = #{iccid,jdbcType=VARCHAR}, address = #{address,jdbcType=VARCHAR}, delivered = #{delivered,jdbcType=INTEGER}, platform = #{platform,jdbcType=VARCHAR}, deviceId = #{deviceid,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=INTEGER}, period = #{period,jdbcType=INTEGER}, belong = #{belong,jdbcType=INTEGER}, handle_result = #{handleResult,jdbcType=VARCHAR}, register_info_id = #{registerInfoId,jdbcType=INTEGER}, updatetime = #{updatetime,jdbcType=TIMESTAMP}, where imei = #{imei,jdbcType=VARCHAR} update device_detail set id = #{id,jdbcType=INTEGER}, device_type = #{deviceType,jdbcType=INTEGER}, order_id = #{orderId,jdbcType=INTEGER}, project_id = #{projectId,jdbcType=INTEGER}, name = #{name,jdbcType=VARCHAR}, lon = #{lon,jdbcType=DOUBLE}, lat = #{lat,jdbcType=DOUBLE}, buy_date = #{buyDate,jdbcType=TIMESTAMP}, buy_long = #{buyLong,jdbcType=REAL}, time = #{time,jdbcType=TIMESTAMP}, imsi = #{imsi,jdbcType=VARCHAR}, iccid = #{iccid,jdbcType=VARCHAR}, address = #{address,jdbcType=VARCHAR}, delivered = #{delivered,jdbcType=INTEGER}, platform = #{platform,jdbcType=VARCHAR}, deviceId = #{deviceid,jdbcType=VARCHAR}, company_id = #{companyId,jdbcType=INTEGER}, period = #{period,jdbcType=INTEGER}, belong = #{belong,jdbcType=INTEGER}, handle_result = #{handleResult,jdbcType=VARCHAR}, register_info_id = #{registerInfoId,jdbcType=INTEGER}, updatetime = now() where imei = #{imei,jdbcType=VARCHAR} insert into device_detail (imei, id, device_type, order_id, project_id, name, lon, lat, buy_date, buy_long, time, imsi, iccid, address, delivered, platform, deviceId, company_id, period, belong, handle_result, register_info_id, updatetime) values (#{item.imei,jdbcType=VARCHAR}, #{item.id,jdbcType=INTEGER}, #{item.deviceType,jdbcType=INTEGER}, #{item.orderId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, #{item.lon,jdbcType=DOUBLE}, #{item.lat,jdbcType=DOUBLE}, #{item.buyDate,jdbcType=TIMESTAMP}, #{item.buyLong,jdbcType=REAL}, #{item.time,jdbcType=TIMESTAMP}, #{item.imsi,jdbcType=VARCHAR}, #{item.iccid,jdbcType=VARCHAR}, #{item.address,jdbcType=VARCHAR}, #{item.delivered,jdbcType=INTEGER}, #{item.platform,jdbcType=VARCHAR}, #{item.deviceid,jdbcType=VARCHAR}, #{item.companyId,jdbcType=INTEGER}, #{item.period,jdbcType=INTEGER}, #{item.belong,jdbcType=INTEGER}, #{item.handleResult,jdbcType=VARCHAR}, #{item.registerInfoId,jdbcType=INTEGER}, #{item.updatetime,jdbcType=TIMESTAMP}) insert into device_detail ( ${column.escapedColumnName} ) values ( #{item.imei,jdbcType=VARCHAR} #{item.id,jdbcType=INTEGER} #{item.deviceType,jdbcType=INTEGER} #{item.orderId,jdbcType=INTEGER} #{item.projectId,jdbcType=INTEGER} #{item.name,jdbcType=VARCHAR} #{item.lon,jdbcType=DOUBLE} #{item.lat,jdbcType=DOUBLE} #{item.buyDate,jdbcType=TIMESTAMP} #{item.buyLong,jdbcType=REAL} #{item.time,jdbcType=TIMESTAMP} #{item.imsi,jdbcType=VARCHAR} #{item.iccid,jdbcType=VARCHAR} #{item.address,jdbcType=VARCHAR} #{item.delivered,jdbcType=INTEGER} #{item.platform,jdbcType=VARCHAR} #{item.deviceid,jdbcType=VARCHAR} #{item.companyId,jdbcType=INTEGER} #{item.period,jdbcType=INTEGER} #{item.belong,jdbcType=INTEGER} #{item.handleResult,jdbcType=VARCHAR} #{item.registerInfoId,jdbcType=INTEGER} #{item.updatetime,jdbcType=TIMESTAMP} ) update device_detail lon = #{deviceDetail.lon,jdbcType=DOUBLE}, lat = #{deviceDetail.lat,jdbcType=DOUBLE}, imei = #{deviceDetail.imei,jdbcType=VARCHAR}, updatetime=now() where imei = #{deviceDetail.imei,jdbcType=VARCHAR}