<?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.yeshi.fanli.dao.mybatis.SystemClientParamsMapper">
|
|
|
<!-- 返回实体 -->
|
<resultMap id="ParamsResultMap" type="com.yeshi.fanli.entity.system.CustomerName" >
|
<id column="id" property="id" jdbcType="BIGINT"/>
|
<result column="name" property="name" jdbcType="VARCHAR"/>
|
<result column="createtime" property="createtime" jdbcType="DATE"/>
|
</resultMap>
|
|
<!-- 根据type查询问题数量 -->
|
<select id="getCount" resultType="Integer">
|
SELECT COUNT(1) FROM yeshi_ec_customer_name yecn WHERE yecn.`type` = #{type};
|
</select>
|
|
<!-- 根据id查询二级问题列表数量 -->
|
<select id="getProblemCount" resultType="Integer">
|
SELECT COUNT(1) FROM `yeshi_ec_customer_content` yecc WHERE cn_id = #{id};
|
</select>
|
|
<!-- 查询联系客服信息 -->
|
<select id="contactCustomerService" resultType="String">
|
SELECT yecc.`content` FROM `yeshi_ec_customer_content` yecc WHERE yecc.`title` = #{title};
|
</select>
|
|
|
</mapper>
|