正在显示
1 个修改的文件
包含
0 行增加
和
140 行删除
| 1 | -<?xml version="1.0" encoding="UTF-8" ?> | ||
| 2 | -<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | ||
| 3 | -<mapper namespace="com.sunyo.wlpt.base.dao.NMMS_CUSTOM_WAYDECLARATIONMapper" > | ||
| 4 | - <resultMap id="BaseResultMap" type="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" > | ||
| 5 | - <result column="carrier" property="carrier" jdbcType="VARCHAR" /> | ||
| 6 | - <result column="flightNo" property="flightno" jdbcType="VARCHAR" /> | ||
| 7 | - <result column="flightDate" property="flightdate" jdbcType="DATE" /> | ||
| 8 | - <result column="originStation" property="originstation" jdbcType="VARCHAR" /> | ||
| 9 | - <result column="destinationStation" property="destinationstation" jdbcType="VARCHAR" /> | ||
| 10 | - <result column="awba" property="awba" jdbcType="VARCHAR" /> | ||
| 11 | - <result column="awbh" property="awbh" jdbcType="VARCHAR" /> | ||
| 12 | - <result column="piece" property="piece" jdbcType="INTEGER" /> | ||
| 13 | - <result column="weight" property="weight" jdbcType="DECIMAL" /> | ||
| 14 | - <result column="customCode" property="customcode" jdbcType="VARCHAR" /> | ||
| 15 | - <result column="acTime" property="actime" jdbcType="TIMESTAMP" /> | ||
| 16 | - <result column="status" property="status" jdbcType="VARCHAR" /> | ||
| 17 | - <result column="stype" property="stype" jdbcType="VARCHAR" /> | ||
| 18 | - </resultMap> | ||
| 19 | - <insert id="insert" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" > | ||
| 20 | - insert into NMMS_WAYDECLARATION (carrier, flightNo, flightDate, | ||
| 21 | - originStation, destinationStation, awba, | ||
| 22 | - awbh, piece, weight, | ||
| 23 | - customCode, acTime, status, | ||
| 24 | - stype) | ||
| 25 | - values (#{carrier,jdbcType=VARCHAR}, #{flightno,jdbcType=VARCHAR}, #{flightdate,jdbcType=DATE}, | ||
| 26 | - #{originstation,jdbcType=VARCHAR}, #{destinationstation,jdbcType=VARCHAR}, #{awba,jdbcType=VARCHAR}, | ||
| 27 | - #{awbh,jdbcType=VARCHAR}, #{piece,jdbcType=INTEGER}, #{weight,jdbcType=DECIMAL}, | ||
| 28 | - #{customcode,jdbcType=VARCHAR}, #{actime,jdbcType=TIMESTAMP}, #{status,jdbcType=VARCHAR}, | ||
| 29 | - #{stype,jdbcType=VARCHAR}) | ||
| 30 | - </insert> | ||
| 31 | - <insert id="insertSelective" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" > | ||
| 32 | - insert into NMMS_WAYDECLARATION | ||
| 33 | - <trim prefix="(" suffix=")" suffixOverrides="," > | ||
| 34 | - <if test="carrier != null" > | ||
| 35 | - carrier, | ||
| 36 | - </if> | ||
| 37 | - <if test="flightno != null" > | ||
| 38 | - flightNo, | ||
| 39 | - </if> | ||
| 40 | - <if test="flightdate != null" > | ||
| 41 | - flightDate, | ||
| 42 | - </if> | ||
| 43 | - <if test="originstation != null" > | ||
| 44 | - originStation, | ||
| 45 | - </if> | ||
| 46 | - <if test="destinationstation != null" > | ||
| 47 | - destinationStation, | ||
| 48 | - </if> | ||
| 49 | - <if test="awba != null" > | ||
| 50 | - awba, | ||
| 51 | - </if> | ||
| 52 | - <if test="awbh != null" > | ||
| 53 | - awbh, | ||
| 54 | - </if> | ||
| 55 | - <if test="piece != null" > | ||
| 56 | - piece, | ||
| 57 | - </if> | ||
| 58 | - <if test="weight != null" > | ||
| 59 | - weight, | ||
| 60 | - </if> | ||
| 61 | - <if test="customcode != null" > | ||
| 62 | - customCode, | ||
| 63 | - </if> | ||
| 64 | - <if test="actime != null" > | ||
| 65 | - acTime, | ||
| 66 | - </if> | ||
| 67 | - <if test="status != null" > | ||
| 68 | - status, | ||
| 69 | - </if> | ||
| 70 | - <if test="stype != null" > | ||
| 71 | - stype, | ||
| 72 | - </if> | ||
| 73 | - </trim> | ||
| 74 | - <trim prefix="values (" suffix=")" suffixOverrides="," > | ||
| 75 | - <if test="carrier != null" > | ||
| 76 | - #{carrier,jdbcType=VARCHAR}, | ||
| 77 | - </if> | ||
| 78 | - <if test="flightno != null" > | ||
| 79 | - #{flightno,jdbcType=VARCHAR}, | ||
| 80 | - </if> | ||
| 81 | - <if test="flightdate != null" > | ||
| 82 | - #{flightdate,jdbcType=DATE}, | ||
| 83 | - </if> | ||
| 84 | - <if test="originstation != null" > | ||
| 85 | - #{originstation,jdbcType=VARCHAR}, | ||
| 86 | - </if> | ||
| 87 | - <if test="destinationstation != null" > | ||
| 88 | - #{destinationstation,jdbcType=VARCHAR}, | ||
| 89 | - </if> | ||
| 90 | - <if test="awba != null" > | ||
| 91 | - #{awba,jdbcType=VARCHAR}, | ||
| 92 | - </if> | ||
| 93 | - <if test="awbh != null" > | ||
| 94 | - #{awbh,jdbcType=VARCHAR}, | ||
| 95 | - </if> | ||
| 96 | - <if test="piece != null" > | ||
| 97 | - #{piece,jdbcType=INTEGER}, | ||
| 98 | - </if> | ||
| 99 | - <if test="weight != null" > | ||
| 100 | - #{weight,jdbcType=DECIMAL}, | ||
| 101 | - </if> | ||
| 102 | - <if test="customcode != null" > | ||
| 103 | - #{customcode,jdbcType=VARCHAR}, | ||
| 104 | - </if> | ||
| 105 | - <if test="actime != null" > | ||
| 106 | - #{actime,jdbcType=TIMESTAMP}, | ||
| 107 | - </if> | ||
| 108 | - <if test="status != null" > | ||
| 109 | - #{status,jdbcType=VARCHAR}, | ||
| 110 | - </if> | ||
| 111 | - <if test="stype != null" > | ||
| 112 | - #{stype,jdbcType=VARCHAR}, | ||
| 113 | - </if> | ||
| 114 | - </trim> | ||
| 115 | - </insert> | ||
| 116 | - <select id="selectWaydeclaration" parameterType="com.sunyo.wlpt.base.model.NMMS_CUSTOM_WAYDECLARATION" resultMap="BaseResultMap"> | ||
| 117 | - select | ||
| 118 | - <include refid="Base_Column_List" /> | ||
| 119 | - from NMMS_WAYDECLARATION | ||
| 120 | - where 1=1 | ||
| 121 | - <if test="awba !=null and awba != ''"> | ||
| 122 | - and awba=#{awba,jdbcType=VARCHAR} | ||
| 123 | - </if> | ||
| 124 | - <if test="carrier !=null and carrier !=''"> | ||
| 125 | - AND carrier = #{carrier,jdbcType=VARCHAR} | ||
| 126 | - </if> | ||
| 127 | - <if test="flightno !=null and flightno !=''"> | ||
| 128 | - AND flightNo = #{flightno,jdbcType=VARCHAR} | ||
| 129 | - </if> | ||
| 130 | - <if test="flightdate !=null"> | ||
| 131 | - AND flightDate = #{flightdate,jdbcType=DATE} | ||
| 132 | - </if> | ||
| 133 | - <if test="status !=null and status !=''"> | ||
| 134 | - AND status = #{status,jdbcType=VARCHAR} | ||
| 135 | - </if> | ||
| 136 | - <if test="stype !=null and stype !=''"> | ||
| 137 | - AND stype = #{stype,jdbcType=VARCHAR} | ||
| 138 | - </if> | ||
| 139 | - </select> | ||
| 140 | -</mapper> |
-
请 注册 或 登录 后发表评论