select sgi.id, sgi.category_id, sgi.item_content, sgi.sort, sgi.status, sgi.create_by, sgi.create_time, sgi.update_by, sgi.update_time, sgi.remark, sgc.category_name as categoryName from service_guide_item sgi left join service_guide_category sgc on sgc.id = sgi.category_id and sgi.category_id = #{categoryId} and sgi.item_content like concat('%', #{itemContent}, '%') and sgi.status = #{status} and sgi.create_time between #{params.beginCreateTime} and #{params.endCreateTime} order by sgi.sort asc
select sgi.id, sgi.category_id, sgi.item_content, sgi.sort, sgi.status, sgi.create_by, sgi.create_time, sgi.update_by, sgi.update_time, sgi.remark, sgc.category_name as categoryName from service_guide_item sgi left join service_guide_category sgc on sgc.id = sgi.category_id where sgi.id = #{id}
insert into service_guide_item category_id, item_content, sort, status, create_by, create_time, update_by, update_time, remark, #{categoryId}, #{itemContent}, #{sort}, #{status}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, #{remark},
update service_guide_item category_id = #{categoryId}, item_content = #{itemContent}, sort = #{sort}, status = #{status}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, remark = #{remark}, where id = #{id}
delete from service_guide_item where id in #{id}