|
|
@@ -415,7 +415,7 @@
|
|
|
select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and companyid = #{companyId}
|
|
|
</select>
|
|
|
<select id="validateCodeWhenUpdate" resultType="int" >
|
|
|
- select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and pi_id != #{id} and companyid != #{companyId}
|
|
|
+ select count(1) from prodinout where pi_inoutno = #{pi_inoutno} and pi_id != #{id} and companyid = #{companyId}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectCodeById" resultType="string" parameterType="long">
|