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, factory_name, factory_area, y_lng, x_lat, indate, company_id delete from tb_factory where id = #{id,jdbcType=INTEGER} delete from tb_factory SELECT LAST_INSERT_ID() insert into tb_factory (factory_name, factory_area, y_lng, x_lat, indate, company_id ) values (#{factoryName,jdbcType=VARCHAR}, #{factoryArea,jdbcType=VARCHAR}, #{yLng,jdbcType=VARCHAR}, #{xLat,jdbcType=VARCHAR}, #{indate,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER} ) SELECT LAST_INSERT_ID() insert into tb_factory factory_name, factory_area, y_lng, x_lat, indate, company_id, #{factoryName,jdbcType=VARCHAR}, #{factoryArea,jdbcType=VARCHAR}, #{yLng,jdbcType=VARCHAR}, #{xLat,jdbcType=VARCHAR}, #{indate,jdbcType=TIMESTAMP}, #{companyId,jdbcType=INTEGER}, update tb_factory id = #{record.id,jdbcType=INTEGER}, factory_name = #{record.factoryName,jdbcType=VARCHAR}, factory_area = #{record.factoryArea,jdbcType=VARCHAR}, y_lng = #{record.yLng,jdbcType=VARCHAR}, x_lat = #{record.xLat,jdbcType=VARCHAR}, indate = #{record.indate,jdbcType=TIMESTAMP}, company_id = #{record.companyId,jdbcType=INTEGER}, update tb_factory set id = #{record.id,jdbcType=INTEGER}, factory_name = #{record.factoryName,jdbcType=VARCHAR}, factory_area = #{record.factoryArea,jdbcType=VARCHAR}, y_lng = #{record.yLng,jdbcType=VARCHAR}, x_lat = #{record.xLat,jdbcType=VARCHAR}, indate = #{record.indate,jdbcType=TIMESTAMP}, company_id = #{record.companyId,jdbcType=INTEGER} update tb_factory factory_name = #{factoryName,jdbcType=VARCHAR}, factory_area = #{factoryArea,jdbcType=VARCHAR}, y_lng = #{yLng,jdbcType=VARCHAR}, x_lat = #{xLat,jdbcType=VARCHAR}, indate = #{indate,jdbcType=TIMESTAMP}, company_id = #{companyId,jdbcType=INTEGER}, where id = #{id,jdbcType=INTEGER} update tb_factory set factory_name = #{factoryName,jdbcType=VARCHAR}, factory_area = #{factoryArea,jdbcType=VARCHAR}, y_lng = #{yLng,jdbcType=VARCHAR}, x_lat = #{xLat,jdbcType=VARCHAR}, indate = #{indate,jdbcType=TIMESTAMP}, company_id = #{companyId,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}