liusheng
2025-01-02 b6dd47b05107fc36d8ff4f7f29a4446521f95503
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?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.ServiceReimbursementdetailSharedMapper">
 
    <resultMap type="com.ruoyi.project.domain.ServiceReimbursementdetailShared"
               id="ServiceReimbursementdetailSharedResult">
        <result property="id" column="ID"/>
        <result property="rbid" column="RBID"/>
        <result property="persontype" column="persontype"/>
        <result property="personname" column="personname"/>
        <result property="orderno" column="OrderNo"/>
        <result property="starttime" column="StartTime"/>
        <result property="departure" column="Departure"/>
        <result property="endtime" column="EndTime"/>
        <result property="destination" column="Destination"/>
        <result property="days" column="Days"/>
        <result property="trafficexpense" column="TrafficExpense"/>
        <result property="traffictype" column="TrafficType"/>
        <result property="cityfee" column="CityFee"/>
        <result property="hotelexpense" column="HotelExpense"/>
        <result property="invoicecount" column="InvoiceCount"/>
        <result property="attachcount" column="AttachCount"/>
        <result property="otherexpense" column="OtherExpense"/>
        <result property="foodexpenses" column="FoodExpenses"/>
        <result property="foodallowance" column="FoodAllowance"/>
        <result property="annexfiles" column="AnnexFiles"/>
        <result property="invoicefiles" column="InvoiceFiles"/>
        <result property="remark" column="Remark"/>
        <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="uploadFlag" column="upload_flag"/>
        <result property="uploadTime" column="upload_time"/>
        <result property="travelprovince" column="travelprovince"/>
        <result property="travelprovincename" column="travelprovincename"/>
        <result property="travelcity" column="travelcity"/>
        <result property="travelcityname" column="travelcityname"/>
        <result property="traveltown" column="traveltown"/>
        <result property="traveltownname" column="traveltownname"/>
        <result property="otherfeeamount" column="otherfeeamount"/>
        <result property="otherfeedesc" column="otherfeedesc"/>
    </resultMap>
 
    <sql id="selectServiceReimbursementdetailSharedVo">
        select ID,
               RBID,
               persontype,
               personname,
               OrderNo,
               StartTime,
               Departure,
               EndTime,
               Destination,
               Days,
               TrafficExpense,
               TrafficType,
               CityFee,
               HotelExpense,
               InvoiceCount,
               AttachCount,
               OtherExpense,
               FoodExpenses,
               FoodAllowance,
               AnnexFiles,
               invoicefiles,
               Remark,
               del_flag,
               create_by,
               create_time,
               update_by,
               update_time,
               upload_flag,
               upload_time,
               travelprovince,
               travelprovincename,
               travelcity,
               travelcityname,
               traveltown,
               traveltownname,
               otherfeeamount,
               otherfeedesc
        from service_reimbursementdetail_shared
    </sql>
 
    <select id="selectServiceReimbursementdetailSharedList"
            parameterType="com.ruoyi.project.domain.ServiceReimbursementdetailShared"
            resultMap="ServiceReimbursementdetailSharedResult">
        <include refid="selectServiceReimbursementdetailSharedVo"/>
        <where>
            <if test="rbid != null ">and RBID = #{rbid}</if>
            <if test="persontype != null  and persontype != ''">and persontype = #{persontype}</if>
            <if test="personname != null  and personname != ''">and personname like concat('%', #{personname}, '%')</if>
            <if test="orderno != null ">and OrderNo = #{orderno}</if>
            <if test="starttime != null ">and StartTime = #{starttime}</if>
            <if test="departure != null  and departure != ''">and Departure = #{departure}</if>
            <if test="endtime != null ">and EndTime = #{endtime}</if>
            <if test="destination != null  and destination != ''">and Destination = #{destination}</if>
            <if test="days != null ">and Days = #{days}</if>
            <if test="trafficexpense != null ">and TrafficExpense = #{trafficexpense}</if>
            <if test="traffictype != null  and traffictype != ''">and TrafficType = #{traffictype}</if>
            <if test="cityfee != null ">and CityFee = #{cityfee}</if>
            <if test="hotelexpense != null ">and HotelExpense = #{hotelexpense}</if>
            <if test="invoicecount != null ">and InvoiceCount = #{invoicecount}</if>
            <if test="attachcount != null ">and AttachCount = #{attachcount}</if>
            <if test="otherexpense != null ">and OtherExpense = #{otherexpense}</if>
            <if test="foodexpenses != null ">and FoodExpenses = #{foodexpenses}</if>
            <if test="foodallowance != null ">and FoodAllowance = #{foodallowance}</if>
            <if test="annexfiles != null  and annexfiles != ''">and AnnexFiles = #{annexfiles}</if>
            <if test="remark != null  and remark != ''">and Remark = #{remark}</if>
            <if test="uploadFlag != null  and uploadFlag != ''">and upload_flag = #{uploadFlag}</if>
            <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
            <if test="travelprovince != null  and travelprovince != ''">and travelprovince = #{travelprovince}</if>
            <if test="travelprovincename != null  and travelprovincename != ''">and travelprovincename like concat('%',
                #{travelprovincename}, '%')
            </if>
            <if test="travelcity != null  and travelcity != ''">and travelcity = #{travelcity}</if>
            <if test="travelcityname != null  and travelcityname != ''">and travelcityname like concat('%',
                #{travelcityname}, '%')
            </if>
            <if test="traveltown != null  and traveltown != ''">and traveltown = #{traveltown}</if>
            <if test="traveltownname != null  and traveltownname != ''">and traveltownname like concat('%',
                #{traveltownname}, '%')
            </if>
            <if test="otherfeeamount != null ">and otherfeeamount = #{otherfeeamount}</if>
            <if test="otherfeedesc != null  and otherfeedesc != ''">and otherfeedesc = #{otherfeedesc}</if>
            <if test="jine != null  and jine != ''">and jine = #{jine}</if>
            <if test="liyou != null  and liyou != ''">and liyou = #{liyou}</if>
        </where>
    </select>
 
</mapper>