admin
2019-02-25 03afbcf4b9e9b55433e914d861d643b7a23d69f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?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>