直接上代码(使用此方式,不需要进行任何数据库配置):
update t_project_stage_cost_budget update_time = now(), when id = #{item.id,jdbcType=BIGINT} then #{item.personMonths} when id = #{item.id,jdbcType=BIGINT} then #{item.projectStageId} when id = #{item.id,jdbcType=BIGINT} then #{item.subjectCostId} id in #{item.id,jdbcType=BIGINT}批量新增
insert into
t_project_budget_submission(
project_id,
cost_catagory_id,
subject_catagory_id,
subject_cost_id,
department_num_id,
create_time,
update_time
) values (
#{p.projectId,jdbcType=BIGINT},
#{p.costCatagoryId,jdbcType=INTEGER},
#{p.subjectCatagoryId,jdbcType=INTEGER},
#{p.subjectCostId,jdbcType=INTEGER},
#{p.departmentNumId,jdbcType=BIGINT},
now(),
now()
)
来源:CSDN
作者:做一个合格的猴子
链接:https://blog.csdn.net/Bzbtyhydcxy/article/details/103926708