REPLACE INTO basic_corp (thirdId,erpId,`name`,spell, addr,status,`type`,creditNo,contact,mobile,thirdId1,thirdId2,thirdId3,thirdId4, thirdName,thirdName1,thirdName2,thirdName3,thirdName4,updateTime,corpType,outType) values ( #{thirdId}, #{erpId}, #{name}, #{spell}, #{addr}, #{status}, #{type}, #{creditNo}, #{contact}, #{mobile}, #{thirdId1}, #{thirdId2}, #{thirdId3}, #{thirdId4}, #{thirdName}, #{thirdName1}, #{thirdName2}, #{thirdName3}, #{thirdName4}, #{updateTime}, #{corpType}, #{outType} ) insert ignore INTO basic_corp (thirdId,erpId,`name`,spell, addr,status,`type`,creditNo,contact,mobile,thirdId1,thirdId2,thirdId3,thirdId4, thirdName,thirdName1,thirdName2,thirdName3,thirdName4,updateTime,corpType,outType) values ( #{thirdId}, #{erpId}, #{name}, #{spell}, #{addr}, #{status}, #{type}, #{creditNo}, #{contact}, #{mobile}, #{thirdId1}, #{thirdId2}, #{thirdId3}, #{thirdId4}, #{thirdName}, #{thirdName1}, #{thirdName2}, #{thirdName3}, #{thirdName4}, #{updateTime}, #{corpType}, #{outType} ) insert INTO basic_corp(thirdId, erpId, `name`, spell, addr, status, `type`, creditNo, contact, mobile, thirdId1, thirdId2, thirdId3, thirdId4, thirdName, thirdName1, thirdName2, thirdName3, thirdName4, updateTime, corpType, outType) values (#{thirdId}, #{erpId}, #{name}, #{spell}, #{addr}, #{status}, #{type}, #{creditNo}, #{contact}, #{mobile}, #{thirdId1}, #{thirdId2}, #{thirdId3}, #{thirdId4}, #{thirdName}, #{thirdName1}, #{thirdName2}, #{thirdName3}, #{thirdName4}, #{updateTime}, #{corpType}, #{outType}) UPDATE basic_corp thirdId=#{thirdId}, thirdId=null, erpId=#{erpId}, `name`=#{name}, spell=#{spell}, addr=#{addr}, status=#{status}, `type`=#{type}, creditNo=#{creditNo}, contact=#{contact}, mobile=#{mobile}, thirdId1=#{thirdId1}, thirdId2=#{thirdId2}, thirdId3=#{thirdId3}, thirdId4=#{thirdId4}, thirdId1=null, thirdId2=null, thirdId3=null, thirdId4=null, thirdName=#{thirdName}, thirdName1=#{thirdName1}, thirdName2=#{thirdName2}, thirdName3=#{thirdName3}, thirdName4=#{thirdName4}, updateTime=#{updateTime}, corpType=#{corpType}, outType=#{outType}, WHERE id=#{id} DELETE FROM basic_corp WHERE id = #{id} replace INTO basic_corp ( thirdId, erpId, `name`, spell, addr, status, `type`, creditNo, contact, mobile, thirdId1, thirdId2, thirdId3, thirdId4, thirdName, thirdName1, thirdName2, thirdName3, thirdName4, updateTime, corpType,outType) values ( #{thirdId}, #{erpId}, #{name}, #{spell}, #{addr}, #{status}, #{type}, #{creditNo}, #{contact}, #{mobile}, #{thirdId1}, #{thirdId2}, #{thirdId3}, #{thirdId4}, #{thirdName}, #{thirdName1}, #{thirdName2}, #{thirdName3}, #{thirdName4}, #{updateTime}, #{corpType}, #{outType} )