<?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>
|