id, site_id, code, `name`, customer_id, province, city, region, longitude, latitude, district_id, address, remark, `status`, date_create, date_update, create_by, update_by sc.id, sc.site_id, sc.`name`, sc.code, sc.customer_id, sc.province, sc.city, sc.region, sc.longitude, sc.latitude, sc.district_id, sc.address, sc.remark, sc.`status`, sc.date_create, sc.date_update, sc.create_by, sc.update_by INSERT INTO sc_community ( id, site_id, `name`, code, customer_id, org_id, province, city, region, longitude, latitude, district_id, address, remark, `status`, date_create, date_update, create_by, update_by ) VALUES ( #{community.id,jdbcType=INTEGER}, #{community.siteId,jdbcType=INTEGER}, #{community.name,jdbcType=VARCHAR}, #{community.code,jdbcType=VARCHAR}, #{community.customerId,jdbcType=INTEGER}, #{community.orgId,jdbcType=INTEGER}, #{community.province,jdbcType=INTEGER}, #{community.city,jdbcType=INTEGER}, #{community.region,jdbcType=INTEGER}, #{community.longitude,jdbcType=VARCHAR}, #{community.latitude,jdbcType=VARCHAR}, #{community.districtId,jdbcType=INTEGER}, #{community.address,jdbcType=VARCHAR}, #{community.remark,jdbcType=VARCHAR}, #{community.status,jdbcType=INTEGER}, #{community.dateCreate,jdbcType=TIMESTAMP}, #{community.dateUpdate,jdbcType=TIMESTAMP}, #{community.createBy,jdbcType=VARCHAR}, #{community.updateBy,jdbcType=VARCHAR} ) INSERT INTO sc_community id, site_id, `name`, code, customer_id, province, city, region, longitude, latitude, district_id, address, remark, `status`, date_create, date_update, create_by, update_by, VALUES #{community.id,jdbcType=INTEGER}, #{community.siteId,jdbcType=INTEGER}, #{community.name,jdbcType=VARCHAR}, #{community.code,jdbcType=VARCHAR}, #{community.customerId,jdbcType=INTEGER}, #{community.province,jdbcType=INTEGER}, #{community.city,jdbcType=INTEGER}, #{community.region,jdbcType=INTEGER}, #{community.longitude,jdbcType=VARCHAR}, #{community.latitude,jdbcType=VARCHAR}, #{community.districtId,jdbcType=INTEGER}, #{community.address,jdbcType=VARCHAR}, #{community.remark,jdbcType=VARCHAR}, #{community.status,jdbcType=INTEGER}, #{community.dateCreate,jdbcType=TIMESTAMP}, #{community.dateUpdate,jdbcType=TIMESTAMP}, #{community.createBy,jdbcType=VARCHAR}, #{community.updateBy,jdbcType=VARCHAR}, INSERT INTO sc_community ( id, site_id, `name`, code, customer_id, province, city, region, longitude, latitude, district_id, address, remark, `status`, date_create, date_update, create_by, update_by )VALUES ( #{community.id,jdbcType=INTEGER}, #{community.siteId,jdbcType=INTEGER}, #{community.name,jdbcType=VARCHAR}, #{community.code,jdbcType=VARCHAR}, #{community.customerId,jdbcType=INTEGER}, #{community.province,jdbcType=INTEGER}, #{community.city,jdbcType=INTEGER}, #{community.region,jdbcType=INTEGER}, #{community.longitude,jdbcType=VARCHAR}, #{community.latitude,jdbcType=VARCHAR}, #{community.districtId,jdbcType=INTEGER}, #{community.address,jdbcType=VARCHAR}, #{community.remark,jdbcType=VARCHAR}, #{community.status,jdbcType=INTEGER}, #{community.dateCreate,jdbcType=TIMESTAMP}, #{community.dateUpdate,jdbcType=TIMESTAMP}, #{community.createBy,jdbcType=VARCHAR}, #{community.updateBy,jdbcType=VARCHAR} ) UPDATE sc_community site_id= #{community.siteId,jdbcType=INTEGER}, `name`= #{community.name,jdbcType=VARCHAR}, customer_id= #{community.customerId,jdbcType=INTEGER}, org_id= #{community.orgId,jdbcType=INTEGER}, province= #{community.province,jdbcType=INTEGER}, city= #{community.city,jdbcType=INTEGER}, region= #{community.region,jdbcType=INTEGER}, longitude = #{community.longitude,jdbcType=VARCHAR}, latitude = #{community.latitude,jdbcType=VARCHAR}, district_id= #{community.districtId,jdbcType=INTEGER}, address= #{community.address,jdbcType=VARCHAR}, remark= #{community.remark,jdbcType=VARCHAR}, `status`= #{community.status,jdbcType=INTEGER}, date_create= #{community.dateCreate,jdbcType=TIMESTAMP}, date_update= #{community.dateUpdate,jdbcType=TIMESTAMP}, create_by= #{community.createBy,jdbcType=VARCHAR}, update_by= #{community.updateBy,jdbcType=VARCHAR} WHERE id = #{community.id,jdbcType=INTEGER}