INSERT INTO GoodsPriceDefi ( schoolId, goodsId, years, price, amount, description , startTime , endTime ) Values ( #{schoolId}, #{goodsId}, #{years}, #{price}, #{amount}, #{description} , #{startTime} , #{endTime} ) UPDATE GoodsPriceDefi SET schoolId = #{schoolId}, goodsId = #{goodsId}, years = #{years}, price = #{price}, amount = #{amount}, description = #{description} ,startTime = #{startTime} , endTime = #{endTime} where schoolId=#{schoolId} and goodsId=#{goodsId} and years=#{years} INSERT INTO GoodsPriceDefi ( schoolId, goodsId, years, price, amount, description , startTime , endTime ) Values ( #{item.schoolId}, #{item.goodsId}, #{item.years}, #{item.price}, #{item.amount}, #{item.description} , #{item.startTime} , #{item.endTime} )