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, gh_id, gh_name, type, category1, category2, is_delete, create_time, update_time
delete from gh_detail
where id = #{id,jdbcType=BIGINT}
delete from gh_detail
SELECT LAST_INSERT_ID()
insert into gh_detail (gh_id, gh_name, `type`,
category1, category2,
create_time, update_time)
values (#{ghId,jdbcType=VARCHAR}, #{ghName,jdbcType=VARCHAR}, #{type,jdbcType=INTEGER},
#{category1,jdbcType=VARCHAR}, #{category2,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
SELECT LAST_INSERT_ID()
insert into gh_detail
gh_id,
gh_name,
type,
category1,
category2,
is_delete,
create_time,
update_time,
#{ghId,jdbcType=VARCHAR},
#{ghName,jdbcType=VARCHAR},
#{type,jdbcType=INTEGER},
#{category1,jdbcType=VARCHAR},
#{category2,jdbcType=VARCHAR},
#{isDelete,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP},
update gh_detail
id = #{row.id,jdbcType=BIGINT},
gh_id = #{row.ghId,jdbcType=VARCHAR},
gh_name = #{row.ghName,jdbcType=VARCHAR},
type = #{row.type,jdbcType=INTEGER},
category1 = #{row.category1,jdbcType=VARCHAR},
category2 = #{row.category2,jdbcType=VARCHAR},
is_delete = #{row.isDelete,jdbcType=INTEGER},
create_time = #{row.createTime,jdbcType=TIMESTAMP},
update_time = #{row.updateTime,jdbcType=TIMESTAMP},
update gh_detail
set id = #{row.id,jdbcType=BIGINT},
gh_id = #{row.ghId,jdbcType=VARCHAR},
gh_name = #{row.ghName,jdbcType=VARCHAR},
type = #{row.type,jdbcType=INTEGER},
category1 = #{row.category1,jdbcType=VARCHAR},
category2 = #{row.category2,jdbcType=VARCHAR},
is_delete = #{row.isDelete,jdbcType=INTEGER},
create_time = #{row.createTime,jdbcType=TIMESTAMP},
update_time = #{row.updateTime,jdbcType=TIMESTAMP}
update gh_detail
gh_id = #{ghId,jdbcType=VARCHAR},
gh_name = #{ghName,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
category1 = #{category1,jdbcType=VARCHAR},
category2 = #{category2,jdbcType=VARCHAR},
is_delete = #{isDelete,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
where id = #{id,jdbcType=BIGINT}
update gh_detail
set gh_id = #{ghId,jdbcType=VARCHAR},
gh_name = #{ghName,jdbcType=VARCHAR},
type = #{type,jdbcType=INTEGER},
category1 = #{category1,jdbcType=VARCHAR},
category2 = #{category2,jdbcType=VARCHAR},
is_delete = #{isDelete,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=BIGINT}