liusheng
2023-06-14 d6f2f458d9c8156981880c987d861423ce9af146
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
<?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.ServiceTravelexpensestandardMapper">
    
    <resultMap type="ServiceTravelexpensestandard" id="ServiceTravelexpensestandardResult">
        <result property="id"    column="ID"    />
        <result property="provincecode"    column="PROVINCECODE"    />
        <result property="citycode"    column="CITYCODE"    />
        <result property="towncode"    column="TOWNCODE"    />
        <result property="begindate"    column="BEGINDATE"    />
        <result property="enddate"    column="ENDDATE"    />
        <result property="firstlevelcost"    column="FIRSTLEVELCOST"    />
        <result property="secondlevelcost"    column="SECONDLEVELCOST"    />
        <result property="thirdlevelcost"    column="THIRDLEVELCOST"    />
        <result property="provincename"    column="PROVINCENAME"    />
        <result property="cityname"    column="CITYNAME"    />
        <result property="townname"    column="TOWNNAME"    />
    </resultMap>
 
    <sql id="selectServiceTravelexpensestandardVo">
        select ID, PROVINCECODE, CITYCODE, TOWNCODE, BEGINDATE, ENDDATE, FIRSTLEVELCOST, SECONDLEVELCOST, THIRDLEVELCOST from service_travelexpensestandard
    </sql>
 
    <select id="selectServiceTravelexpensestandardList" parameterType="ServiceTravelexpensestandard" resultMap="ServiceTravelexpensestandardResult">
        <include refid="selectServiceTravelexpensestandardVo"/>
        <where>
            <if test="provincecode != null  and provincecode != ''"> and PROVINCECODE = #{provincecode}</if>
            <if test="citycode != null  and citycode != ''"> and CITYCODE = #{citycode}</if>
            <if test="towncode != null  and towncode != ''"> and TOWNCODE = #{towncode}</if>
            <if test="begindate != null  and begindate != ''"> and BEGINDATE = #{begindate}</if>
            <if test="enddate != null  and enddate != ''"> and ENDDATE = #{enddate}</if>
        </where>
    </select>
 
    <select id="getStandard" statementType="CALLABLE" resultType="com.ruoyi.project.domain.vo.SpTravelExpenseStandardOut">
        call SP_TRAVEL_EXPENSE_STANDARD(#{PAPROVINCECODE,mode=IN,jdbcType=VARCHAR},#{PACITYCODE,mode=IN,jdbcType=VARCHAR},#{PATOWNCODE,mode=IN,jdbcType=VARCHAR},#{PABEGINDATE,mode=IN,jdbcType=VARCHAR},#{PAENDDATE,mode=IN,jdbcType=VARCHAR},#{STANDARDLEVEL,mode=IN,jdbcType=INTEGER})
    </select>
 
</mapper>