@@ -404,7 +404,7 @@
<select id="validNameAndCodeWhenRelated" parameterType="com.usoftchina.saas.document.entities.Customer" resultType="int">
select count(1) from customer where (cu_code != #{cu_code,jdbcType=VARCHAR} or cu_name != #{cu_name,jdbcType=VARCHAR})
- and cu_id != #{id} and companyId =#{companyId}
+ and cu_id = #{id} and companyId =#{companyId}
</select>