linwe
2023-11-12 972ab6788b6f45f819269f1964cad53186cf2c60
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
38
39
40
41
42
43
44
45
46
47
<?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="org.springblade.modules.task.mapper.TaskLabelReportingEventMapper">
 
    <!-- 通用查询映射结果 -->
    <resultMap id="taskLabelReportingEventResultMap" type="org.springblade.modules.task.entity.TaskLabelReportingEventEntity">
        <result column="id" property="id"/>
        <result column="task_id" property="taskId"/>
        <result column="place_id" property="placeId"/>
        <result column="house_id" property="houseId"/>
        <result column="district_id" property="districtId"/>
        <result column="happen_time" property="happenTime"/>
        <result column="user_id" property="userId"/>
        <result column="image_urls" property="imageUrls"/>
        <result column="district_name" property="districtName"/>
        <result column="event_type" property="eventType"/>
        <result column="confirm_flag" property="confirmFlag"/>
        <result column="confirm_user_id" property="confirmUserId"/>
        <result column="confirm_time" property="confirmTime"/>
        <result column="localtion" property="localtion"/>
        <result column="confirm_notion" property="confirmNotion"/>
        <result column="owner" property="owner"/>
        <result column="phone_number" property="phoneNumber"/>
        <result column="house_name" property="houseName"/>
        <result column="task_name" property="taskName"/>
        <result column="transaction_object_tel" property="transactionObjectTel"/>
        <result column="transaction_money" property="transactionMoney"/>
        <result column="goods_nums" property="goodsNums"/>
        <result column="goods_image_urls" property="goodsImageUrls"/>
        <result column="transaction_object" property="transactionObject"/>
        <result column="transaction_process" property="transactionProcess"/>
        <result column="label_name" property="labelName"/>
    </resultMap>
 
 
    <select id="selectTaskLabelReportingEventPage" resultMap="taskLabelReportingEventResultMap">
        select * from jczz_task_label_reporting_event where is_deleted = 0
        <if test="taskLabelReportingEvent.userId != null and taskLabelReportingEvent.userId != ''">
            AND user_id = #{taskLabelReportingEvent.userId}
        </if>
        <if test="taskLabelReportingEvent.eventType != null and taskLabelReportingEvent.eventType != ''">
            AND event_type = #{taskLabelReportingEvent.eventType}
        </if>
    </select>
 
 
</mapper>