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, sim, equipment_no, version, status, lng, lat, gprs_lac, gprs_ci, wifi_bbsid,
temperature, battery, sig_2g, sig_nb, sig_wifi, ext0, alarm, run_cnt, crc_code, indate
delete from mould_history
where id = #{id,jdbcType=BIGINT}
delete from mould_history
SELECT LAST_INSERT_ID()
insert into mould_history (sim, equipment_no, version,
status, lng, lat, gprs_lac,
gprs_ci, wifi_bbsid, temperature,
battery, sig_2g, sig_nb,
sig_wifi, ext0, alarm,
run_cnt, crc_code, indate
)
values (#{sim,jdbcType=VARCHAR}, #{equipmentNo,jdbcType=VARCHAR}, #{version,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR}, #{lng,jdbcType=VARCHAR}, #{lat,jdbcType=VARCHAR}, #{gprsLac,jdbcType=VARCHAR},
#{gprsCi,jdbcType=VARCHAR}, #{wifiBbsid,jdbcType=VARCHAR}, #{temperature,jdbcType=INTEGER},
#{battery,jdbcType=INTEGER}, #{sig2g,jdbcType=INTEGER}, #{sigNb,jdbcType=INTEGER},
#{sigWifi,jdbcType=INTEGER}, #{ext0,jdbcType=VARCHAR}, #{alarm,jdbcType=INTEGER},
#{runCnt,jdbcType=INTEGER}, #{crcCode,jdbcType=VARCHAR}, #{indate,jdbcType=TIMESTAMP}
)
SELECT LAST_INSERT_ID()
insert into mould_history
sim,
equipment_no,
version,
status,
lng,
lat,
gprs_lac,
gprs_ci,
wifi_bbsid,
temperature,
battery,
sig_2g,
sig_nb,
sig_wifi,
ext0,
alarm,
run_cnt,
crc_code,
indate,
#{sim,jdbcType=VARCHAR},
#{equipmentNo,jdbcType=VARCHAR},
#{version,jdbcType=VARCHAR},
#{status,jdbcType=VARCHAR},
#{lng,jdbcType=VARCHAR},
#{lat,jdbcType=VARCHAR},
#{gprsLac,jdbcType=VARCHAR},
#{gprsCi,jdbcType=VARCHAR},
#{wifiBbsid,jdbcType=VARCHAR},
#{temperature,jdbcType=INTEGER},
#{battery,jdbcType=INTEGER},
#{sig2g,jdbcType=INTEGER},
#{sigNb,jdbcType=INTEGER},
#{sigWifi,jdbcType=INTEGER},
#{ext0,jdbcType=VARCHAR},
#{alarm,jdbcType=INTEGER},
#{runCnt,jdbcType=INTEGER},
#{crcCode,jdbcType=VARCHAR},
#{indate,jdbcType=TIMESTAMP},
update mould_history
id = #{record.id,jdbcType=BIGINT},
sim = #{record.sim,jdbcType=VARCHAR},
equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
version = #{record.version,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
lng = #{record.lng,jdbcType=VARCHAR},
lat = #{record.lat,jdbcType=VARCHAR},
gprs_lac = #{record.gprsLac,jdbcType=VARCHAR},
gprs_ci = #{record.gprsCi,jdbcType=VARCHAR},
wifi_bbsid = #{record.wifiBbsid,jdbcType=VARCHAR},
temperature = #{record.temperature,jdbcType=INTEGER},
battery = #{record.battery,jdbcType=INTEGER},
sig_2g = #{record.sig2g,jdbcType=INTEGER},
sig_nb = #{record.sigNb,jdbcType=INTEGER},
sig_wifi = #{record.sigWifi,jdbcType=INTEGER},
ext0 = #{record.ext0,jdbcType=VARCHAR},
alarm = #{record.alarm,jdbcType=INTEGER},
run_cnt = #{record.runCnt,jdbcType=INTEGER},
crc_code = #{record.crcCode,jdbcType=VARCHAR},
indate = #{record.indate,jdbcType=TIMESTAMP},
update mould_history
set id = #{record.id,jdbcType=BIGINT},
sim = #{record.sim,jdbcType=VARCHAR},
equipment_no = #{record.equipmentNo,jdbcType=VARCHAR},
version = #{record.version,jdbcType=VARCHAR},
status = #{record.status,jdbcType=VARCHAR},
lng = #{record.lng,jdbcType=VARCHAR},
lat = #{record.lat,jdbcType=VARCHAR},
gprs_lac = #{record.gprsLac,jdbcType=VARCHAR},
gprs_ci = #{record.gprsCi,jdbcType=VARCHAR},
wifi_bbsid = #{record.wifiBbsid,jdbcType=VARCHAR},
temperature = #{record.temperature,jdbcType=INTEGER},
battery = #{record.battery,jdbcType=INTEGER},
sig_2g = #{record.sig2g,jdbcType=INTEGER},
sig_nb = #{record.sigNb,jdbcType=INTEGER},
sig_wifi = #{record.sigWifi,jdbcType=INTEGER},
ext0 = #{record.ext0,jdbcType=VARCHAR},
alarm = #{record.alarm,jdbcType=INTEGER},
run_cnt = #{record.runCnt,jdbcType=INTEGER},
crc_code = #{record.crcCode,jdbcType=VARCHAR},
indate = #{record.indate,jdbcType=TIMESTAMP}
update mould_history
sim = #{sim,jdbcType=VARCHAR},
equipment_no = #{equipmentNo,jdbcType=VARCHAR},
version = #{version,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
lng = #{lng,jdbcType=VARCHAR},
lat = #{lat,jdbcType=VARCHAR},
gprs_lac = #{gprsLac,jdbcType=VARCHAR},
gprs_ci = #{gprsCi,jdbcType=VARCHAR},
wifi_bbsid = #{wifiBbsid,jdbcType=VARCHAR},
temperature = #{temperature,jdbcType=INTEGER},
battery = #{battery,jdbcType=INTEGER},
sig_2g = #{sig2g,jdbcType=INTEGER},
sig_nb = #{sigNb,jdbcType=INTEGER},
sig_wifi = #{sigWifi,jdbcType=INTEGER},
ext0 = #{ext0,jdbcType=VARCHAR},
alarm = #{alarm,jdbcType=INTEGER},
run_cnt = #{runCnt,jdbcType=INTEGER},
crc_code = #{crcCode,jdbcType=VARCHAR},
indate = #{indate,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=BIGINT}
update mould_history
set sim = #{sim,jdbcType=VARCHAR},
equipment_no = #{equipmentNo,jdbcType=VARCHAR},
version = #{version,jdbcType=VARCHAR},
status = #{status,jdbcType=VARCHAR},
lng = #{lng,jdbcType=VARCHAR},
lat = #{lat,jdbcType=VARCHAR},
gprs_lac = #{gprsLac,jdbcType=VARCHAR},
gprs_ci = #{gprsCi,jdbcType=VARCHAR},
wifi_bbsid = #{wifiBbsid,jdbcType=VARCHAR},
temperature = #{temperature,jdbcType=INTEGER},
battery = #{battery,jdbcType=INTEGER},
sig_2g = #{sig2g,jdbcType=INTEGER},
sig_nb = #{sigNb,jdbcType=INTEGER},
sig_wifi = #{sigWifi,jdbcType=INTEGER},
ext0 = #{ext0,jdbcType=VARCHAR},
alarm = #{alarm,jdbcType=INTEGER},
run_cnt = #{runCnt,jdbcType=INTEGER},
crc_code = #{crcCode,jdbcType=VARCHAR},
indate = #{indate,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}