id, title, `type`, `status`, userId, userName, `createUser`, createTime, updateUser, updateTime
delete from sys_approval_flow
where id = #{id,jdbcType=VARCHAR}
insert into sys_approval_flow (id, title, `type`,
`status`, userId, userName, `createUser`,
createTime, updateUser, updateTime
)
values (#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER}, #{userId,jdbcType=VARCHAR},#{userName,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}
)
insert into sys_approval_flow
id,
title,
`type`,
`status`,
userId,
userName,
`createUser`,
createTime,
updateUser,
updateTime,
#{id,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER},
#{userId,jdbcType=VARCHAR},
#{userName,jdbcType=VARCHAR},
#{createUser,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateUser,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
update sys_approval_flow
title = #{title,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
userId = #{userId,jdbcType=VARCHAR},
userName = #{userName,jdbcType=VARCHAR},
`createUser` = #{createUser,jdbcType=VARCHAR},
createTime = #{createTime,jdbcType=TIMESTAMP},
updateUser = #{updateUser,jdbcType=VARCHAR},
updateTime = #{updateTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=VARCHAR}
update sys_approval_flow
set title = #{title,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
userId = #{userId,jdbcType=VARCHAR},
userName = #{userName,jdbcType=VARCHAR},
`createUser` = #{createUser,jdbcType=VARCHAR},
createTime = #{createTime,jdbcType=TIMESTAMP},
updateUser = #{updateUser,jdbcType=VARCHAR},
updateTime = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=VARCHAR}
update sys_approval_flow
when id = #{item.id,jdbcType=VARCHAR} then #{item.title,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=VARCHAR} then #{item.type,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=VARCHAR} then #{item.status,jdbcType=INTEGER}
when id = #{item.id,jdbcType=VARCHAR} then #{item.userId,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=VARCHAR} then #{item.userName,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=VARCHAR} then #{item.createUser,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=VARCHAR} then #{item.createTime,jdbcType=TIMESTAMP}
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateUser,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=VARCHAR} then #{item.updateTime,jdbcType=TIMESTAMP}
where id in
#{item.id,jdbcType=VARCHAR}
insert into sys_approval_flow
(id, title, `type`, `status`, userId, userName, `createUser`, createTime, updateUser, updateTime
)
values
(#{item.id,jdbcType=VARCHAR}, #{item.title,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR},
#{item.status,jdbcType=INTEGER}, #{item.userId,jdbcType=VARCHAR},#{item.userName,jdbcType=VARCHAR}, #{item.createUser,jdbcType=VARCHAR},
#{item.createTime,jdbcType=TIMESTAMP}, #{item.updateUser,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP}
)
insert into sys_approval_flow
(id, title, `type`, `status`, userId, userName, `createUser`, createTime, updateUser, updateTime
)
values
(#{id,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{type,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER},
#{userId,jdbcType=VARCHAR}, #{userName,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP},
#{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP})
on duplicate key update
id = #{id,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
userId = #{userId,jdbcType=VARCHAR},
userName = #{userName,jdbcType=VARCHAR},
`createUser` = #{createUser,jdbcType=VARCHAR},
createTime = #{createTime,jdbcType=TIMESTAMP},
updateUser = #{updateUser,jdbcType=VARCHAR},
updateTime = #{updateTime,jdbcType=TIMESTAMP}
insert into sys_approval_flow
id,
title,
`type`,
`status`,
userId,
userName,
`createUser`,
createTime,
updateUser,
updateTime,
values
#{id,jdbcType=VARCHAR},
#{title,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{status,jdbcType=INTEGER},
#{userId,jdbcType=VARCHAR},
#{userName,jdbcType=VARCHAR},
#{createUser,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{updateUser,jdbcType=VARCHAR},
#{updateTime,jdbcType=TIMESTAMP},
on duplicate key update
id = #{id,jdbcType=VARCHAR},
title = #{title,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
`status` = #{status,jdbcType=INTEGER},
userId = #{userId,jdbcType=VARCHAR},
userName = #{userName,jdbcType=VARCHAR},
`createUser` = #{createUser,jdbcType=VARCHAR},
createTime = #{createTime,jdbcType=TIMESTAMP},
updateUser = #{updateUser,jdbcType=VARCHAR},
updateTime = #{updateTime,jdbcType=TIMESTAMP},