and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
and ${criterion.condition}
and ${criterion.condition} #{criterion.value}
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
and ${criterion.condition}
#{listItem}
id, `name`, is_package, rel_permissions, `type`, map_id, prd_type, lesson_id, creator_id,
create_time, update_user_id, update_time, remarks
delete from permission
where id = #{id,jdbcType=BIGINT}
delete from permission
insert into permission (`name`, is_package, rel_permissions,
`type`, map_id, prd_type,
lesson_id, creator_id, create_time,
update_user_id, update_time, remarks
)
values (#{name,jdbcType=VARCHAR}, #{isPackage,jdbcType=BIT}, #{relPermissions,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR}, #{mapId,jdbcType=BIGINT}, #{prdType,jdbcType=VARCHAR},
#{lessonId,jdbcType=BIGINT}, #{creatorId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
#{updateUserId,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{remarks,jdbcType=VARCHAR}
)
insert into permission
`name`,
is_package,
rel_permissions,
`type`,
map_id,
prd_type,
lesson_id,
creator_id,
create_time,
update_user_id,
update_time,
remarks,
#{name,jdbcType=VARCHAR},
#{isPackage,jdbcType=BIT},
#{relPermissions,jdbcType=VARCHAR},
#{type,jdbcType=VARCHAR},
#{mapId,jdbcType=BIGINT},
#{prdType,jdbcType=VARCHAR},
#{lessonId,jdbcType=BIGINT},
#{creatorId,jdbcType=BIGINT},
#{createTime,jdbcType=TIMESTAMP},
#{updateUserId,jdbcType=BIGINT},
#{updateTime,jdbcType=TIMESTAMP},
#{remarks,jdbcType=VARCHAR},
update permission
id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
is_package = #{record.isPackage,jdbcType=BIT},
rel_permissions = #{record.relPermissions,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
map_id = #{record.mapId,jdbcType=BIGINT},
prd_type = #{record.prdType,jdbcType=VARCHAR},
lesson_id = #{record.lessonId,jdbcType=BIGINT},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_user_id = #{record.updateUserId,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remarks = #{record.remarks,jdbcType=VARCHAR},
update permission
set id = #{record.id,jdbcType=BIGINT},
`name` = #{record.name,jdbcType=VARCHAR},
is_package = #{record.isPackage,jdbcType=BIT},
rel_permissions = #{record.relPermissions,jdbcType=VARCHAR},
`type` = #{record.type,jdbcType=VARCHAR},
map_id = #{record.mapId,jdbcType=BIGINT},
prd_type = #{record.prdType,jdbcType=VARCHAR},
lesson_id = #{record.lessonId,jdbcType=BIGINT},
creator_id = #{record.creatorId,jdbcType=BIGINT},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_user_id = #{record.updateUserId,jdbcType=BIGINT},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remarks = #{record.remarks,jdbcType=VARCHAR}
update permission
`name` = #{name,jdbcType=VARCHAR},
is_package = #{isPackage,jdbcType=BIT},
rel_permissions = #{relPermissions,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
prd_type = #{prdType,jdbcType=VARCHAR},
lesson_id = #{lessonId,jdbcType=BIGINT},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_user_id = #{updateUserId,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remarks = #{remarks,jdbcType=VARCHAR},
where id = #{id,jdbcType=BIGINT}
update permission
set `name` = #{name,jdbcType=VARCHAR},
is_package = #{isPackage,jdbcType=BIT},
rel_permissions = #{relPermissions,jdbcType=VARCHAR},
`type` = #{type,jdbcType=VARCHAR},
map_id = #{mapId,jdbcType=BIGINT},
prd_type = #{prdType,jdbcType=VARCHAR},
lesson_id = #{lessonId,jdbcType=BIGINT},
creator_id = #{creatorId,jdbcType=BIGINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_user_id = #{updateUserId,jdbcType=BIGINT},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remarks = #{remarks,jdbcType=VARCHAR}
where id = #{id,jdbcType=BIGINT}