value
2024-04-27 06f256c166529b0c333171f76fd49eec4b66afe3
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
30
31
32
33
34
35
36
37
<?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.yuanchu.mom.mapper.FansSubmitMapper">
 
    <resultMap id="BaseResultMap" type="com.yuanchu.mom.pojo.FansSubmit">
            <id property="id" column="id" jdbcType="INTEGER"/>
            <result property="custom" column="custom" jdbcType="VARCHAR"/>
            <result property="product" column="product" jdbcType="VARCHAR"/>
            <result property="vx" column="vx" jdbcType="VARCHAR"/>
            <result property="fansAdd" column="fans_add" jdbcType="INTEGER"/>
            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
            <result property="updateTime" column="update_time" jdbcType="TIMESTAMP"/>
            <result property="createUser" column="create_user" jdbcType="INTEGER"/>
            <result property="updateUser" column="update_user" jdbcType="INTEGER"/>
    </resultMap>
    <select id="selectFansSubmitPageList" resultType="com.yuanchu.mom.pojo.FansSubmit">
        select * from (
            select fm.*, u.name create_user_name from fans_submit fm, user u
            where fm.create_user = u.id
        ) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
    </select>
    <select id="countFansSubmitList" resultType="java.lang.Double">
        select sum(a.fans_add) from (
        select fm.* from fans_submit fm, user u
        where fm.create_user = u.id
        ) a
        <if test="ew.customSqlSegment != null and ew.customSqlSegment != ''">
            ${ew.customSqlSegment}
        </if>
    </select>
 
</mapper>