void updatebatchInspectionCode(List allocationCodelist,String batchInspectionCode);
Mapper接口的写法,一个list集合,一个表字段名对应的实体类属性字段
<update id="updatebatchInspectionCode" parameterType="java.util.List">
update stockout_parts_goods_allocation
set batch_inspection_code = #{batchInspectionCode,jdbcType=VARCHAR}
where allocation_code in
<foreach collection="list" index="index" item="allocationCode" separator="," open="(" close=")">
#{allocationCode,jdbcType=VARCHAR}
</foreach>
</update>