id, site_id, name, phone, code, address, fire_resp_name, fire_resp_phone, fire_resp_idno, fire_manage_name, fire_manage_phone, fire_manage_idno, detail_address, road_name, region_code, stree_no, door_no, buildl_no, longitude, latitude, legal_person_name, legal_person_phone, legal_person_idno, regist_date, contact_person_name, contact_person_phone, nature, type, category, is_important, important_date, other_desc, status, create_date, create_by, update_date, update_by INSERT INTO sc_access_unit ( id, site_id, name, phone, code, address, fire_resp_name, fire_resp_phone, fire_resp_idno, fire_manage_name, fire_manage_phone, fire_manage_idno, detail_address, road_name, region_code, stree_no, door_no, buildl_no, longitude, latitude, legal_person_name, legal_person_phone, legal_person_idno, regist_date, contact_person_name, contact_person_phone, nature, type, category, is_important, important_date, other_desc, status, create_date, create_by, update_date, update_by ) VALUES ( #{accessUnit.id,jdbcType=INTEGER}, #{accessUnit.siteId,jdbcType=INTEGER}, #{accessUnit.name,jdbcType=VARCHAR}, #{accessUnit.phone,jdbcType=VARCHAR}, #{accessUnit.code,jdbcType=VARCHAR}, #{accessUnit.address,jdbcType=VARCHAR}, #{accessUnit.fireRespName,jdbcType=VARCHAR}, #{accessUnit.fireRespPhone,jdbcType=VARCHAR}, #{accessUnit.fireRespIdno,jdbcType=VARCHAR}, #{accessUnit.fireManageName,jdbcType=VARCHAR}, #{accessUnit.fireManagePhone,jdbcType=VARCHAR}, #{accessUnit.fireManageIdno,jdbcType=VARCHAR}, #{accessUnit.detailAddress,jdbcType=VARCHAR}, #{accessUnit.roadName,jdbcType=VARCHAR}, #{accessUnit.regionCode,jdbcType=VARCHAR}, #{accessUnit.streeNo,jdbcType=VARCHAR}, #{accessUnit.doorNo,jdbcType=VARCHAR}, #{accessUnit.buildlNo,jdbcType=VARCHAR}, #{accessUnit.longitude,jdbcType=VARCHAR}, #{accessUnit.latitude,jdbcType=VARCHAR}, #{accessUnit.legalPersonName,jdbcType=VARCHAR}, #{accessUnit.legalPersonPhone,jdbcType=VARCHAR}, #{accessUnit.legalPersonIdno,jdbcType=VARCHAR}, #{accessUnit.registDate,jdbcType=TIMESTAMP}, #{accessUnit.contactPersonName,jdbcType=VARCHAR}, #{accessUnit.contactPersonPhone,jdbcType=VARCHAR}, #{accessUnit.nature,jdbcType=INTEGER}, #{accessUnit.type,jdbcType=INTEGER}, #{accessUnit.category,jdbcType=INTEGER}, #{accessUnit.isImportant,jdbcType=INTEGER}, #{accessUnit.importantDate,jdbcType=TIMESTAMP}, #{accessUnit.otherDesc,jdbcType=VARCHAR}, #{accessUnit.status,jdbcType=INTEGER}, #{accessUnit.createDate,jdbcType=TIMESTAMP}, #{accessUnit.createBy,jdbcType=VARCHAR}, #{accessUnit.updateDate,jdbcType=TIMESTAMP}, #{accessUnit.updateBy,jdbcType=VARCHAR} ) INSERT INTO sc_access_unit id, site_id, name, phone, code, address, fire_resp_name, fire_resp_phone, fire_resp_idno, fire_manage_name, fire_manage_phone, fire_manage_idno, detail_address, road_name, region_code, stree_no, door_no, buildl_no, longitude, latitude, legal_person_name, legal_person_phone, legal_person_idno, regist_date, contact_person_name, contact_person_phone, nature, type, category, is_important, important_date, other_desc, status, create_date, create_by, update_date, update_by, VALUES #{accessUnit.id,jdbcType=INTEGER}, #{accessUnit.siteId,jdbcType=INTEGER}, #{accessUnit.name,jdbcType=VARCHAR}, #{accessUnit.phone,jdbcType=VARCHAR}, #{accessUnit.code,jdbcType=VARCHAR}, #{accessUnit.address,jdbcType=VARCHAR}, #{accessUnit.fireRespName,jdbcType=VARCHAR}, #{accessUnit.fireRespPhone,jdbcType=VARCHAR}, #{accessUnit.fireRespIdno,jdbcType=VARCHAR}, #{accessUnit.fireManageName,jdbcType=VARCHAR}, #{accessUnit.fireManagePhone,jdbcType=VARCHAR}, #{accessUnit.fireManageIdno,jdbcType=VARCHAR}, #{accessUnit.detailAddress,jdbcType=VARCHAR}, #{accessUnit.roadName,jdbcType=VARCHAR}, #{accessUnit.regionCode,jdbcType=VARCHAR}, #{accessUnit.streeNo,jdbcType=VARCHAR}, #{accessUnit.doorNo,jdbcType=VARCHAR}, #{accessUnit.buildlNo,jdbcType=VARCHAR}, #{accessUnit.longitude,jdbcType=VARCHAR}, #{accessUnit.latitude,jdbcType=VARCHAR}, #{accessUnit.legalPersonName,jdbcType=VARCHAR}, #{accessUnit.legalPersonPhone,jdbcType=VARCHAR}, #{accessUnit.legalPersonIdno,jdbcType=VARCHAR}, #{accessUnit.registDate,jdbcType=TIMESTAMP}, #{accessUnit.contactPersonName,jdbcType=VARCHAR}, #{accessUnit.contactPersonPhone,jdbcType=VARCHAR}, #{accessUnit.nature,jdbcType=INTEGER}, #{accessUnit.type,jdbcType=INTEGER}, #{accessUnit.category,jdbcType=INTEGER}, #{accessUnit.isImportant,jdbcType=INTEGER}, #{accessUnit.importantDate,jdbcType=TIMESTAMP}, #{accessUnit.otherDesc,jdbcType=VARCHAR}, #{accessUnit.status,jdbcType=INTEGER}, #{accessUnit.createDate,jdbcType=TIMESTAMP}, #{accessUnit.createBy,jdbcType=VARCHAR}, #{accessUnit.updateDate,jdbcType=TIMESTAMP}, #{accessUnit.updateBy,jdbcType=VARCHAR}, INSERT INTO sc_access_unit ( id, site_id, name, phone, code, address, fire_resp_name, fire_resp_phone, fire_resp_idno, fire_manage_name, fire_manage_phone, fire_manage_idno, detail_address, road_name, region_code, stree_no, door_no, buildl_no, longitude, latitude, legal_person_name, legal_person_phone, legal_person_idno, regist_date, contact_person_name, contact_person_phone, nature, type, category, is_important, important_date, other_desc, status, create_date, create_by, update_date, update_by )VALUES ( #{accessUnit.id,jdbcType=INTEGER}, #{accessUnit.siteId,jdbcType=INTEGER}, #{accessUnit.name,jdbcType=VARCHAR}, #{accessUnit.phone,jdbcType=VARCHAR}, #{accessUnit.code,jdbcType=VARCHAR}, #{accessUnit.address,jdbcType=VARCHAR}, #{accessUnit.fireRespName,jdbcType=VARCHAR}, #{accessUnit.fireRespPhone,jdbcType=VARCHAR}, #{accessUnit.fireRespIdno,jdbcType=VARCHAR}, #{accessUnit.fireManageName,jdbcType=VARCHAR}, #{accessUnit.fireManagePhone,jdbcType=VARCHAR}, #{accessUnit.fireManageIdno,jdbcType=VARCHAR}, #{accessUnit.detailAddress,jdbcType=VARCHAR}, #{accessUnit.roadName,jdbcType=VARCHAR}, #{accessUnit.regionCode,jdbcType=VARCHAR}, #{accessUnit.streeNo,jdbcType=VARCHAR}, #{accessUnit.doorNo,jdbcType=VARCHAR}, #{accessUnit.buildlNo,jdbcType=VARCHAR}, #{accessUnit.longitude,jdbcType=VARCHAR}, #{accessUnit.latitude,jdbcType=VARCHAR}, #{accessUnit.legalPersonName,jdbcType=VARCHAR}, #{accessUnit.legalPersonPhone,jdbcType=VARCHAR}, #{accessUnit.legalPersonIdno,jdbcType=VARCHAR}, #{accessUnit.registDate,jdbcType=TIMESTAMP}, #{accessUnit.contactPersonName,jdbcType=VARCHAR}, #{accessUnit.contactPersonPhone,jdbcType=VARCHAR}, #{accessUnit.nature,jdbcType=INTEGER}, #{accessUnit.type,jdbcType=INTEGER}, #{accessUnit.category,jdbcType=INTEGER}, #{accessUnit.isImportant,jdbcType=INTEGER}, #{accessUnit.importantDate,jdbcType=TIMESTAMP}, #{accessUnit.otherDesc,jdbcType=VARCHAR}, #{accessUnit.status,jdbcType=INTEGER}, #{accessUnit.createDate,jdbcType=TIMESTAMP}, #{accessUnit.createBy,jdbcType=VARCHAR}, #{accessUnit.updateDate,jdbcType=TIMESTAMP}, #{accessUnit.updateBy,jdbcType=VARCHAR} ) UPDATE sc_access_unit site_id= #{accessUnit.siteId,jdbcType=INTEGER}, name= #{accessUnit.name,jdbcType=VARCHAR}, phone= #{accessUnit.phone,jdbcType=VARCHAR}, code= #{accessUnit.code,jdbcType=VARCHAR}, address= #{accessUnit.address,jdbcType=VARCHAR}, fire_resp_name= #{accessUnit.fireRespName,jdbcType=VARCHAR}, fire_resp_phone= #{accessUnit.fireRespPhone,jdbcType=VARCHAR}, fire_resp_idno= #{accessUnit.fireRespIdno,jdbcType=VARCHAR}, fire_manage_name= #{accessUnit.fireManageName,jdbcType=VARCHAR}, fire_manage_phone= #{accessUnit.fireManagePhone,jdbcType=VARCHAR}, fire_manage_idno= #{accessUnit.fireManageIdno,jdbcType=VARCHAR}, detail_address= #{accessUnit.detailAddress,jdbcType=VARCHAR}, road_name= #{accessUnit.roadName,jdbcType=VARCHAR}, region_code= #{accessUnit.regionCode,jdbcType=VARCHAR}, stree_no= #{accessUnit.streeNo,jdbcType=VARCHAR}, door_no= #{accessUnit.doorNo,jdbcType=VARCHAR}, buildl_no= #{accessUnit.buildlNo,jdbcType=VARCHAR}, longitude= #{accessUnit.longitude,jdbcType=VARCHAR}, latitude= #{accessUnit.latitude,jdbcType=VARCHAR}, legal_person_name= #{accessUnit.legalPersonName,jdbcType=VARCHAR}, legal_person_phone= #{accessUnit.legalPersonPhone,jdbcType=VARCHAR}, legal_person_idno= #{accessUnit.legalPersonIdno,jdbcType=VARCHAR}, regist_date= #{accessUnit.registDate,jdbcType=TIMESTAMP}, contact_person_name= #{accessUnit.contactPersonName,jdbcType=VARCHAR}, contact_person_phone= #{accessUnit.contactPersonPhone,jdbcType=VARCHAR}, nature= #{accessUnit.nature,jdbcType=INTEGER}, type= #{accessUnit.type,jdbcType=INTEGER}, category= #{accessUnit.category,jdbcType=INTEGER}, is_important= #{accessUnit.isImportant,jdbcType=INTEGER}, important_date= #{accessUnit.importantDate,jdbcType=TIMESTAMP}, other_desc= #{accessUnit.otherDesc,jdbcType=VARCHAR}, status= #{accessUnit.status,jdbcType=INTEGER}, create_date= #{accessUnit.createDate,jdbcType=TIMESTAMP}, create_by= #{accessUnit.createBy,jdbcType=VARCHAR}, update_date= #{accessUnit.updateDate,jdbcType=TIMESTAMP}, update_by= #{accessUnit.updateBy,jdbcType=VARCHAR} WHERE id = #{accessUnit.id,jdbcType=INTEGER}