|
|
@@ -416,7 +416,7 @@
|
|
|
<select id="validateCodeWhenInsert" resultMap="int" parameterType="string" >
|
|
|
select count(1) from purchase where pu_code = #{code}
|
|
|
</select>
|
|
|
- <select id="validateCodeWhenInsert" resultMap="int" >
|
|
|
+ <select id="validateCodeWhenUpdate" resultMap="int" >
|
|
|
select count(1) from purchase where pu_code = #{0} and pu_id != #{1}
|
|
|
</select>
|
|
|
</mapper>
|