<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.jeesite.modules.consult.dao.ConsultHelpDao">
	
	<!-- 查询数据
	<select id="findList" resultType="ConsultHelp">
		SELECT ${sqlMap.column.toSql()}
		FROM ${sqlMap.table.toSql()}
		<where>
			${sqlMap.where.toSql()}
		</where>
		ORDER BY ${sqlMap.order.toSql()}
	</select> -->

	<select id="getCount" resultType="java.lang.Integer">
		select count(1) from js_consult_help
	</select>
	
	<sql id="sql">
		select id,consult_type consultType,title,user_id userId,user_name userName,net_url netUrl,content from js_consult_help
	</sql>
	
	<select id="getEntityList" parameterType="com.jeesite.modules.consult.entity.ConsultHelp" resultType="com.jeesite.modules.consult.entity.ConsultHelp">
		<include refid="sql"/>
		<where>
			<if test="id != null and id != ''">
				and id = #{id}
			</if>
			and del != '1'
		</where>
	</select>








































	
</mapper>