|
@@ -19,18 +19,19 @@
|
|
<result column="ISSUE_STATUS" jdbcType="DECIMAL" property="issueStatus" />
|
|
<result column="ISSUE_STATUS" jdbcType="DECIMAL" property="issueStatus" />
|
|
<result column="STEEL_RECEIPT_DATE" jdbcType="TIMESTAMP" property="steelReceiptDate" />
|
|
<result column="STEEL_RECEIPT_DATE" jdbcType="TIMESTAMP" property="steelReceiptDate" />
|
|
<result column="PRICE_ID" jdbcType="DECIMAL" property="priceId" />
|
|
<result column="PRICE_ID" jdbcType="DECIMAL" property="priceId" />
|
|
|
|
+ <result column="TRUCK_REMARK" jdbcType="VARCHAR" property="truckRemark" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- SALE_ORDER_MATERIAL_ID, SALE_ORDER_ID, SALE_ORDER_MATERIAL_TRUCK_NO, SALE_SHIPPING_ADDRESS_ID,
|
|
|
|
- SALE_DATE_OF_RECEIPT, SALE_ORDER_CONSIGNEE, SALE_ORDER_CONSIGNEE_TEL, INSERT_USERNAME,
|
|
|
|
- INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, UPDATED,
|
|
|
|
- ISSUE_STATUS, STEEL_RECEIPT_DATE, PRICE_ID
|
|
|
|
|
|
+ SALE_ORDER_MATERIAL_ID, SALE_ORDER_ID, SALE_ORDER_MATERIAL_TRUCK_NO, SALE_SHIPPING_ADDRESS_ID,
|
|
|
|
+ SALE_DATE_OF_RECEIPT, SALE_ORDER_CONSIGNEE, SALE_ORDER_CONSIGNEE_TEL, INSERT_USERNAME,
|
|
|
|
+ INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK, DELETED, UPDATED,
|
|
|
|
+ ISSUE_STATUS, STEEL_RECEIPT_DATE, PRICE_ID, TRUCK_REMARK
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.SALE_ORDER_MATERIAL_ID, t.SALE_ORDER_ID, t.SALE_ORDER_MATERIAL_TRUCK_NO, t.SALE_SHIPPING_ADDRESS_ID,
|
|
|
|
- t.SALE_DATE_OF_RECEIPT, t.SALE_ORDER_CONSIGNEE, t.SALE_ORDER_CONSIGNEE_TEL, t.INSERT_USERNAME,
|
|
|
|
- t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
|
|
|
|
- t.UPDATED, t.ISSUE_STATUS, t.STEEL_RECEIPT_DATE, t.PRICE_ID
|
|
|
|
|
|
+ t.SALE_ORDER_MATERIAL_ID, t.SALE_ORDER_ID, t.SALE_ORDER_MATERIAL_TRUCK_NO, t.SALE_SHIPPING_ADDRESS_ID,
|
|
|
|
+ t.SALE_DATE_OF_RECEIPT, t.SALE_ORDER_CONSIGNEE, t.SALE_ORDER_CONSIGNEE_TEL, t.INSERT_USERNAME,
|
|
|
|
+ t.INSERT_TIME, t.UPDATE_USERNAME, t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.DELETED,
|
|
|
|
+ t.UPDATED, t.ISSUE_STATUS, t.STEEL_RECEIPT_DATE, t.PRICE_ID, t.TRUCK_REMARK
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM AMS_SALE_ORDER_MATERIAL
|
|
SELECT <include refid="columns" /> FROM AMS_SALE_ORDER_MATERIAL
|
|
@@ -91,6 +92,9 @@
|
|
<if test="priceId != null">
|
|
<if test="priceId != null">
|
|
and PRICE_ID = #{priceId}
|
|
and PRICE_ID = #{priceId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="truckRemark != null and truckRemark != ''">
|
|
|
|
+ and TRUCK_REMARK = #{truckRemark}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -146,9 +150,12 @@
|
|
<if test="priceId != null">
|
|
<if test="priceId != null">
|
|
and PRICE_ID = #{priceId}
|
|
and PRICE_ID = #{priceId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="truckRemark != null and truckRemark != ''">
|
|
|
|
+ and TRUCK_REMARK LIKE '%${truckRemark}%'
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
delete from AMS_SALE_ORDER_MATERIAL
|
|
delete from AMS_SALE_ORDER_MATERIAL
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
@@ -203,6 +210,9 @@
|
|
<if test="priceId != null">
|
|
<if test="priceId != null">
|
|
or PRICE_ID = #{priceId}
|
|
or PRICE_ID = #{priceId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="truckRemark != null and truckRemark != ''">
|
|
|
|
+ or TRUCK_REMARK = #{truckRemark}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
insert into AMS_SALE_ORDER_MATERIAL (SALE_ORDER_MATERIAL_ID, SALE_ORDER_ID,
|
|
insert into AMS_SALE_ORDER_MATERIAL (SALE_ORDER_MATERIAL_ID, SALE_ORDER_ID,
|
|
@@ -211,16 +221,16 @@
|
|
SALE_ORDER_CONSIGNEE_TEL, INSERT_USERNAME,
|
|
SALE_ORDER_CONSIGNEE_TEL, INSERT_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_UPDATE_REMARK, DELETED, UPDATED,
|
|
INSERT_UPDATE_REMARK, DELETED, UPDATED,
|
|
- ISSUE_STATUS, STEEL_RECEIPT_DATE, PRICE_ID
|
|
|
|
- )
|
|
|
|
|
|
+ ISSUE_STATUS, STEEL_RECEIPT_DATE, PRICE_ID,
|
|
|
|
+ TRUCK_REMARK)
|
|
values (#{saleOrderMaterialId,jdbcType=DECIMAL}, #{saleOrderId,jdbcType=DECIMAL},
|
|
values (#{saleOrderMaterialId,jdbcType=DECIMAL}, #{saleOrderId,jdbcType=DECIMAL},
|
|
#{saleOrderMaterialTruckNo,jdbcType=DECIMAL}, #{saleShippingAddressId,jdbcType=DECIMAL},
|
|
#{saleOrderMaterialTruckNo,jdbcType=DECIMAL}, #{saleShippingAddressId,jdbcType=DECIMAL},
|
|
#{saleDateOfReceipt,jdbcType=TIMESTAMP}, #{saleOrderConsignee,jdbcType=VARCHAR},
|
|
#{saleDateOfReceipt,jdbcType=TIMESTAMP}, #{saleOrderConsignee,jdbcType=VARCHAR},
|
|
#{saleOrderConsigneeTel,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{saleOrderConsigneeTel,jdbcType=VARCHAR}, #{insertUsername,jdbcType=VARCHAR},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{insertTime,jdbcType=TIMESTAMP}, #{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{updated,jdbcType=DECIMAL},
|
|
#{insertUpdateRemark,jdbcType=VARCHAR}, #{deleted,jdbcType=DECIMAL}, #{updated,jdbcType=DECIMAL},
|
|
- #{issueStatus,jdbcType=DECIMAL}, #{steelReceiptDate,jdbcType=TIMESTAMP}, #{priceId,jdbcType=DECIMAL}
|
|
|
|
- )
|
|
|
|
|
|
+ #{issueStatus,jdbcType=DECIMAL}, #{steelReceiptDate,jdbcType=TIMESTAMP}, #{priceId,jdbcType=DECIMAL},
|
|
|
|
+ #{truckRemark,jdbcType=VARCHAR})
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
insert into AMS_SALE_ORDER_MATERIAL
|
|
insert into AMS_SALE_ORDER_MATERIAL
|
|
@@ -276,6 +286,9 @@
|
|
<if test="priceId != null">
|
|
<if test="priceId != null">
|
|
PRICE_ID,
|
|
PRICE_ID,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="truckRemark != null">
|
|
|
|
+ TRUCK_REMARK,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="saleOrderMaterialId != null">
|
|
<if test="saleOrderMaterialId != null">
|
|
@@ -329,6 +342,9 @@
|
|
<if test="priceId != null">
|
|
<if test="priceId != null">
|
|
#{priceId,jdbcType=DECIMAL},
|
|
#{priceId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="truckRemark != null">
|
|
|
|
+ #{truckRemark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
@@ -348,7 +364,8 @@
|
|
UPDATED = #{updated,jdbcType=DECIMAL},
|
|
UPDATED = #{updated,jdbcType=DECIMAL},
|
|
ISSUE_STATUS = #{issueStatus,jdbcType=DECIMAL},
|
|
ISSUE_STATUS = #{issueStatus,jdbcType=DECIMAL},
|
|
STEEL_RECEIPT_DATE = #{steelReceiptDate,jdbcType=TIMESTAMP},
|
|
STEEL_RECEIPT_DATE = #{steelReceiptDate,jdbcType=TIMESTAMP},
|
|
- PRICE_ID = #{priceId,jdbcType=DECIMAL}
|
|
|
|
|
|
+ PRICE_ID = #{priceId,jdbcType=DECIMAL},
|
|
|
|
+ TRUCK_REMARK = #{truckRemark,jdbcType=VARCHAR}
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.AmsSaleOrderMaterial">
|
|
@@ -402,10 +419,13 @@
|
|
<if test="priceId != null">
|
|
<if test="priceId != null">
|
|
PRICE_ID = #{priceId,jdbcType=DECIMAL},
|
|
PRICE_ID = #{priceId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="truckRemark != null">
|
|
|
|
+ TRUCK_REMARK = #{truckRemark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
</set>
|
|
</set>
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap">
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
where SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
@@ -427,7 +447,7 @@
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
UPDATE_USERNAME, UPDATE_TIME,
|
|
INSERT_UPDATE_REMARK, DELETED,
|
|
INSERT_UPDATE_REMARK, DELETED,
|
|
UPDATED, ISSUE_STATUS, STEEL_RECEIPT_DATE,
|
|
UPDATED, ISSUE_STATUS, STEEL_RECEIPT_DATE,
|
|
- PRICE_ID)
|
|
|
|
|
|
+ PRICE_ID, TRUCK_REMARK)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.saleOrderMaterialId,jdbcType=DECIMAL},
|
|
#{item.saleOrderMaterialId,jdbcType=DECIMAL},
|
|
@@ -438,7 +458,7 @@
|
|
#{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
#{item.updateUsername,jdbcType=VARCHAR}, #{item.updateTime,jdbcType=TIMESTAMP},
|
|
#{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
#{item.insertUpdateRemark,jdbcType=VARCHAR}, #{item.deleted,jdbcType=DECIMAL},
|
|
#{item.updated,jdbcType=DECIMAL}, #{item.issueStatus,jdbcType=DECIMAL}, #{item.steelReceiptDate,jdbcType=TIMESTAMP},
|
|
#{item.updated,jdbcType=DECIMAL}, #{item.issueStatus,jdbcType=DECIMAL}, #{item.steelReceiptDate,jdbcType=TIMESTAMP},
|
|
- #{item.priceId,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.priceId,jdbcType=DECIMAL}, #{item.truckRemark,jdbcType=VARCHAR} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -512,6 +532,10 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case SALE_ORDER_MATERIAL_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case SALE_ORDER_MATERIAL_ID" separator=" ">
|
|
when #{item.saleOrderMaterialId,jdbcType=DECIMAL} then #{item.priceId,jdbcType=DECIMAL}
|
|
when #{item.saleOrderMaterialId,jdbcType=DECIMAL} then #{item.priceId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,TRUCK_REMARK=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case SALE_ORDER_MATERIAL_ID" separator=" ">
|
|
|
|
+ when #{item.saleOrderMaterialId,jdbcType=DECIMAL} then #{item.truckRemark,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
where SALE_ORDER_MATERIAL_ID in
|
|
where SALE_ORDER_MATERIAL_ID in
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.saleOrderMaterialId,jdbcType=DECIMAL}
|
|
#{item.saleOrderMaterialId,jdbcType=DECIMAL}
|
|
@@ -766,10 +790,11 @@
|
|
WHERE RL.LINE_ID = #{lineId}
|
|
WHERE RL.LINE_ID = #{lineId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getPlaceId" parameterType="java.lang.String" resultType="java.util.Map" >
|
|
|
|
|
|
+ <select id="getPlaceId" resultType="java.util.Map" >
|
|
SELECT RRP.PLACE_ID AS "placeId"
|
|
SELECT RRP.PLACE_ID AS "placeId"
|
|
FROM RMS_RECEIVE_PLACE RRP
|
|
FROM RMS_RECEIVE_PLACE RRP
|
|
WHERE RRP.ADDRESS_DELIVERY_ADDRESS = #{place}
|
|
WHERE RRP.ADDRESS_DELIVERY_ADDRESS = #{place}
|
|
|
|
+ AND RRP.ADDRESS_ID = #{shippingAddressId}
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getSaleMessage" parameterType="DECIMAL" resultType="java.util.Map" >
|
|
<select id="getSaleMessage" parameterType="DECIMAL" resultType="java.util.Map" >
|