|
@@ -39,6 +39,7 @@
|
|
|
<result column="CARGO_ID" jdbcType="DECIMAL" property="cargoId" />
|
|
|
<result column="CARGO_IMAGE_URL" jdbcType="VARCHAR" property="cargoImageUrl" />
|
|
|
<result column="IS_NEED_BONDED" jdbcType="VARCHAR" property="isNeedBonded" />
|
|
|
+ <result column="SULFUR_CONTENT" jdbcType="VARCHAR" property="sulfurContent" />
|
|
|
</resultMap>
|
|
|
<sql id="columns">
|
|
|
NOTICE_ID, NOTICE_COMMERCE_METHOD, NOTICE_HANDOVER_METHOD, PORT_ID, NOTICE_PORT_CONSTRUCTION_FEE,
|
|
@@ -48,7 +49,7 @@
|
|
|
SILICA_CONTENT, ALUMINA_CONTENT, PHOSPHORUS_CONTENT, MANGANESE_CONTENT, IS_NEED_PORT_FEE,
|
|
|
IS_NEED_PORT_CHARGE, MATERIAL_TYPE_ID, RESULT_CONTACT_PERSON, RESULT_TELEPHONE_FAX,
|
|
|
GROUP_ID, RESULT_NUMBER_OF_LOANS, RESULT_FREIGHT_FORWARDING_INFO, RESULT_MEMO, RESULT_DATE_OF_LOANS,
|
|
|
- CARGO_ID, CARGO_IMAGE_URL, IS_NEED_BONDED
|
|
|
+ CARGO_ID, CARGO_IMAGE_URL, IS_NEED_BONDED, SULFUR_CONTENT
|
|
|
</sql>
|
|
|
<sql id="columns_alias">
|
|
|
t.NOTICE_ID, t.NOTICE_COMMERCE_METHOD, t.NOTICE_HANDOVER_METHOD, t.PORT_ID, t.NOTICE_PORT_CONSTRUCTION_FEE,
|
|
@@ -58,7 +59,8 @@
|
|
|
t.TFE_CONTENT, t.SILICA_CONTENT, t.ALUMINA_CONTENT, t.PHOSPHORUS_CONTENT, t.MANGANESE_CONTENT,
|
|
|
t.IS_NEED_PORT_FEE, t.IS_NEED_PORT_CHARGE, t.MATERIAL_TYPE_ID, t.RESULT_CONTACT_PERSON,
|
|
|
t.RESULT_TELEPHONE_FAX, t.GROUP_ID, t.RESULT_NUMBER_OF_LOANS, t.RESULT_FREIGHT_FORWARDING_INFO,
|
|
|
- t.RESULT_MEMO, t.RESULT_DATE_OF_LOANS, t.CARGO_ID, t.CARGO_IMAGE_URL, t.IS_NEED_BONDED
|
|
|
+ t.RESULT_MEMO, t.RESULT_DATE_OF_LOANS, t.CARGO_ID, t.CARGO_IMAGE_URL, t.IS_NEED_BONDED,
|
|
|
+ t.SULFUR_CONTENT
|
|
|
</sql>
|
|
|
<sql id="select">
|
|
|
SELECT <include refid="columns" /> FROM AMSSHIP_DELIVERY_NOTICE
|
|
@@ -179,6 +181,9 @@
|
|
|
<if test="isNeedBonded != null and isNeedBonded != ''">
|
|
|
and IS_NEED_BONDED = #{isNeedBonded}
|
|
|
</if>
|
|
|
+ <if test="sulfurContent != null and sulfurContent != ''">
|
|
|
+ and SULFUR_CONTENT = #{sulfurContent}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<sql id="whereLike">
|
|
@@ -294,6 +299,9 @@
|
|
|
<if test="isNeedBonded != null and isNeedBonded != ''">
|
|
|
and IS_NEED_BONDED LIKE '%${isNeedBonded}%'
|
|
|
</if>
|
|
|
+ <if test="sulfurContent != null and sulfurContent != ''">
|
|
|
+ and SULFUR_CONTENT LIKE '%${sulfurContent}%'
|
|
|
+ </if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Short">
|
|
@@ -411,6 +419,9 @@
|
|
|
<if test="isNeedBonded != null and isNeedBonded != ''">
|
|
|
or IS_NEED_BONDED = #{isNeedBonded}
|
|
|
</if>
|
|
|
+ <if test="sulfurContent != null and sulfurContent != ''">
|
|
|
+ or SULFUR_CONTENT = #{sulfurContent}
|
|
|
+ </if>
|
|
|
</delete>
|
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
|
|
|
insert into AMSSHIP_DELIVERY_NOTICE (NOTICE_ID, NOTICE_COMMERCE_METHOD, NOTICE_HANDOVER_METHOD,
|
|
@@ -425,7 +436,8 @@
|
|
|
RESULT_CONTACT_PERSON, RESULT_TELEPHONE_FAX,
|
|
|
GROUP_ID, RESULT_NUMBER_OF_LOANS, RESULT_FREIGHT_FORWARDING_INFO,
|
|
|
RESULT_MEMO, RESULT_DATE_OF_LOANS, CARGO_ID,
|
|
|
- CARGO_IMAGE_URL, IS_NEED_BONDED)
|
|
|
+ CARGO_IMAGE_URL, IS_NEED_BONDED, SULFUR_CONTENT
|
|
|
+ )
|
|
|
values (#{noticeId,jdbcType=DECIMAL}, #{noticeCommerceMethod,jdbcType=VARCHAR}, #{noticeHandoverMethod,jdbcType=VARCHAR},
|
|
|
#{portId,jdbcType=DECIMAL}, #{noticePortConstructionFee,jdbcType=DECIMAL}, #{noticeDeliveryTime,jdbcType=TIMESTAMP},
|
|
|
#{noticePileFreeDays,jdbcType=DECIMAL}, #{deleteName,jdbcType=VARCHAR}, #{deleteTime,jdbcType=VARCHAR},
|
|
@@ -438,7 +450,8 @@
|
|
|
#{resultContactPerson,jdbcType=VARCHAR}, #{resultTelephoneFax,jdbcType=VARCHAR},
|
|
|
#{groupId,jdbcType=DECIMAL}, #{resultNumberOfLoans,jdbcType=DECIMAL}, #{resultFreightForwardingInfo,jdbcType=VARCHAR},
|
|
|
#{resultMemo,jdbcType=VARCHAR}, #{resultDateOfLoans,jdbcType=TIMESTAMP}, #{cargoId,jdbcType=DECIMAL},
|
|
|
- #{cargoImageUrl,jdbcType=VARCHAR}, #{isNeedBonded,jdbcType=VARCHAR})
|
|
|
+ #{cargoImageUrl,jdbcType=VARCHAR}, #{isNeedBonded,jdbcType=VARCHAR}, #{sulfurContent,jdbcType=VARCHAR}
|
|
|
+ )
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
|
|
|
insert into AMSSHIP_DELIVERY_NOTICE
|
|
@@ -554,6 +567,9 @@
|
|
|
<if test="isNeedBonded != null">
|
|
|
IS_NEED_BONDED,
|
|
|
</if>
|
|
|
+ <if test="sulfurContent != null">
|
|
|
+ SULFUR_CONTENT,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="noticeId != null">
|
|
@@ -667,6 +683,9 @@
|
|
|
<if test="isNeedBonded != null">
|
|
|
#{isNeedBonded,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="sulfurContent != null">
|
|
|
+ #{sulfurContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
|
|
@@ -706,7 +725,8 @@
|
|
|
RESULT_DATE_OF_LOANS = #{resultDateOfLoans,jdbcType=TIMESTAMP},
|
|
|
CARGO_ID = #{cargoId,jdbcType=DECIMAL},
|
|
|
CARGO_IMAGE_URL = #{cargoImageUrl,jdbcType=VARCHAR},
|
|
|
- IS_NEED_BONDED = #{isNeedBonded,jdbcType=VARCHAR}
|
|
|
+ IS_NEED_BONDED = #{isNeedBonded,jdbcType=VARCHAR},
|
|
|
+ SULFUR_CONTENT = #{sulfurContent,jdbcType=VARCHAR}
|
|
|
where NOTICE_ID = #{noticeId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsshipDeliveryNotice">
|
|
@@ -820,6 +840,9 @@
|
|
|
<if test="isNeedBonded != null">
|
|
|
IS_NEED_BONDED = #{isNeedBonded,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="sulfurContent != null">
|
|
|
+ SULFUR_CONTENT = #{sulfurContent,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where NOTICE_ID = #{noticeId,jdbcType=DECIMAL}
|
|
|
</update>
|
|
@@ -854,8 +877,8 @@
|
|
|
RESULT_TELEPHONE_FAX, GROUP_ID,
|
|
|
RESULT_NUMBER_OF_LOANS, RESULT_FREIGHT_FORWARDING_INFO,
|
|
|
RESULT_MEMO, RESULT_DATE_OF_LOANS,
|
|
|
- CARGO_ID, CARGO_IMAGE_URL, IS_NEED_BONDED
|
|
|
- )
|
|
|
+ CARGO_ID, CARGO_IMAGE_URL, IS_NEED_BONDED,
|
|
|
+ SULFUR_CONTENT)
|
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
|
select
|
|
|
#{item.noticeId,jdbcType=DECIMAL},
|
|
@@ -875,8 +898,8 @@
|
|
|
#{item.resultTelephoneFax,jdbcType=VARCHAR}, #{item.groupId,jdbcType=DECIMAL},
|
|
|
#{item.resultNumberOfLoans,jdbcType=DECIMAL}, #{item.resultFreightForwardingInfo,jdbcType=VARCHAR},
|
|
|
#{item.resultMemo,jdbcType=VARCHAR}, #{item.resultDateOfLoans,jdbcType=TIMESTAMP},
|
|
|
- #{item.cargoId,jdbcType=DECIMAL}, #{item.cargoImageUrl,jdbcType=VARCHAR}, #{item.isNeedBonded,jdbcType=VARCHAR}
|
|
|
- from dual
|
|
|
+ #{item.cargoId,jdbcType=DECIMAL}, #{item.cargoImageUrl,jdbcType=VARCHAR}, #{item.isNeedBonded,jdbcType=VARCHAR},
|
|
|
+ #{item.sulfurContent,jdbcType=VARCHAR} from dual
|
|
|
</foreach> )
|
|
|
</insert>
|
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -1030,6 +1053,10 @@
|
|
|
<foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
|
|
|
when #{item.noticeId,jdbcType=DECIMAL} then #{item.isNeedBonded,jdbcType=VARCHAR}
|
|
|
</foreach>
|
|
|
+ ,SULFUR_CONTENT=
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case NOTICE_ID" separator=" ">
|
|
|
+ when #{item.noticeId,jdbcType=DECIMAL} then #{item.sulfurContent,jdbcType=VARCHAR}
|
|
|
+ </foreach>
|
|
|
where NOTICE_ID in
|
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
|
#{item.noticeId,jdbcType=DECIMAL}
|
|
@@ -1268,4 +1295,5 @@
|
|
|
WHERE ADN.NOTICE_ID=#{noticeId}
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
</mapper>
|