Commit fe5155a6 authored by wanghao's avatar wanghao

1 提交绑定 判断 已绑定的 和 刚绑定的 时候有重复。

parent a7d72f97
......@@ -158,10 +158,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="checkRepeat" parameterType="list" resultType="int">
select count(1) from t_pallet_device_binding palDeviceBinding
where palDeviceBinding.f_device_code in
<foreach item="item" collection="validDeviceCodes" index="index" separator=",">
#{item}
</foreach>
<if test="validDeviceCodes != null and validDeviceCodes.size() > 0">
where palDeviceBinding.f_device_code in
<foreach item="item" collection="validDeviceCodes" index="index"
open="(" separator="," close=")">
#{item}
</foreach>
</if>
<if test="validDeviceCodes == null or validDeviceCodes.size() == 0">
where 1=0
</if>
</select>
<insert id="batchInsertPalletDeviceBinding" parameterType="list" useGeneratedKeys="true" keyProperty="palletDeviceBindingId">
insert into t_pallet_device_binding (f_tray_id, f_device_code,f_row,f_col,f_index,f_number,f_binding_time,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment