postman传值方式
control方法:
@PostMapping(value = "/update")
public void update(@ResponseBody List<Long> list){
server.update(list);
}
xml:
<update id="updateCustomerNum" parameterType="java.util.List">
update user
set CUSTOMER_NUM = #{customerNum,jdbcType=VARCHAR}
where id in
<foreach collection="list" index="index" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</update>