sql的插入或者修改
<select id="insertOrUpdateTenantDetail" parameterType="tenantDetailDO"> INSERT INTO tenant_detail (tenant_id,province_id,city_id,zone_id,address,marry,education,political_visage, industry,company_name,photo_img,remark,province_name,city_name,zone_name,gmt_create,created_by,gmt_last_update,last_updated_by) VALUES (#{tenantId},#{provinceId},#{cityId},#{zoneId},#{address},#{marry},#{education},#{politicalVisage}, #{industry},#{companyName},#{photoImg},#{remark},#{provinceName},#{cityName},#{zoneName},SYSDATE(),#{createdBy},SYSDATE(),#{lastUpdatedBy}) ON DUPLICATE KEY UPDATE province_id=#{provinceId}, city_id=#{cityId}, zone_id=#{zoneId}, address=#{address}, marry=#{marry}, education=#{education}, political_visage=#{politicalVisage}, industry=#{industry}, company_name=#{companyName}, photo_img=#{photoImg}, remark=#{remark}, province_name=#{provinceName}, city_name=#{cityName}, zone_name=#{zoneName}, gmt_last_update=SYSDATE(), last_updated_by=#{lastUpdatedBy} </select>