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, permission_id, user_id, `status`, amount, remains, forever, start_time, end_time, distribute_id, can_distribute, owner_id delete from user_permission where id = #{id,jdbcType=BIGINT} delete from user_permission insert into user_permission (permission_id, user_id, `status`, amount, remains, forever, start_time, end_time, distribute_id, can_distribute, owner_id) values (#{permissionId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{amount,jdbcType=INTEGER}, #{remains,jdbcType=INTEGER}, #{forever,jdbcType=BIT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{distributeId,jdbcType=BIGINT}, #{canDistribute,jdbcType=BIT}, #{ownerId,jdbcType=BIGINT}) insert into user_permission permission_id, user_id, `status`, amount, remains, forever, start_time, end_time, distribute_id, can_distribute, owner_id, #{permissionId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{status,jdbcType=VARCHAR}, #{amount,jdbcType=INTEGER}, #{remains,jdbcType=INTEGER}, #{forever,jdbcType=BIT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{distributeId,jdbcType=BIGINT}, #{canDistribute,jdbcType=BIT}, #{ownerId,jdbcType=BIGINT}, update user_permission id = #{record.id,jdbcType=BIGINT}, permission_id = #{record.permissionId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT}, `status` = #{record.status,jdbcType=VARCHAR}, amount = #{record.amount,jdbcType=INTEGER}, remains = #{record.remains,jdbcType=INTEGER}, forever = #{record.forever,jdbcType=BIT}, start_time = #{record.startTime,jdbcType=TIMESTAMP}, end_time = #{record.endTime,jdbcType=TIMESTAMP}, distribute_id = #{record.distributeId,jdbcType=BIGINT}, can_distribute = #{record.canDistribute,jdbcType=BIT}, owner_id = #{record.ownerId,jdbcType=BIGINT}, update user_permission set id = #{record.id,jdbcType=BIGINT}, permission_id = #{record.permissionId,jdbcType=BIGINT}, user_id = #{record.userId,jdbcType=BIGINT}, `status` = #{record.status,jdbcType=VARCHAR}, amount = #{record.amount,jdbcType=INTEGER}, remains = #{record.remains,jdbcType=INTEGER}, forever = #{record.forever,jdbcType=BIT}, start_time = #{record.startTime,jdbcType=TIMESTAMP}, end_time = #{record.endTime,jdbcType=TIMESTAMP}, distribute_id = #{record.distributeId,jdbcType=BIGINT}, can_distribute = #{record.canDistribute,jdbcType=BIT}, owner_id = #{record.ownerId,jdbcType=BIGINT} update user_permission permission_id = #{permissionId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT}, `status` = #{status,jdbcType=VARCHAR}, amount = #{amount,jdbcType=INTEGER}, remains = #{remains,jdbcType=INTEGER}, forever = #{forever,jdbcType=BIT}, start_time = #{startTime,jdbcType=TIMESTAMP}, end_time = #{endTime,jdbcType=TIMESTAMP}, distribute_id = #{distributeId,jdbcType=BIGINT}, can_distribute = #{canDistribute,jdbcType=BIT}, owner_id = #{ownerId,jdbcType=BIGINT}, where id = #{id,jdbcType=BIGINT} update user_permission set permission_id = #{permissionId,jdbcType=BIGINT}, user_id = #{userId,jdbcType=BIGINT}, `status` = #{status,jdbcType=VARCHAR}, amount = #{amount,jdbcType=INTEGER}, remains = #{remains,jdbcType=INTEGER}, forever = #{forever,jdbcType=BIT}, start_time = #{startTime,jdbcType=TIMESTAMP}, end_time = #{endTime,jdbcType=TIMESTAMP}, distribute_id = #{distributeId,jdbcType=BIGINT}, can_distribute = #{canDistribute,jdbcType=BIT}, owner_id = #{ownerId,jdbcType=BIGINT} where id = #{id,jdbcType=BIGINT}