liusheng
2023-11-10 6f344e6360751574f7e03b21c00cfa3f4b2bc099
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
48
49
<?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.ruoyi.project.mapper.ServiceSystemmessageMapper">
    
    <resultMap type="com.ruoyi.project.domain.ServiceSystemmessage" id="ServiceSystemmessageResult">
        <result property="id"    column="ID"    />
        <result property="del_flag"    column="del_flag"    />
        <result property="createBy"    column="create_by"    />
        <result property="createTime"    column="create_time"    />
        <result property="updateBy"    column="update_by"    />
        <result property="updateTime"    column="update_time"    />
        <result property="senduserno"    column="SendUserNo"    />
        <result property="sendusername"    column="SendUserName"    />
        <result property="receiveuserno"    column="ReceiveUserNo"    />
        <result property="receiveusername"    column="ReceiveUserName"    />
        <result property="messagecontent"    column="MessageContent"    />
        <result property="messagetype"    column="MessageType"    />
        <result property="isread"    column="IsRead"    />
        <result property="readtime"    column="ReadTime"    />
        <result property="applytype"    column="ApplyType"    />
        <result property="fundtype"    column="FundType"    />
        <result property="relevantno"    column="RelevantNo"    />
        <result property="messagetitle"    column="MessageTitle"    />
 
    </resultMap>
 
    <sql id="selectServiceSystemmessageVo">
        select ID, del_flag, create_by, create_time, update_by, update_time, SendUserNo, SendUserName, ReceiveUserNo, ReceiveUserName, MessageContent, MessageType, IsRead, ReadTime, ApplyType, FundType,RelevantNo,MessageTitle from service_systemmessage
    </sql>
 
    <select id="selectServiceSystemmessageList" parameterType="com.ruoyi.project.domain.ServiceSystemmessage" resultMap="ServiceSystemmessageResult">
        <include refid="selectServiceSystemmessageVo"/>
        <where>
            <if test="senduserno != null  and senduserno != ''"> and SendUserNo = #{senduserno}</if>
            <if test="sendusername != null  and sendusername != ''"> and SendUserName like concat('%', #{sendusername}, '%')</if>
            <if test="receiveuserno != null  and receiveuserno != ''"> and ReceiveUserNo = #{receiveuserno}</if>
            <if test="receiveusername != null  and receiveusername != ''"> and ReceiveUserName like concat('%', #{receiveusername}, '%')</if>
            <if test="messagecontent != null  and messagecontent != ''"> and MessageContent = #{messagecontent}</if>
            <if test="messagetype != null "> and MessageType = #{messagetype}</if>
            <if test="isread != null "> and IsRead = #{isread}</if>
            <if test="readtime != null "> and ReadTime = #{readtime}</if>
            <if test="applytype != null  and applytype != ''"> and ApplyType = #{applytype}</if>
            <if test="fundtype != null "> and FundType = #{fundtype}</if>
        </where>
    </select>
 
</mapper>