id,`name`,`type`, create_user, audit_state, create_time, update_label_id, remark, seq
insert into book_label `name`,`type`, create_user, audit_state, create_time, remark, seq #{name}, #{type,jdbcType=INTEGER}, #{createUser}, #{auditState,jdbcType=INTEGER}, NOW(), #{remark}, #{seq}
update book_label audit_state = #{auditState,jdbcType=INTEGER}, update_label_id = #{updateLabelId}, seq = #{seq}, where id = #{id,jdbcType=BIGINT}
delete from book_label where id = #{id,jdbcType=BIGINT}
SELECT MAX(seq) FROM book_label WHERE type=#{type}
SELECT FROM book_label where type=#{type} and audit_state = #{auditState} and is_ray = 1
select from book_label WHERE audit_state=1 OR create_user = #{createUser} ORDER BY type ASC, seq ASC, id ASC
select from book_label where id in #{item}
select from book_label where id in #{item}
SELECT id FROM book_label WHERE `name`= #{name} AND type = #{type} LIMIT 1
select id labelId, `name` name, type type, audit_state auditState, seq seq, create_time createTime, remark AS remark, create_user createUser from book_label WHERE 1=1 and audit_state = #{auditState} AND type = #{type} AND `name` LIKE CONCAT('%',#{name},'%') AND create_time >= #{startTime} AND create_time <= #{endTime} AND create_user>0 ORDER BY type ASC, seq ASC, id ASC