YelinCui | fdf4ed7 | 2025-05-26 11:49:36 +0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| 3 | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| 4 | <mapper namespace="com.example.myproject.mapper.PromotionMapper"> |
| 5 | |
| 6 | <insert id="insert" parameterType="com.example.myproject.entity.Promotion"> |
| 7 | INSERT INTO promotion ( |
| 8 | name, description, start_time, end_time, discount_percentage, applicable_torrent_ids |
| 9 | ) VALUES ( |
| 10 | #{name}, #{description}, #{startTime}, #{endTime}, #{discountPercentage}, #{applicableTorrentIds} |
| 11 | ) |
| 12 | </insert> |
| 13 | |
| 14 | </mapper> |