id, ordercode, directioncode, name, num
delete from contractdetail
where id = #{id,jdbcType=BIGINT}
delete from contractdetail
where ordercode = #{ordercode}
update contractdetail
ordercode = #{ordercode,jdbcType=VARCHAR},
directioncode = #{directioncode,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
num = #{num,jdbcType=INTEGER},
where id = #{id,jdbcType=BIGINT}
update contractdetail
set ordercode = #{ordercode,jdbcType=VARCHAR},
directioncode = #{directioncode,jdbcType=VARCHAR},
name = #{name,jdbcType=VARCHAR},
num = #{num,jdbcType=INTEGER}
where id = #{id,jdbcType=BIGINT}
update contractdetail
set changenum = changenum + #{returnNum}
where ordercode = #{ordercode}
and directioncode = #{productCode}