liusheng
2023-10-13 22655ad10d386f0fc3c38389f519d3d188b46f19
ruoyi-project/src/main/resources/mapper/project/ServiceReimbursementdetailSharedMapper.xml
@@ -4,7 +4,8 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.project.mapper.ServiceReimbursementdetailSharedMapper">
    
    <resultMap type="com.ruoyi.project.domain.ServiceReimbursementdetailShared" id="ServiceReimbursementdetailSharedResult">
    <resultMap type="com.ruoyi.project.domain.ServiceReimbursementdetailShared"
               id="ServiceReimbursementdetailSharedResult">
        <result property="id"    column="ID"    />
        <result property="rbid"    column="RBID"    />
        <result property="persontype"    column="persontype"    />
@@ -25,6 +26,7 @@
        <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"    />
@@ -44,10 +46,49 @@
    </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, 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
        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">
    <select id="selectServiceReimbursementdetailSharedList"
            parameterType="com.ruoyi.project.domain.ServiceReimbursementdetailShared"
            resultMap="ServiceReimbursementdetailSharedResult">
        <include refid="selectServiceReimbursementdetailSharedVo"/>
        <where>
            <if test="rbid != null "> and RBID = #{rbid}</if>
@@ -73,11 +114,17 @@
            <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="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="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="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>