瀏覽代碼

改成正确代码

guq 8 年之前
父節點
當前提交
6a264cc309
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      applications/purchase/purchase-server/src/main/resources/mapper/PurchaseMapper.xml

+ 1 - 1
applications/purchase/purchase-server/src/main/resources/mapper/PurchaseMapper.xml

@@ -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>