1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <?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="io.renren.modules.qyh.mapper.MeetMapper">
- <resultMap type="io.renren.modules.qyh.entity.MeetEntity" id="meetMap">
- <result property="id" column="id"/>
- <result property="expertId" column="expert_id"/>
- <result property="storeId" column="store_id"/>
- <result property="groupWay" column="group_way"/>
- <result property="groupWayEndTime" column="group_way_end_time"/>
- <result property="groupNumberPeople" column="group_number_people"/>
- <result property="topicId" column="topic_id"/>
- <result property="meetPrice" column="meet_price"/>
- <result property="meetTime" column="meet_time"/>
- <result property="content" column="content"/>
- <result property="type" column="type"/>
- <result property="process" column="process"/>
- <result property="meetType" column="meet_type"/>
- <result property="denialReason" column="denial_reason"/>
- <result property="denialTime" column="denial_time"/>
- <result property="createId" column="create_id"/>
- <result property="createTime" column="create_time"/>
- <result property="updateId" column="update_id"/>
- <result property="updateTime" column="update_time"/>
- <result property="isDelete" column="is_delete"/>
- <result property="verifyTime" column="verify_time"/>
- </resultMap>
- <select id="selectGroupList" resultType="io.renren.modules.qyh.model.vo.GroupListVO">
- SELECT
- wm.id AS meet_id,
- wm.expert_id,
- wm.group_number_people,
- wm.group_way_end_time
- FROM
- `qyh_meet` wm
- WHERE
- wm.group_way = 1
- AND wm.is_delete = '0'
- AND wm.meet_type = 0
- AND wm.expert_id = #{expertId}
- AND wm.topic_id = #{topicId}
- </select>
- <select id="myServicePage" resultType="io.renren.modules.qyh.model.vo.MyServicePageVO">
- SELECT
- wm.id AS meet_id,
- wm.type,
- wm.meet_time AS meetTime,
- wm.process ,
- wet.topic_name,
- wet.topic_price
- FROM
- `qyh_meet` wm
- JOIN `qyh_expert_topic` wet on wm.topic_id = wet.id AND wet.is_delete = '0'
- <where>
- wm.is_delete = '0'
- AND (wm.process != -3 AND wm.meet_type != 0)
- <if test="params.processList != null and params.processList.size > 0">
- and wm.process in
- <foreach item="process" collection="params.processList" open="(" separator="," close=")">
- #{process}
- </foreach>
- </if>
- <if test="params.expertId != null and params.expertId != ''">
- and wm.expert_id = #{params.expertId}
- </if>
- </where>
- order by
- wm.meet_time asc
- </select>
- <select id="selectMyServiceStatistics" resultType="java.lang.Integer">
- SELECT
- COUNT( 1 )
- FROM
- qyh_meet
- WHERE
- is_delete = '0'
- AND (process != -3 AND meet_type != 0)
- <if test="expertId != null and expertId != ''">
- AND expert_id = #{expertId}
- </if>
- <if test="processList != null and processList.size > 0">
- and process in
- <foreach item="process" collection="processList" open="(" separator="," close=")">
- #{process}
- </foreach>
- </if>
- </select>
- </mapper>
|