RuoYi/infosouth-arj21/target/classes/mapper/InfoFlightMapper.xml

131 lines
7.4 KiB
XML

<?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="cn.com.infosouth.arj21.mapper.InfoFlightMapper">
<resultMap type="InfoFlight" id="InfoFlightResult">
<result property="id" column="id" />
<result property="flDate" column="fl_date" />
<result property="flNo" column="fl_no" />
<result property="arn" column="arn" />
<result property="acType" column="ac_type" />
<result property="pod" column="pod" />
<result property="poa" column="poa" />
<result property="airline" column="airline" />
<result property="csvPath" column="csv_path" />
<result property="csvName" column="csv_name" />
<result property="infoResourceId" column="info_resource_id" />
<result property="createBy" column="create_by" />
<result property="createDate" column="create_date" />
<result property="updateBy" column="update_by" />
<result property="updateDate" column="update_date" />
<result property="remarks" column="remarks" />
<result property="delFlag" column="del_flag" />
</resultMap>
<sql id="selectInfoFlightVo">
select id, fl_date, fl_no, arn, ac_type, pod, poa, airline, csv_path, csv_name, info_resource_id, create_by, create_date, update_by, update_date, remarks, del_flag from info_flight
</sql>
<select id="selectInfoFlightList" parameterType="InfoFlight" resultMap="InfoFlightResult">
<include refid="selectInfoFlightVo"/>
<where>
<if test="flDate != null "> and fl_date = #{flDate}</if>
<if test="flNo != null and flNo != ''"> and fl_no = #{flNo}</if>
<if test="arn != null and arn != ''"> and arn = #{arn}</if>
<if test="acType != null and acType != ''"> and ac_type = #{acType}</if>
<if test="pod != null and pod != ''"> and pod = #{pod}</if>
<if test="poa != null and poa != ''"> and poa = #{poa}</if>
<if test="airline != null and airline != ''"> and airline = #{airline}</if>
<if test="csvPath != null and csvPath != ''"> and csv_path = #{csvPath}</if>
<if test="csvName != null and csvName != ''"> and csv_name like concat('%', #{csvName}, '%')</if>
<if test="infoResourceId != null and infoResourceId != ''"> and info_resource_id = #{infoResourceId}</if>
<if test="createDate != null "> and create_date = #{createDate}</if>
<if test="updateDate != null "> and update_date = #{updateDate}</if>
<if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
</where>
</select>
<select id="selectInfoFlightById" parameterType="String" resultMap="InfoFlightResult">
<include refid="selectInfoFlightVo"/>
where id = #{id}
</select>
<insert id="insertInfoFlight" parameterType="InfoFlight">
insert into info_flight
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">id,</if>
<if test="flDate != null ">fl_date,</if>
<if test="flNo != null and flNo != ''">fl_no,</if>
<if test="arn != null and arn != ''">arn,</if>
<if test="acType != null and acType != ''">ac_type,</if>
<if test="pod != null and pod != ''">pod,</if>
<if test="poa != null and poa != ''">poa,</if>
<if test="airline != null and airline != ''">airline,</if>
<if test="csvPath != null and csvPath != ''">csv_path,</if>
<if test="csvName != null and csvName != ''">csv_name,</if>
<if test="infoResourceId != null and infoResourceId != ''">info_resource_id,</if>
<if test="createBy != null and createBy != ''">create_by,</if>
<if test="createDate != null ">create_date,</if>
<if test="updateBy != null and updateBy != ''">update_by,</if>
<if test="updateDate != null ">update_date,</if>
<if test="remarks != null and remarks != ''">remarks,</if>
<if test="delFlag != null and delFlag != ''">del_flag,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null and id != ''">#{id},</if>
<if test="flDate != null ">#{flDate},</if>
<if test="flNo != null and flNo != ''">#{flNo},</if>
<if test="arn != null and arn != ''">#{arn},</if>
<if test="acType != null and acType != ''">#{acType},</if>
<if test="pod != null and pod != ''">#{pod},</if>
<if test="poa != null and poa != ''">#{poa},</if>
<if test="airline != null and airline != ''">#{airline},</if>
<if test="csvPath != null and csvPath != ''">#{csvPath},</if>
<if test="csvName != null and csvName != ''">#{csvName},</if>
<if test="infoResourceId != null and infoResourceId != ''">#{infoResourceId},</if>
<if test="createBy != null and createBy != ''">#{createBy},</if>
<if test="createDate != null ">#{createDate},</if>
<if test="updateBy != null and updateBy != ''">#{updateBy},</if>
<if test="updateDate != null ">#{updateDate},</if>
<if test="remarks != null and remarks != ''">#{remarks},</if>
<if test="delFlag != null and delFlag != ''">#{delFlag},</if>
</trim>
</insert>
<update id="updateInfoFlight" parameterType="InfoFlight">
update info_flight
<trim prefix="SET" suffixOverrides=",">
<if test="flDate != null ">fl_date = #{flDate},</if>
<if test="flNo != null and flNo != ''">fl_no = #{flNo},</if>
<if test="arn != null and arn != ''">arn = #{arn},</if>
<if test="acType != null and acType != ''">ac_type = #{acType},</if>
<if test="pod != null and pod != ''">pod = #{pod},</if>
<if test="poa != null and poa != ''">poa = #{poa},</if>
<if test="airline != null and airline != ''">airline = #{airline},</if>
<if test="csvPath != null and csvPath != ''">csv_path = #{csvPath},</if>
<if test="csvName != null and csvName != ''">csv_name = #{csvName},</if>
<if test="infoResourceId != null and infoResourceId != ''">info_resource_id = #{infoResourceId},</if>
<if test="createBy != null and createBy != ''">create_by = #{createBy},</if>
<if test="createDate != null ">create_date = #{createDate},</if>
<if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
<if test="updateDate != null ">update_date = #{updateDate},</if>
<if test="remarks != null and remarks != ''">remarks = #{remarks},</if>
<if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteInfoFlightById" parameterType="String">
delete from info_flight where id = #{id}
</delete>
<delete id="deleteInfoFlightByIds" parameterType="String">
delete from info_flight where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>