From 9a1eb07f890b6a69812c6c1d62a305b06b18fb73 Mon Sep 17 00:00:00 2001 From: xiangpei <xiangpei@timesnew.cn> Date: 星期二, 26 十一月 2024 18:01:21 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- 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..002a186 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"> + 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