瀏覽代碼

更新出PurchaseMapper

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

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

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