From b41b21a097e481f5bb7a240ada4b7605ba558800 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期四, 28 十一月 2024 06:07:04 +0800 Subject: [PATCH] 注释 --- business/src/main/resources/mapper/ProjectPlanInfoMapper.xml | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/business/src/main/resources/mapper/ProjectPlanInfoMapper.xml b/business/src/main/resources/mapper/ProjectPlanInfoMapper.xml index 2ea53cc..ebc1fb4 100644 --- a/business/src/main/resources/mapper/ProjectPlanInfoMapper.xml +++ b/business/src/main/resources/mapper/ProjectPlanInfoMapper.xml @@ -10,11 +10,18 @@ <result column="start_time" property="startTime" /> <result column="end_time" property="endTime" /> </resultMap> - - - - - + <insert id="batchInsert" keyColumn="id" useGeneratedKeys="true" keyProperty="id"> + insert into t_project_plan_info(project_plan_record_id, title, progress_status, start_time, end_time) + values + <foreach collection="list" item="item" separator=","> + (#{item.projectPlanRecordId}, #{item.title}, #{item.progressStatus}, #{item.startTime}, #{item.endTime}) + </foreach> + </insert> + <insert id="insertOne"> + insert into t_project_plan_info(project_plan_record_id, title, progress_status, start_time, end_time) + values + (#{projectPlanRecordId}, #{title}, #{progressStatus}, #{startTime}, #{endTime}) + </insert> <select id="getById" resultMap="BaseResultMap"> -- Gitblit v1.8.0