Browse Source

修改提货单位下拉

HUJIANGUO 3 years ago
parent
commit
e31f366c43

+ 0 - 1
src/main/java/com/steerinfo/dil/controller/AmsshipDeliveryAttorneyController.java

@@ -135,7 +135,6 @@ public class AmsshipDeliveryAttorneyController extends BaseRESTfulController {
     @GetMapping("getAttorneyId")
     @ApiOperation(value = "获取提货通知单id下拉列表")
     public RESTfulResult getAttorneyId(){
-
         return success(amsshipDeliveryAttorneyService.getAttorneyId());
     }
     //得到收货人id

+ 671 - 670
src/main/resources/com/steerinfo/dil/mapper/AmsshipDeliveryAttorneyMapper.xml

@@ -1,690 +1,691 @@
 <?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.steerinfo.dil.mapper.AmsshipDeliveryAttorneyMapper">
-  <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
-    <id column="ATTORNEY_ID" jdbcType="DECIMAL" property="attorneyId" />
-    <result column="BATCH_ID" jdbcType="DECIMAL" property="batchId" />
-    <result column="PORT_ID" jdbcType="DECIMAL" property="portId" />
-    <result column="DOWN_SWIM_PORT_ID" jdbcType="DECIMAL" property="downSwimPortId" />
-    <result column="ATTORNEY_PICKUP_CONTACT_PERSON" jdbcType="VARCHAR" property="attorneyPickupContactPerson" />
-    <result column="ATTORENY_PICKUP_IDCARD" jdbcType="VARCHAR" property="attorenyPickupIdcard" />
-    <result column="ATTORNEY_CONTACT_TELEPHONE" jdbcType="VARCHAR" property="attorneyContactTelephone" />
-    <result column="ATTORNEY_TIME" jdbcType="TIMESTAMP" property="attorneyTime" />
-    <result column="ATTORNEY_PDFFILE" jdbcType="VARCHAR" property="attorneyPdffile" />
-    <result column="DELETE_NAME" jdbcType="VARCHAR" property="deleteName" />
-    <result column="DELETE_TIME" jdbcType="VARCHAR" property="deleteTime" />
-    <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername" />
-    <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime" />
-    <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername" />
-    <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime" />
-    <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark" />
-    <result column="DELETED" jdbcType="DECIMAL" property="deleted" />
-    <result column="ATTORNEY_DISTRIBUTION_STATUS" jdbcType="VARCHAR" property="attorneyDistributionStatus" />
-  </resultMap>
-  <sql id="columns">
-    ATTORNEY_ID, BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON,
+    <resultMap id="BaseResultMap" type="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
+        <id column="ATTORNEY_ID" jdbcType="DECIMAL" property="attorneyId"/>
+        <result column="BATCH_ID" jdbcType="DECIMAL" property="batchId"/>
+        <result column="PORT_ID" jdbcType="DECIMAL" property="portId"/>
+        <result column="DOWN_SWIM_PORT_ID" jdbcType="DECIMAL" property="downSwimPortId"/>
+        <result column="ATTORNEY_PICKUP_CONTACT_PERSON" jdbcType="VARCHAR" property="attorneyPickupContactPerson"/>
+        <result column="ATTORENY_PICKUP_IDCARD" jdbcType="VARCHAR" property="attorenyPickupIdcard"/>
+        <result column="ATTORNEY_CONTACT_TELEPHONE" jdbcType="VARCHAR" property="attorneyContactTelephone"/>
+        <result column="ATTORNEY_TIME" jdbcType="TIMESTAMP" property="attorneyTime"/>
+        <result column="ATTORNEY_PDFFILE" jdbcType="VARCHAR" property="attorneyPdffile"/>
+        <result column="DELETE_NAME" jdbcType="VARCHAR" property="deleteName"/>
+        <result column="DELETE_TIME" jdbcType="VARCHAR" property="deleteTime"/>
+        <result column="INSERT_USERNAME" jdbcType="VARCHAR" property="insertUsername"/>
+        <result column="INSERT_TIME" jdbcType="TIMESTAMP" property="insertTime"/>
+        <result column="UPDATE_USERNAME" jdbcType="VARCHAR" property="updateUsername"/>
+        <result column="UPDATE_TIME" jdbcType="TIMESTAMP" property="updateTime"/>
+        <result column="INSERT_UPDATE_REMARK" jdbcType="VARCHAR" property="insertUpdateRemark"/>
+        <result column="DELETED" jdbcType="DECIMAL" property="deleted"/>
+        <result column="ATTORNEY_DISTRIBUTION_STATUS" jdbcType="VARCHAR" property="attorneyDistributionStatus"/>
+    </resultMap>
+    <sql id="columns">
+        ATTORNEY_ID, BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON,
     ATTORENY_PICKUP_IDCARD, ATTORNEY_CONTACT_TELEPHONE, ATTORNEY_TIME, ATTORNEY_PDFFILE,
     DELETE_NAME, DELETE_TIME, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
     INSERT_UPDATE_REMARK, DELETED, ATTORNEY_DISTRIBUTION_STATUS
-  </sql>
-  <sql id="columns_alias">
-    t.ATTORNEY_ID, t.BATCH_ID, t.PORT_ID, t.DOWN_SWIM_PORT_ID, t.ATTORNEY_PICKUP_CONTACT_PERSON,
+    </sql>
+    <sql id="columns_alias">
+        t.ATTORNEY_ID, t.BATCH_ID, t.PORT_ID, t.DOWN_SWIM_PORT_ID, t.ATTORNEY_PICKUP_CONTACT_PERSON,
     t.ATTORENY_PICKUP_IDCARD, t.ATTORNEY_CONTACT_TELEPHONE, t.ATTORNEY_TIME, t.ATTORNEY_PDFFILE,
     t.DELETE_NAME, t.DELETE_TIME, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
     t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED, t.ATTORNEY_DISTRIBUTION_STATUS
-  </sql>
-  <sql id="select">
-    SELECT <include refid="columns"/> FROM AMSSHIP_DELIVERY_ATTORNEY
-  </sql>
-  <sql id="select_alias">
-    SELECT <include refid="columns_alias"/> FROM AMSSHIP_DELIVERY_ATTORNEY t
-  </sql>
-  <sql id="where">
-    <where>
-      <if test="attorneyId != null">
-        and ATTORNEY_ID = #{attorneyId}
-      </if>
-      <if test="batchId != null">
-        and BATCH_ID = #{batchId}
-      </if>
-      <if test="portId != null">
-        and PORT_ID = #{portId}
-      </if>
-      <if test="downSwimPortId != null">
-        and DOWN_SWIM_PORT_ID = #{downSwimPortId}
-      </if>
-      <if test="attorneyPickupContactPerson != null and attorneyPickupContactPerson != ''">
-        and ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson}
-      </if>
-      <if test="attorenyPickupIdcard != null and attorenyPickupIdcard != ''">
-        and ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard}
-      </if>
-      <if test="attorneyContactTelephone != null and attorneyContactTelephone != ''">
-        and ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone}
-      </if>
-      <if test="attorneyTime != null">
-        and TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = #{attorneyTime}
-      </if>
-      <if test="attorneyPdffile != null and attorneyPdffile != ''">
-        and ATTORNEY_PDFFILE = #{attorneyPdffile}
-      </if>
-      <if test="deleteName != null and deleteName != ''">
-        and DELETE_NAME = #{deleteName}
-      </if>
-      <if test="deleteTime != null and deleteTime != ''">
-        and DELETE_TIME = #{deleteTime}
-      </if>
-      <if test="insertUsername != null and insertUsername != ''">
-        and INSERT_USERNAME = #{insertUsername}
-      </if>
-      <if test="insertTime != null">
-        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
-      </if>
-      <if test="updateUsername != null and updateUsername != ''">
-        and UPDATE_USERNAME = #{updateUsername}
-      </if>
-      <if test="updateTime != null">
-        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-      </if>
-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
-        and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
-      </if>
-      <if test="deleted != null">
-        and DELETED = #{deleted}
-      </if>
-      <if test="attorneyDistributionStatus != null and attorneyDistributionStatus != ''">
-        and ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus}
-      </if>
-    </where>
-  </sql>
-  <sql id="whereLike">
-    <where>
-      <if test="attorneyId != null">
-        and ATTORNEY_ID = #{attorneyId}
-      </if>
-      <if test="batchId != null">
-        and BATCH_ID = #{batchId}
-      </if>
-      <if test="portId != null">
-        and PORT_ID = #{portId}
-      </if>
-      <if test="downSwimPortId != null">
-        and DOWN_SWIM_PORT_ID = #{downSwimPortId}
-      </if>
-      <if test="attorneyPickupContactPerson != null and attorneyPickupContactPerson != ''">
-        and ATTORNEY_PICKUP_CONTACT_PERSON LIKE '%${attorneyPickupContactPerson}%'
-      </if>
-      <if test="attorenyPickupIdcard != null and attorenyPickupIdcard != ''">
-        and ATTORENY_PICKUP_IDCARD LIKE '%${attorenyPickupIdcard}%'
-      </if>
-      <if test="attorneyContactTelephone != null and attorneyContactTelephone != ''">
-        and ATTORNEY_CONTACT_TELEPHONE LIKE '%${attorneyContactTelephone}%'
-      </if>
-      <if test="attorneyTime != null">
-        and TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = #{attorneyTime}
-      </if>
-      <if test="attorneyPdffile != null and attorneyPdffile != ''">
-        and ATTORNEY_PDFFILE LIKE '%${attorneyPdffile}%'
-      </if>
-      <if test="deleteName != null and deleteName != ''">
-        and DELETE_NAME LIKE '%${deleteName}%'
-      </if>
-      <if test="deleteTime != null and deleteTime != ''">
-        and DELETE_TIME LIKE '%${deleteTime}%'
-      </if>
-      <if test="insertUsername != null and insertUsername != ''">
-        and INSERT_USERNAME LIKE '%${insertUsername}%'
-      </if>
-      <if test="insertTime != null">
-        and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
-      </if>
-      <if test="updateUsername != null and updateUsername != ''">
-        and UPDATE_USERNAME LIKE '%${updateUsername}%'
-      </if>
-      <if test="updateTime != null">
-        and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
-      </if>
-      <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
-        and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
-      </if>
-      <if test="deleted != null">
-        and DELETED = #{deleted}
-      </if>
-      <if test="attorneyDistributionStatus != null and attorneyDistributionStatus != ''">
-        and ATTORNEY_DISTRIBUTION_STATUS LIKE '%${attorneyDistributionStatus}%'
-      </if>
-    </where>
-  </sql>
-  <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
-    delete from AMSSHIP_DELIVERY_ATTORNEY
-    where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
-  </delete>
-  <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
-    delete from AMSSHIP_DELIVERY_ATTORNEY
-    where 1!=1
-    <if test="batchId != null">
-      or BATCH_ID = #{batchId}
-    </if>
-    <if test="portId != null">
-      or PORT_ID = #{portId}
-    </if>
-    <if test="downSwimPortId != null">
-      or DOWN_SWIM_PORT_ID = #{downSwimPortId}
-    </if>
-    <if test="attorneyPickupContactPerson != null and attorneyPickupContactPerson != ''">
-      or ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson}
-    </if>
-    <if test="attorenyPickupIdcard != null and attorenyPickupIdcard != ''">
-      or ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard}
-    </if>
-    <if test="attorneyContactTelephone != null and attorneyContactTelephone != ''">
-      or ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone}
-    </if>
-    <if test="attorneyTime != null">
-      or TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = '#{attorneyTime}'
-    </if>
-    <if test="attorneyPdffile != null and attorneyPdffile != ''">
-      or ATTORNEY_PDFFILE = #{attorneyPdffile}
-    </if>
-    <if test="deleteName != null and deleteName != ''">
-      or DELETE_NAME = #{deleteName}
-    </if>
-    <if test="deleteTime != null and deleteTime != ''">
-      or DELETE_TIME = #{deleteTime}
-    </if>
-    <if test="insertUsername != null and insertUsername != ''">
-      or INSERT_USERNAME = #{insertUsername}
-    </if>
-    <if test="insertTime != null">
-      or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
-    </if>
-    <if test="updateUsername != null and updateUsername != ''">
-      or UPDATE_USERNAME = #{updateUsername}
-    </if>
-    <if test="updateTime != null">
-      or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
-    </if>
-    <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
-      or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
-    </if>
-    <if test="deleted != null">
-      or DELETED = #{deleted}
-    </if>
-    <if test="attorneyDistributionStatus != null and attorneyDistributionStatus != ''">
-      or ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus}
-    </if>
-  </delete>
-  <insert id="insert" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
-    insert into AMSSHIP_DELIVERY_ATTORNEY (ATTORNEY_ID, BATCH_ID, PORT_ID,
-                                           DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON,
-                                           ATTORENY_PICKUP_IDCARD, ATTORNEY_CONTACT_TELEPHONE,
-                                           ATTORNEY_TIME, ATTORNEY_PDFFILE, DELETE_NAME,
-                                           DELETE_TIME, INSERT_USERNAME, INSERT_TIME,
-                                           UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
-                                           DELETED, ATTORNEY_DISTRIBUTION_STATUS)
-    values (#{attorneyId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{portId,jdbcType=DECIMAL},
-            #{downSwimPortId,jdbcType=DECIMAL}, #{attorneyPickupContactPerson,jdbcType=VARCHAR},
-            #{attorenyPickupIdcard,jdbcType=VARCHAR}, #{attorneyContactTelephone,jdbcType=VARCHAR},
-            #{attorneyTime,jdbcType=TIMESTAMP}, #{attorneyPdffile,jdbcType=VARCHAR}, #{deleteName,jdbcType=VARCHAR},
-            #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
-            #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
-            #{deleted,jdbcType=DECIMAL}, #{attorneyDistributionStatus,jdbcType=VARCHAR})
-  </insert>
-  <insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
-    insert into AMSSHIP_DELIVERY_ATTORNEY
-    <trim prefix="(" suffix=")" suffixOverrides=",">
-      <if test="attorneyId != null">
-        ATTORNEY_ID,
-      </if>
-      <if test="batchId != null">
-        BATCH_ID,
-      </if>
-      <if test="portId != null">
-        PORT_ID,
-      </if>
-      <if test="downSwimPortId != null">
-        DOWN_SWIM_PORT_ID,
-      </if>
-      <if test="attorneyPickupContactPerson != null">
-        ATTORNEY_PICKUP_CONTACT_PERSON,
-      </if>
-      <if test="attorenyPickupIdcard != null">
-        ATTORENY_PICKUP_IDCARD,
-      </if>
-      <if test="attorneyContactTelephone != null">
-        ATTORNEY_CONTACT_TELEPHONE,
-      </if>
-      <if test="attorneyTime != null">
-        ATTORNEY_TIME,
-      </if>
-      <if test="attorneyPdffile != null">
-        ATTORNEY_PDFFILE,
-      </if>
-      <if test="deleteName != null">
-        DELETE_NAME,
-      </if>
-      <if test="deleteTime != null">
-        DELETE_TIME,
-      </if>
-      <if test="insertUsername != null">
-        INSERT_USERNAME,
-      </if>
-      <if test="insertTime != null">
-        INSERT_TIME,
-      </if>
-      <if test="updateUsername != null">
-        UPDATE_USERNAME,
-      </if>
-      <if test="updateTime != null">
-        UPDATE_TIME,
-      </if>
-      <if test="insertUpdateRemark != null">
-        INSERT_UPDATE_REMARK,
-      </if>
-      <if test="deleted != null">
-        DELETED,
-      </if>
-      <if test="attorneyDistributionStatus != null">
-        ATTORNEY_DISTRIBUTION_STATUS,
-      </if>
-    </trim>
-    <trim prefix="values (" suffix=")" suffixOverrides=",">
-      <if test="attorneyId != null">
-        #{attorneyId,jdbcType=DECIMAL},
-      </if>
-      <if test="batchId != null">
-        #{batchId,jdbcType=DECIMAL},
-      </if>
-      <if test="portId != null">
-        #{portId,jdbcType=DECIMAL},
-      </if>
-      <if test="downSwimPortId != null">
-        #{downSwimPortId,jdbcType=DECIMAL},
-      </if>
-      <if test="attorneyPickupContactPerson != null">
-        #{attorneyPickupContactPerson,jdbcType=VARCHAR},
-      </if>
-      <if test="attorenyPickupIdcard != null">
-        #{attorenyPickupIdcard,jdbcType=VARCHAR},
-      </if>
-      <if test="attorneyContactTelephone != null">
-        #{attorneyContactTelephone,jdbcType=VARCHAR},
-      </if>
-      <if test="attorneyTime != null">
-        #{attorneyTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="attorneyPdffile != null">
-        #{attorneyPdffile,jdbcType=VARCHAR},
-      </if>
-      <if test="deleteName != null">
-        #{deleteName,jdbcType=VARCHAR},
-      </if>
-      <if test="deleteTime != null">
-        #{deleteTime,jdbcType=VARCHAR},
-      </if>
-      <if test="insertUsername != null">
-        #{insertUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="insertTime != null">
-        #{insertTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="updateUsername != null">
-        #{updateUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="updateTime != null">
-        #{updateTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="insertUpdateRemark != null">
-        #{insertUpdateRemark,jdbcType=VARCHAR},
-      </if>
-      <if test="deleted != null">
-        #{deleted,jdbcType=DECIMAL},
-      </if>
-      <if test="attorneyDistributionStatus != null">
-        #{attorneyDistributionStatus,jdbcType=VARCHAR},
-      </if>
-    </trim>
-  </insert>
-  <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
-    update AMSSHIP_DELIVERY_ATTORNEY
-    set BATCH_ID = #{batchId,jdbcType=DECIMAL},
-        PORT_ID = #{portId,jdbcType=DECIMAL},
-        DOWN_SWIM_PORT_ID = #{downSwimPortId,jdbcType=DECIMAL},
-        ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson,jdbcType=VARCHAR},
-        ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard,jdbcType=VARCHAR},
-        ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone,jdbcType=VARCHAR},
-        ATTORNEY_TIME = #{attorneyTime,jdbcType=TIMESTAMP},
-        ATTORNEY_PDFFILE = #{attorneyPdffile,jdbcType=VARCHAR},
-        DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
-        DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
-        INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
-        INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
-        UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
-        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
-        DELETED = #{deleted,jdbcType=DECIMAL},
-        ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus,jdbcType=VARCHAR}
-    where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
-  </update>
-  <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
-    update AMSSHIP_DELIVERY_ATTORNEY
-    <set>
-      <if test="batchId != null">
-        BATCH_ID = #{batchId,jdbcType=DECIMAL},
-      </if>
-      <if test="portId != null">
-        PORT_ID = #{portId,jdbcType=DECIMAL},
-      </if>
-      <if test="downSwimPortId != null">
-        DOWN_SWIM_PORT_ID = #{downSwimPortId,jdbcType=DECIMAL},
-      </if>
-      <if test="attorneyPickupContactPerson != null">
-        ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson,jdbcType=VARCHAR},
-      </if>
-      <if test="attorenyPickupIdcard != null">
-        ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard,jdbcType=VARCHAR},
-      </if>
-      <if test="attorneyContactTelephone != null">
-        ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone,jdbcType=VARCHAR},
-      </if>
-      <if test="attorneyTime != null">
-        ATTORNEY_TIME = #{attorneyTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="attorneyPdffile != null">
-        ATTORNEY_PDFFILE = #{attorneyPdffile,jdbcType=VARCHAR},
-      </if>
-      <if test="deleteName != null">
-        DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
-      </if>
-      <if test="deleteTime != null">
-        DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
-      </if>
-      <if test="insertUsername != null">
-        INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="insertTime != null">
-        INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="updateUsername != null">
-        UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
-      </if>
-      <if test="updateTime != null">
-        UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
-      </if>
-      <if test="insertUpdateRemark != null">
-        INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
-      </if>
-      <if test="deleted != null">
-        DELETED = #{deleted,jdbcType=DECIMAL},
-      </if>
-      <if test="attorneyDistributionStatus != null">
-        ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus,jdbcType=VARCHAR},
-      </if>
-    </set>
-    where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
-  </update>
-  <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
-    <include refid="select"/>
-    where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
-  </select>
-  <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-    <include refid="select"/>
-    <include refid="where"/>
-  </select>
-  <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
-    <include refid="select"/>
-    <include refid="whereLike"/>
-  </select>
-  <insert id="batchInsert" parameterType="java.util.List">
-    insert into AMSSHIP_DELIVERY_ATTORNEY
-    (ATTORNEY_ID,
-    BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID,
-    ATTORNEY_PICKUP_CONTACT_PERSON, ATTORENY_PICKUP_IDCARD,
-    ATTORNEY_CONTACT_TELEPHONE, ATTORNEY_TIME,
-    ATTORNEY_PDFFILE, DELETE_NAME,
-    DELETE_TIME, INSERT_USERNAME, INSERT_TIME,
-    UPDATE_USERNAME, UPDATE_TIME,
-    INSERT_UPDATE_REMARK, DELETED,
-    ATTORNEY_DISTRIBUTION_STATUS)
-    ( <foreach collection="list" item="item" separator="union all">
-    select
-    #{item.attorneyId,jdbcType=DECIMAL},
-    #{item.batchId,jdbcType=DECIMAL}, #{item.portId,jdbcType=DECIMAL}, #{item.downSwimPortId,jdbcType=DECIMAL},
-    #{item.attorneyPickupContactPerson,jdbcType=VARCHAR}, #{item.attorenyPickupIdcard,jdbcType=VARCHAR},
-    #{item.attorneyContactTelephone,jdbcType=VARCHAR}, #{item.attorneyTime,jdbcType=TIMESTAMP},
-    #{item.attorneyPdffile,jdbcType=VARCHAR}, #{item.deleteName,jdbcType=VARCHAR},
-    #{item.deleteTime,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR}, #{item.insertTime,jdbcType=TIMESTAMP},
-    #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
-    #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
-    #{item.attorneyDistributionStatus,jdbcType=VARCHAR} from dual
-  </foreach> )
-  </insert>
-  <update id="batchUpdate" parameterType="java.util.List">
-    update AMSSHIP_DELIVERY_ATTORNEY
-    set
-    ATTORNEY_ID=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyId,jdbcType=DECIMAL}
-    </foreach>
-    ,BATCH_ID=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
-    </foreach>
-    ,PORT_ID=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL}
-    </foreach>
-    ,DOWN_SWIM_PORT_ID=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.downSwimPortId,jdbcType=DECIMAL}
-    </foreach>
-    ,ATTORNEY_PICKUP_CONTACT_PERSON=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyPickupContactPerson,jdbcType=VARCHAR}
-    </foreach>
-    ,ATTORENY_PICKUP_IDCARD=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorenyPickupIdcard,jdbcType=VARCHAR}
-    </foreach>
-    ,ATTORNEY_CONTACT_TELEPHONE=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyContactTelephone,jdbcType=VARCHAR}
-    </foreach>
-    ,ATTORNEY_TIME=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyTime,jdbcType=TIMESTAMP}
-    </foreach>
-    ,ATTORNEY_PDFFILE=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyPdffile,jdbcType=VARCHAR}
-    </foreach>
-    ,DELETE_NAME=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
-    </foreach>
-    ,DELETE_TIME=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR}
-    </foreach>
-    ,INSERT_USERNAME=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
-    </foreach>
-    ,INSERT_TIME=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
-    </foreach>
-    ,UPDATE_USERNAME=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
-    </foreach>
-    ,UPDATE_TIME=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
-    </foreach>
-    ,INSERT_UPDATE_REMARK=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
-    </foreach>
-    ,DELETED=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
-    </foreach>
-    ,ATTORNEY_DISTRIBUTION_STATUS=
-    <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
-      when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyDistributionStatus,jdbcType=VARCHAR}
-    </foreach>
-    where ATTORNEY_ID in
-    <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
-      #{item.attorneyId,jdbcType=DECIMAL}
-    </foreach>
-  </update>
-  <delete id="batchDelete" parameterType="java.util.List">
-    delete from AMSSHIP_DELIVERY_ATTORNEY
-    where ATTORNEY_ID in
-    <foreach collection="list" item="id" open="(" close=")" separator=",">
-      #{id}
-    </foreach>
-  </delete>
-  <!-- 友情提示!!!-->
-  <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
-  <select id="selectshipCargoTranferResult" resultType="java.util.Map">
-    select *
-    from(select
-    t3.SHIPPER_NAME  "shipperName",
-    t4.CARRIER_NAME  "carrierName",
-    t6.RESULT_FOREIGN_SHIP_NAME "resultForeignShipName",
-    t8.MATERIAL_NAME "materialName",
-    t5.PORT_NAME "portName",
-    t5.PORT_NAME "portName1",
-    t1.ATTORNEY_PICKUP_CONTACT_PERSON "attorneyPickupContactPerson",
-    t1.ATTORENY_PICKUP_IDCARD  "attorneyPickupIdcard",
-    t1.ATTORNEY_CONTACT_TELEPHONE "attorneyContactTelephone",
-    t1.ATTORNEY_TIME "attorneyTime",
-    t7.PUCHASE_ORDER_MATERIAL_NUMBER "purchaseOrderMaterialNumber",
-    t2.CARRIER_ID "carrierId",
-    t2.REQUESTER_GROUP_ID "groupId",
-    t1.ATTORNEY_ID "attorneyId",
-    t1.BATCH_ID "batchId"
-    from   AMSSHIP_DELIVERY_ATTORNEY t1
-    left join  AMSSHIP_DELIVERY_NOTICE t2
-    on  t1.BATCH_ID=t2.BATCH_ID
-    left join RMS_SHIPPER t3
-    on t2.REQUESTER_GROUP_ID=t3.SHIPPER_ID
-    left join APPOINT_CARRIER t4
-    on t2.CARRIER_ID=t4.CARRIER_ID
-    left join  RMS_PORT t5
-    on t1.PORT_ID=t5.PORT_ID
-    left join  DIL_BATCH t6
-    on t1.BATCH_ID=t6.BATCH_ID
-    left join AMS_PURCHASE_ORDER t7
-    on t6.BATCH_ID=t7.BATCH_ID
-    left join  RMS_MATERIAL t8
-    on t6.MATERIAL_ID=t8.MATERIAL_ID
-    where  t1.deleted = 0
-    )
-    <where>
-      <if test="shipperName!= null">
-        and  t3.SHIPPER_NAME in
-        <foreach collection="shipperName" item="item" open="(" separator="," close=")">
-          #{item}
+    </sql>
+    <sql id="select">
+        SELECT
+        <include refid="columns"/>
+        FROM AMSSHIP_DELIVERY_ATTORNEY
+    </sql>
+    <sql id="select_alias">
+        SELECT
+        <include refid="columns_alias"/>
+        FROM AMSSHIP_DELIVERY_ATTORNEY t
+    </sql>
+    <sql id="where">
+        <where>
+            <if test="attorneyId != null">
+                and ATTORNEY_ID = #{attorneyId}
+            </if>
+            <if test="batchId != null">
+                and BATCH_ID = #{batchId}
+            </if>
+            <if test="portId != null">
+                and PORT_ID = #{portId}
+            </if>
+            <if test="downSwimPortId != null">
+                and DOWN_SWIM_PORT_ID = #{downSwimPortId}
+            </if>
+            <if test="attorneyPickupContactPerson != null and attorneyPickupContactPerson != ''">
+                and ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson}
+            </if>
+            <if test="attorenyPickupIdcard != null and attorenyPickupIdcard != ''">
+                and ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard}
+            </if>
+            <if test="attorneyContactTelephone != null and attorneyContactTelephone != ''">
+                and ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone}
+            </if>
+            <if test="attorneyTime != null">
+                and TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = #{attorneyTime}
+            </if>
+            <if test="attorneyPdffile != null and attorneyPdffile != ''">
+                and ATTORNEY_PDFFILE = #{attorneyPdffile}
+            </if>
+            <if test="deleteName != null and deleteName != ''">
+                and DELETE_NAME = #{deleteName}
+            </if>
+            <if test="deleteTime != null and deleteTime != ''">
+                and DELETE_TIME = #{deleteTime}
+            </if>
+            <if test="insertUsername != null and insertUsername != ''">
+                and INSERT_USERNAME = #{insertUsername}
+            </if>
+            <if test="insertTime != null">
+                and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+            </if>
+            <if test="updateUsername != null and updateUsername != ''">
+                and UPDATE_USERNAME = #{updateUsername}
+            </if>
+            <if test="updateTime != null">
+                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+            </if>
+            <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+                and INSERT_UPDATE_REMARK = #{insertUpdateRemark}
+            </if>
+            <if test="deleted != null">
+                and DELETED = #{deleted}
+            </if>
+            <if test="attorneyDistributionStatus != null and attorneyDistributionStatus != ''">
+                and ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus}
+            </if>
+        </where>
+    </sql>
+    <sql id="whereLike">
+        <where>
+            <if test="attorneyId != null">
+                and ATTORNEY_ID = #{attorneyId}
+            </if>
+            <if test="batchId != null">
+                and BATCH_ID = #{batchId}
+            </if>
+            <if test="portId != null">
+                and PORT_ID = #{portId}
+            </if>
+            <if test="downSwimPortId != null">
+                and DOWN_SWIM_PORT_ID = #{downSwimPortId}
+            </if>
+            <if test="attorneyPickupContactPerson != null and attorneyPickupContactPerson != ''">
+                and ATTORNEY_PICKUP_CONTACT_PERSON LIKE '%${attorneyPickupContactPerson}%'
+            </if>
+            <if test="attorenyPickupIdcard != null and attorenyPickupIdcard != ''">
+                and ATTORENY_PICKUP_IDCARD LIKE '%${attorenyPickupIdcard}%'
+            </if>
+            <if test="attorneyContactTelephone != null and attorneyContactTelephone != ''">
+                and ATTORNEY_CONTACT_TELEPHONE LIKE '%${attorneyContactTelephone}%'
+            </if>
+            <if test="attorneyTime != null">
+                and TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = #{attorneyTime}
+            </if>
+            <if test="attorneyPdffile != null and attorneyPdffile != ''">
+                and ATTORNEY_PDFFILE LIKE '%${attorneyPdffile}%'
+            </if>
+            <if test="deleteName != null and deleteName != ''">
+                and DELETE_NAME LIKE '%${deleteName}%'
+            </if>
+            <if test="deleteTime != null and deleteTime != ''">
+                and DELETE_TIME LIKE '%${deleteTime}%'
+            </if>
+            <if test="insertUsername != null and insertUsername != ''">
+                and INSERT_USERNAME LIKE '%${insertUsername}%'
+            </if>
+            <if test="insertTime != null">
+                and TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = #{insertTime}
+            </if>
+            <if test="updateUsername != null and updateUsername != ''">
+                and UPDATE_USERNAME LIKE '%${updateUsername}%'
+            </if>
+            <if test="updateTime != null">
+                and TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = #{updateTime}
+            </if>
+            <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+                and INSERT_UPDATE_REMARK LIKE '%${insertUpdateRemark}%'
+            </if>
+            <if test="deleted != null">
+                and DELETED = #{deleted}
+            </if>
+            <if test="attorneyDistributionStatus != null and attorneyDistributionStatus != ''">
+                and ATTORNEY_DISTRIBUTION_STATUS LIKE '%${attorneyDistributionStatus}%'
+            </if>
+        </where>
+    </sql>
+    <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
+        delete
+        from AMSSHIP_DELIVERY_ATTORNEY
+        where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
+    </delete>
+    <delete id="deleteBySelectiveElement" parameterType="java.util.HashMap">
+        delete from AMSSHIP_DELIVERY_ATTORNEY
+        where 1!=1
+        <if test="batchId != null">
+            or BATCH_ID = #{batchId}
+        </if>
+        <if test="portId != null">
+            or PORT_ID = #{portId}
+        </if>
+        <if test="downSwimPortId != null">
+            or DOWN_SWIM_PORT_ID = #{downSwimPortId}
+        </if>
+        <if test="attorneyPickupContactPerson != null and attorneyPickupContactPerson != ''">
+            or ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson}
+        </if>
+        <if test="attorenyPickupIdcard != null and attorenyPickupIdcard != ''">
+            or ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard}
+        </if>
+        <if test="attorneyContactTelephone != null and attorneyContactTelephone != ''">
+            or ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone}
+        </if>
+        <if test="attorneyTime != null">
+            or TO_CHAR(ATTORNEY_TIME,'yyyy-MM-dd') = '#{attorneyTime}'
+        </if>
+        <if test="attorneyPdffile != null and attorneyPdffile != ''">
+            or ATTORNEY_PDFFILE = #{attorneyPdffile}
+        </if>
+        <if test="deleteName != null and deleteName != ''">
+            or DELETE_NAME = #{deleteName}
+        </if>
+        <if test="deleteTime != null and deleteTime != ''">
+            or DELETE_TIME = #{deleteTime}
+        </if>
+        <if test="insertUsername != null and insertUsername != ''">
+            or INSERT_USERNAME = #{insertUsername}
+        </if>
+        <if test="insertTime != null">
+            or TO_CHAR(INSERT_TIME,'yyyy-MM-dd') = '#{insertTime}'
+        </if>
+        <if test="updateUsername != null and updateUsername != ''">
+            or UPDATE_USERNAME = #{updateUsername}
+        </if>
+        <if test="updateTime != null">
+            or TO_CHAR(UPDATE_TIME,'yyyy-MM-dd') = '#{updateTime}'
+        </if>
+        <if test="insertUpdateRemark != null and insertUpdateRemark != ''">
+            or INSERT_UPDATE_REMARK = #{insertUpdateRemark}
+        </if>
+        <if test="deleted != null">
+            or DELETED = #{deleted}
+        </if>
+        <if test="attorneyDistributionStatus != null and attorneyDistributionStatus != ''">
+            or ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus}
+        </if>
+    </delete>
+    <insert id="insert" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
+        insert into AMSSHIP_DELIVERY_ATTORNEY (ATTORNEY_ID, BATCH_ID, PORT_ID,
+                                               DOWN_SWIM_PORT_ID, ATTORNEY_PICKUP_CONTACT_PERSON,
+                                               ATTORENY_PICKUP_IDCARD, ATTORNEY_CONTACT_TELEPHONE,
+                                               ATTORNEY_TIME, ATTORNEY_PDFFILE, DELETE_NAME,
+                                               DELETE_TIME, INSERT_USERNAME, INSERT_TIME,
+                                               UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
+                                               DELETED, ATTORNEY_DISTRIBUTION_STATUS)
+        values (#{attorneyId,jdbcType=DECIMAL}, #{batchId,jdbcType=DECIMAL}, #{portId,jdbcType=DECIMAL},
+                #{downSwimPortId,jdbcType=DECIMAL}, #{attorneyPickupContactPerson,jdbcType=VARCHAR},
+                #{attorenyPickupIdcard,jdbcType=VARCHAR}, #{attorneyContactTelephone,jdbcType=VARCHAR},
+                #{attorneyTime,jdbcType=TIMESTAMP}, #{attorneyPdffile,jdbcType=VARCHAR}, #{deleteName,jdbcType=VARCHAR},
+                #{deleteTime,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
+                #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
+                #{insertUpdateRemark,jdbcType=VARCHAR},
+                #{deleted,jdbcType=DECIMAL}, #{attorneyDistributionStatus,jdbcType=VARCHAR})
+    </insert>
+    <insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
+        insert into AMSSHIP_DELIVERY_ATTORNEY
+        <trim prefix="(" suffix=")" suffixOverrides=",">
+            <if test="attorneyId != null">
+                ATTORNEY_ID,
+            </if>
+            <if test="batchId != null">
+                BATCH_ID,
+            </if>
+            <if test="portId != null">
+                PORT_ID,
+            </if>
+            <if test="downSwimPortId != null">
+                DOWN_SWIM_PORT_ID,
+            </if>
+            <if test="attorneyPickupContactPerson != null">
+                ATTORNEY_PICKUP_CONTACT_PERSON,
+            </if>
+            <if test="attorenyPickupIdcard != null">
+                ATTORENY_PICKUP_IDCARD,
+            </if>
+            <if test="attorneyContactTelephone != null">
+                ATTORNEY_CONTACT_TELEPHONE,
+            </if>
+            <if test="attorneyTime != null">
+                ATTORNEY_TIME,
+            </if>
+            <if test="attorneyPdffile != null">
+                ATTORNEY_PDFFILE,
+            </if>
+            <if test="deleteName != null">
+                DELETE_NAME,
+            </if>
+            <if test="deleteTime != null">
+                DELETE_TIME,
+            </if>
+            <if test="insertUsername != null">
+                INSERT_USERNAME,
+            </if>
+            <if test="insertTime != null">
+                INSERT_TIME,
+            </if>
+            <if test="updateUsername != null">
+                UPDATE_USERNAME,
+            </if>
+            <if test="updateTime != null">
+                UPDATE_TIME,
+            </if>
+            <if test="insertUpdateRemark != null">
+                INSERT_UPDATE_REMARK,
+            </if>
+            <if test="deleted != null">
+                DELETED,
+            </if>
+            <if test="attorneyDistributionStatus != null">
+                ATTORNEY_DISTRIBUTION_STATUS,
+            </if>
+        </trim>
+        <trim prefix="values (" suffix=")" suffixOverrides=",">
+            <if test="attorneyId != null">
+                #{attorneyId,jdbcType=DECIMAL},
+            </if>
+            <if test="batchId != null">
+                #{batchId,jdbcType=DECIMAL},
+            </if>
+            <if test="portId != null">
+                #{portId,jdbcType=DECIMAL},
+            </if>
+            <if test="downSwimPortId != null">
+                #{downSwimPortId,jdbcType=DECIMAL},
+            </if>
+            <if test="attorneyPickupContactPerson != null">
+                #{attorneyPickupContactPerson,jdbcType=VARCHAR},
+            </if>
+            <if test="attorenyPickupIdcard != null">
+                #{attorenyPickupIdcard,jdbcType=VARCHAR},
+            </if>
+            <if test="attorneyContactTelephone != null">
+                #{attorneyContactTelephone,jdbcType=VARCHAR},
+            </if>
+            <if test="attorneyTime != null">
+                #{attorneyTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="attorneyPdffile != null">
+                #{attorneyPdffile,jdbcType=VARCHAR},
+            </if>
+            <if test="deleteName != null">
+                #{deleteName,jdbcType=VARCHAR},
+            </if>
+            <if test="deleteTime != null">
+                #{deleteTime,jdbcType=VARCHAR},
+            </if>
+            <if test="insertUsername != null">
+                #{insertUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="insertTime != null">
+                #{insertTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUsername != null">
+                #{updateUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="updateTime != null">
+                #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="insertUpdateRemark != null">
+                #{insertUpdateRemark,jdbcType=VARCHAR},
+            </if>
+            <if test="deleted != null">
+                #{deleted,jdbcType=DECIMAL},
+            </if>
+            <if test="attorneyDistributionStatus != null">
+                #{attorneyDistributionStatus,jdbcType=VARCHAR},
+            </if>
+        </trim>
+    </insert>
+    <update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
+        update AMSSHIP_DELIVERY_ATTORNEY
+        set BATCH_ID                       = #{batchId,jdbcType=DECIMAL},
+            PORT_ID                        = #{portId,jdbcType=DECIMAL},
+            DOWN_SWIM_PORT_ID              = #{downSwimPortId,jdbcType=DECIMAL},
+            ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson,jdbcType=VARCHAR},
+            ATTORENY_PICKUP_IDCARD         = #{attorenyPickupIdcard,jdbcType=VARCHAR},
+            ATTORNEY_CONTACT_TELEPHONE     = #{attorneyContactTelephone,jdbcType=VARCHAR},
+            ATTORNEY_TIME                  = #{attorneyTime,jdbcType=TIMESTAMP},
+            ATTORNEY_PDFFILE               = #{attorneyPdffile,jdbcType=VARCHAR},
+            DELETE_NAME                    = #{deleteName,jdbcType=VARCHAR},
+            DELETE_TIME                    = #{deleteTime,jdbcType=VARCHAR},
+            INSERT_USERNAME                = #{insertUsername,jdbcType=VARCHAR},
+            INSERT_TIME                    = #{insertTime,jdbcType=TIMESTAMP},
+            UPDATE_USERNAME                = #{updateUsername,jdbcType=VARCHAR},
+            UPDATE_TIME                    = #{updateTime,jdbcType=TIMESTAMP},
+            INSERT_UPDATE_REMARK           = #{insertUpdateRemark,jdbcType=VARCHAR},
+            DELETED                        = #{deleted,jdbcType=DECIMAL},
+            ATTORNEY_DISTRIBUTION_STATUS   = #{attorneyDistributionStatus,jdbcType=VARCHAR}
+        where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
+    </update>
+    <update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryAttorney">
+        update AMSSHIP_DELIVERY_ATTORNEY
+        <set>
+            <if test="batchId != null">
+                BATCH_ID = #{batchId,jdbcType=DECIMAL},
+            </if>
+            <if test="portId != null">
+                PORT_ID = #{portId,jdbcType=DECIMAL},
+            </if>
+            <if test="downSwimPortId != null">
+                DOWN_SWIM_PORT_ID = #{downSwimPortId,jdbcType=DECIMAL},
+            </if>
+            <if test="attorneyPickupContactPerson != null">
+                ATTORNEY_PICKUP_CONTACT_PERSON = #{attorneyPickupContactPerson,jdbcType=VARCHAR},
+            </if>
+            <if test="attorenyPickupIdcard != null">
+                ATTORENY_PICKUP_IDCARD = #{attorenyPickupIdcard,jdbcType=VARCHAR},
+            </if>
+            <if test="attorneyContactTelephone != null">
+                ATTORNEY_CONTACT_TELEPHONE = #{attorneyContactTelephone,jdbcType=VARCHAR},
+            </if>
+            <if test="attorneyTime != null">
+                ATTORNEY_TIME = #{attorneyTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="attorneyPdffile != null">
+                ATTORNEY_PDFFILE = #{attorneyPdffile,jdbcType=VARCHAR},
+            </if>
+            <if test="deleteName != null">
+                DELETE_NAME = #{deleteName,jdbcType=VARCHAR},
+            </if>
+            <if test="deleteTime != null">
+                DELETE_TIME = #{deleteTime,jdbcType=VARCHAR},
+            </if>
+            <if test="insertUsername != null">
+                INSERT_USERNAME = #{insertUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="insertTime != null">
+                INSERT_TIME = #{insertTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="updateUsername != null">
+                UPDATE_USERNAME = #{updateUsername,jdbcType=VARCHAR},
+            </if>
+            <if test="updateTime != null">
+                UPDATE_TIME = #{updateTime,jdbcType=TIMESTAMP},
+            </if>
+            <if test="insertUpdateRemark != null">
+                INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
+            </if>
+            <if test="deleted != null">
+                DELETED = #{deleted,jdbcType=DECIMAL},
+            </if>
+            <if test="attorneyDistributionStatus != null">
+                ATTORNEY_DISTRIBUTION_STATUS = #{attorneyDistributionStatus,jdbcType=VARCHAR},
+            </if>
+        </set>
+        where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
+    </update>
+    <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
+        <include refid="select"/>
+        where ATTORNEY_ID = #{attorneyId,jdbcType=DECIMAL}
+    </select>
+    <select id="selectByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+        <include refid="select"/>
+        <include refid="where"/>
+    </select>
+    <select id="selectLikeByParameters" parameterType="java.util.HashMap" resultMap="BaseResultMap">
+        <include refid="select"/>
+        <include refid="whereLike"/>
+    </select>
+    <insert id="batchInsert" parameterType="java.util.List">
+        insert into AMSSHIP_DELIVERY_ATTORNEY
+        (ATTORNEY_ID,
+        BATCH_ID, PORT_ID, DOWN_SWIM_PORT_ID,
+        ATTORNEY_PICKUP_CONTACT_PERSON, ATTORENY_PICKUP_IDCARD,
+        ATTORNEY_CONTACT_TELEPHONE, ATTORNEY_TIME,
+        ATTORNEY_PDFFILE, DELETE_NAME,
+        DELETE_TIME, INSERT_USERNAME, INSERT_TIME,
+        UPDATE_USERNAME, UPDATE_TIME,
+        INSERT_UPDATE_REMARK, DELETED,
+        ATTORNEY_DISTRIBUTION_STATUS)
+        ( <foreach collection="list" item="item" separator="union all">
+        select
+        #{item.attorneyId,jdbcType=DECIMAL},
+        #{item.batchId,jdbcType=DECIMAL}, #{item.portId,jdbcType=DECIMAL}, #{item.downSwimPortId,jdbcType=DECIMAL},
+        #{item.attorneyPickupContactPerson,jdbcType=VARCHAR}, #{item.attorenyPickupIdcard,jdbcType=VARCHAR},
+        #{item.attorneyContactTelephone,jdbcType=VARCHAR}, #{item.attorneyTime,jdbcType=TIMESTAMP},
+        #{item.attorneyPdffile,jdbcType=VARCHAR}, #{item.deleteName,jdbcType=VARCHAR},
+        #{item.deleteTime,jdbcType=VARCHAR}, #{item.insertUsername,jdbcType=VARCHAR},
+        #{item.insertTime,jdbcType=TIMESTAMP},
+        #{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
+        #{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
+        #{item.attorneyDistributionStatus,jdbcType=VARCHAR} from dual
+    </foreach> )
+    </insert>
+    <update id="batchUpdate" parameterType="java.util.List">
+        update AMSSHIP_DELIVERY_ATTORNEY
+        set
+        ATTORNEY_ID=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyId,jdbcType=DECIMAL}
         </foreach>
-      </if>
-      <if test="carrierName!= null">
-        and  t4.CARRIER_NAME in
-        <foreach collection="carrierName" item="item" open="(" separator="," close=")">
-          #{item}
+        ,BATCH_ID=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.batchId,jdbcType=DECIMAL}
         </foreach>
-      </if>
-      <if test="materialName!= null">
-        and   t8.MATERIAL_NAME  in
-        <foreach collection="materialName" item="item" open="(" separator="," close=")">
-          #{item}
+        ,PORT_ID=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.portId,jdbcType=DECIMAL}
         </foreach>
-      </if>
-      <if test="portName!= null">
-        and   t5.PORT_NAME  in
-        <foreach collection="portName" item="item" open="(" separator="," close=")">
-          #{item}
+        ,DOWN_SWIM_PORT_ID=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.downSwimPortId,jdbcType=DECIMAL}
         </foreach>
-      </if>
-      <if test="portName1!= null">
-        and   t5.PORT_NAME  in
-        <foreach collection="portName1" item="item" open="(" separator="," close=")">
-          #{item}
+        ,ATTORNEY_PICKUP_CONTACT_PERSON=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyPickupContactPerson,jdbcType=VARCHAR}
         </foreach>
-      </if>
-    </where>
-  </select>
-  <!--  自动生成Id-->
-  <select id="selectMaxId" resultType="DECIMAL">
-    SELECT MAX(ATTORNEY_ID)+1 FROM AMSSHIP_DELIVERY_ATTORNEY
-  </select>
-  <!--  下拉框中获取收货人单位 -->
-  <select id="getPortName" resultType="java.util.LinkedHashMap">
-    select
-      RP.PORT_ID "id",
-      RP.PORT_ID "value",
-      RP.PORT_NAME "label"
-    from
-      RMS_PORT   RP
-  </select>
-  <!--  下拉框中获取放货通知单id-->
-  <select id="getNoticeId" resultType="java.util.LinkedHashMap">
-    select
-      ADN.NOTICE_ID "id",
-      ADN.NOTICE_ID "value",
-      ADN.NOTICE_ID "label"
-    from
-      AMSSHIP_DELIVERY_NOTICE   ADN
-  </select>
-  <!--  根据主键id进行查询-->
-  <select id="getDeliveryAttorneyId" resultType="java.util.Map">
-    select t1.BATCH_ID "batchId",
-           t1.PORT_ID  "portId",
-           t1.DOWN_SWIM_PORT_ID "downSwimPortId",
-           t1.ATTORNEY_PICKUP_CONTACT_PERSON  "attorneyPickupContactPerson",
-           t1.ATTORENY_PICKUP_IDCARD  "attorneyPickupIdcard",
-           t1.ATTORNEY_CONTACT_TELEPHONE  "attorneyContactTelephone",
-           t1.ATTORNEY_TIME "attorneytime",
-           t1.ATTORNEY_PDFFILE "attorneyPdffile"
+        ,ATTORENY_PICKUP_IDCARD=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorenyPickupIdcard,jdbcType=VARCHAR}
+        </foreach>
+        ,ATTORNEY_CONTACT_TELEPHONE=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyContactTelephone,jdbcType=VARCHAR}
+        </foreach>
+        ,ATTORNEY_TIME=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,ATTORNEY_PDFFILE=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyPdffile,jdbcType=VARCHAR}
+        </foreach>
+        ,DELETE_NAME=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleteName,jdbcType=VARCHAR}
+        </foreach>
+        ,DELETE_TIME=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleteTime,jdbcType=VARCHAR}
+        </foreach>
+        ,INSERT_USERNAME=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertUsername,jdbcType=VARCHAR}
+        </foreach>
+        ,INSERT_TIME=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,UPDATE_USERNAME=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.updateUsername,jdbcType=VARCHAR}
+        </foreach>
+        ,UPDATE_TIME=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.updateTime,jdbcType=TIMESTAMP}
+        </foreach>
+        ,INSERT_UPDATE_REMARK=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.insertUpdateRemark,jdbcType=VARCHAR}
+        </foreach>
+        ,DELETED=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.deleted,jdbcType=DECIMAL}
+        </foreach>
+        ,ATTORNEY_DISTRIBUTION_STATUS=
+        <foreach collection="list" item="item" index="index" separator=" " open="case ATTORNEY_ID" close="end">
+            when #{item.attorneyId,jdbcType=DECIMAL} then #{item.attorneyDistributionStatus,jdbcType=VARCHAR}
+        </foreach>
+        where ATTORNEY_ID in
+        <foreach collection="list" index="index" item="item" separator="," open="(" close=")">
+            #{item.attorneyId,jdbcType=DECIMAL}
+        </foreach>
+    </update>
+    <delete id="batchDelete" parameterType="java.util.List">
+        delete from AMSSHIP_DELIVERY_ATTORNEY
+        where ATTORNEY_ID in
+        <foreach collection="list" item="id" open="(" close=")" separator=",">
+            #{id}
+        </foreach>
+    </delete>
+    <!-- 友情提示!!!-->
+    <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
+    <select id="selectshipCargoTranferResult" resultType="java.util.Map">
+        select *
+        from(select
+        t3.SHIPPER_NAME "shipperName",
+        t4.CARRIER_NAME "carrierName",
+        t6.RESULT_FOREIGN_SHIP_NAME "resultForeignShipName",
+        t8.MATERIAL_NAME "materialName",
+        t5.PORT_NAME "portName",
+        t5.PORT_NAME "portName1",
+        t1.ATTORNEY_PICKUP_CONTACT_PERSON "attorneyPickupContactPerson",
+        t1.ATTORENY_PICKUP_IDCARD "attorneyPickupIdcard",
+        t1.ATTORNEY_CONTACT_TELEPHONE "attorneyContactTelephone",
+        t1.ATTORNEY_TIME "attorneyTime",
+        t7.PUCHASE_ORDER_MATERIAL_NUMBER "purchaseOrderMaterialNumber",
+        t2.CARRIER_ID "carrierId",
+        t2.REQUESTER_GROUP_ID "groupId",
+        t1.ATTORNEY_ID "attorneyId",
+        t1.BATCH_ID "batchId"
+        from AMSSHIP_DELIVERY_ATTORNEY t1
+        left join AMSSHIP_DELIVERY_NOTICE t2
+        on t1.BATCH_ID=t2.BATCH_ID
+        left join RMS_SHIPPER t3
+        on t2.REQUESTER_GROUP_ID=t3.SHIPPER_ID
+        left join APPOINT_CARRIER t4
+        on t2.CARRIER_ID=t4.CARRIER_ID
+        left join RMS_PORT t5
+        on t1.PORT_ID=t5.PORT_ID
+        left join DIL_BATCH t6
+        on t1.BATCH_ID=t6.BATCH_ID
+        left join AMS_PURCHASE_ORDER t7
+        on t6.BATCH_ID=t7.BATCH_ID
+        left join RMS_MATERIAL t8
+        on t6.MATERIAL_ID=t8.MATERIAL_ID
+        where t1.deleted = 0
+        )
+        <where>
+            <if test="shipperName!= null">
+                and t3.SHIPPER_NAME in
+                <foreach collection="shipperName" item="item" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
+            <if test="carrierName!= null">
+                and t4.CARRIER_NAME in
+                <foreach collection="carrierName" item="item" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
+            <if test="materialName!= null">
+                and t8.MATERIAL_NAME in
+                <foreach collection="materialName" item="item" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
+            <if test="portName!= null">
+                and t5.PORT_NAME in
+                <foreach collection="portName" item="item" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
+            <if test="portName1!= null">
+                and t5.PORT_NAME in
+                <foreach collection="portName1" item="item" open="(" separator="," close=")">
+                    #{item}
+                </foreach>
+            </if>
+        </where>
+    </select>
+    <!--  自动生成Id-->
+    <select id="selectMaxId" resultType="DECIMAL">
+        SELECT MAX(ATTORNEY_ID) + 1
+        FROM AMSSHIP_DELIVERY_ATTORNEY
+    </select>
+    <!--  下拉框中获取收货人单位 -->
+    <select id="getPortName" resultType="java.util.LinkedHashMap">
+        select RP.PORT_ID   "id",
+               RP.PORT_ID   "value",
+               RP.PORT_NAME "label"
+        from RMS_PORT RP
+        WHERE RP.PORT_TYPE_ID = 1
+    </select>
+    <!--  下拉框中获取放货通知单id-->
+    <select id="getNoticeId" resultType="java.util.LinkedHashMap">
+        select ADN.NOTICE_ID "id",
+               ADN.NOTICE_ID "value",
+               ADN.NOTICE_ID "label"
+        from AMSSHIP_DELIVERY_NOTICE ADN
+    </select>
+    <!--  根据主键id进行查询-->
+    <select id="getDeliveryAttorneyId" resultType="java.util.Map">
+        select t1.BATCH_ID                       "batchId",
+               t1.PORT_ID                        "portId",
+               t1.DOWN_SWIM_PORT_ID              "downSwimPortId",
+               t1.ATTORNEY_PICKUP_CONTACT_PERSON "attorneyPickupContactPerson",
+               t1.ATTORENY_PICKUP_IDCARD         "attorneyPickupIdcard",
+               t1.ATTORNEY_CONTACT_TELEPHONE     "attorneyContactTelephone",
+               t1.ATTORNEY_TIME                  "attorneytime",
+               t1.ATTORNEY_PDFFILE               "attorneyPdffile"
 
-    from AMSSHIP_DELIVERY_ATTORNEY t1
-    where  t1.ATTORNEY_ID=#{attorneyId}
-  </select>
-  <!--得到提货通知单id-->
-  <select id="getAttorneyId" resultType="java.util.LinkedHashMap">
-    SELECT
-    ada.ATTORNEY_ID "id",
-    ada.ATTORNEY_ID "value",
-    ada.ATTORNEY_PICKUP_CONTACT_PERSON "label"
-    FROM AMSSHIP_DELIVERY_ATTORNEY ada
-  </select>
+        from AMSSHIP_DELIVERY_ATTORNEY t1
+        where t1.ATTORNEY_ID = #{attorneyId}
+    </select>
+    <!--得到提货通知单id-->
+    <select id="getAttorneyId" resultType="java.util.LinkedHashMap">
+        SELECT ada.ATTORNEY_ID                    "id",
+               ada.ATTORNEY_ID                    "value",
+               ada.ATTORNEY_PICKUP_CONTACT_PERSON "label"
+        FROM AMSSHIP_DELIVERY_ATTORNEY ada
+    </select>
 
-  <!--得到发件人id(港口)-->
-  <select id="getPortId" resultType="java.util.LinkedHashMap" >
-    SELECT
-    rp.PORT_ID "id",
-    rp.PORT_ID "value",
-    rp.PORT_NAME "label"
-    FROM RMS_PORT rp
-  </select>
+    <!--得到发件人id(港口)-->
+    <select id="getPortId" resultType="java.util.LinkedHashMap">
+        SELECT rp.PORT_ID   "id",
+               rp.PORT_ID   "value",
+               rp.PORT_NAME "label"
+        FROM RMS_PORT rp
+    </select>
 
-  <!--得到收件人id(下游码头)-->
-  <select id="getPierId" resultType="java.util.LinkedHashMap" >
-    SELECT
-    rp.PIER_ID "id",
-    rp.PIER_ID "value",
-    rp.PIER_NAME "label"
-    FROM RMS_PIER rp
-  </select>
+    <!--得到收件人id(下游码头)-->
+    <select id="getPierId" resultType="java.util.LinkedHashMap">
+        SELECT rp.PIER_ID   "id",
+               rp.PIER_ID   "value",
+               rp.PIER_NAME "label"
+        FROM RMS_PIER rp
+    </select>
 
-  <select id="getRmRawId" resultType="java.util.LinkedHashMap">
-    SELECT
-    rrmr.GM_ID "id",
-    rrmr.GM_ID "value",
-    rrmr.GM_TONNAGE "label"
-    FROM WMSH_GRID_MATERIAL rrmr
-  </select>
+    <select id="getRmRawId" resultType="java.util.LinkedHashMap">
+        SELECT rrmr.GM_ID      "id",
+               rrmr.GM_ID      "value",
+               rrmr.GM_TONNAGE "label"
+        FROM WMSH_GRID_MATERIAL rrmr
+    </select>
 
 </mapper>