@@ -347,7 +347,7 @@
<select id="selectCountByCode" resultType="int">
SELECT COUNT(*) FROM warehouse
<where>
- <if test="name!=null">
+ <if test="code!=null">
and wh_code=#{code}
</if>
<if test="companyId!=0 and companyId!=null">