|
@@ -17,18 +17,24 @@
|
|
<result column="WETHER_TO_STATEMENT" jdbcType="DECIMAL" property="wetherToStatement" />
|
|
<result column="WETHER_TO_STATEMENT" jdbcType="DECIMAL" property="wetherToStatement" />
|
|
<result column="EAS_AMOUNT" jdbcType="DECIMAL" property="easAmount" />
|
|
<result column="EAS_AMOUNT" jdbcType="DECIMAL" property="easAmount" />
|
|
<result column="ORDER_ID" jdbcType="DECIMAL" property="orderId" />
|
|
<result column="ORDER_ID" jdbcType="DECIMAL" property="orderId" />
|
|
- <result column="PRICEIDS" jdbcType="VARCHAR" property="priceids"/>
|
|
|
|
- <result column="HISTORY_DETAILS_AMOUNT" jdbcType="DECIMAL" property="historyDetailsAmount"></result>
|
|
|
|
|
|
+ <result column="PRICEIDS" jdbcType="VARCHAR" property="priceids" />
|
|
|
|
+ <result column="HISTORY_DETAILS_AMOUNT" jdbcType="DECIMAL" property="historyDetailsAmount" />
|
|
|
|
+ <result column="STATEMENT_ID" jdbcType="DECIMAL" property="statementId" />
|
|
|
|
+ <result column="PHOTO" jdbcType="VARCHAR" property="photo" />
|
|
|
|
+ <result column="REMARK" jdbcType="VARCHAR" property="remark" />
|
|
|
|
+ <result column="PRICE_VALUE" jdbcType="DECIMAL" property="priceValue" />
|
|
</resultMap>
|
|
</resultMap>
|
|
<sql id="columns">
|
|
<sql id="columns">
|
|
- DETAILS_ID, PURCHASE_ORDER_ID, WEIGHT_TASK_RESULT_ID, DETAILS_NO, DETAILS_TIME, PRICE_ID,
|
|
|
|
- DETAILS_AMOUNT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
- WETHER_TO_STATEMENT, EAS_AMOUNT, ORDER_ID, HISTORY_DETAILS_AMOUNT
|
|
|
|
|
|
+ DETAILS_ID, PURCHASE_ORDER_ID, WEIGHT_TASK_RESULT_ID, DETAILS_NO, DETAILS_TIME, PRICE_ID,
|
|
|
|
+ DETAILS_AMOUNT, INSERT_USERNAME, INSERT_TIME, UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
|
|
+ WETHER_TO_STATEMENT, EAS_AMOUNT, ORDER_ID, PRICEIDS, HISTORY_DETAILS_AMOUNT, STATEMENT_ID,
|
|
|
|
+ PHOTO, REMARK, PRICE_VALUE
|
|
</sql>
|
|
</sql>
|
|
<sql id="columns_alias">
|
|
<sql id="columns_alias">
|
|
- t.DETAILS_ID, t.PURCHASE_ORDER_ID, t.WEIGHT_TASK_RESULT_ID, t.DETAILS_NO, t.DETAILS_TIME,
|
|
|
|
- t.PRICE_ID, t.DETAILS_AMOUNT, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
|
|
|
|
- t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.WETHER_TO_STATEMENT, t.EAS_AMOUNT, t.ORDER_ID ,t.HISTORY_DETAILS_AMOUNT
|
|
|
|
|
|
+ t.DETAILS_ID, t.PURCHASE_ORDER_ID, t.WEIGHT_TASK_RESULT_ID, t.DETAILS_NO, t.DETAILS_TIME,
|
|
|
|
+ t.PRICE_ID, t.DETAILS_AMOUNT, t.INSERT_USERNAME, t.INSERT_TIME, t.UPDATE_USERNAME,
|
|
|
|
+ t.UPDATE_TIME, t.INSERT_UPDATE_REMARK, t.WETHER_TO_STATEMENT, t.EAS_AMOUNT, t.ORDER_ID,
|
|
|
|
+ t.PRICEIDS, t.HISTORY_DETAILS_AMOUNT, t.STATEMENT_ID, t.PHOTO, t.REMARK, t.PRICE_VALUE
|
|
</sql>
|
|
</sql>
|
|
<sql id="select">
|
|
<sql id="select">
|
|
SELECT <include refid="columns" /> FROM BMSTRUCK_DETAILS_ORDER
|
|
SELECT <include refid="columns" /> FROM BMSTRUCK_DETAILS_ORDER
|
|
@@ -83,6 +89,24 @@
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
and ORDER_ID = #{orderId}
|
|
and ORDER_ID = #{orderId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="priceids != null and priceids != ''">
|
|
|
|
+ and PRICEIDS = #{priceids}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="historyDetailsAmount != null">
|
|
|
|
+ and HISTORY_DETAILS_AMOUNT = #{historyDetailsAmount}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="statementId != null">
|
|
|
|
+ and STATEMENT_ID = #{statementId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="photo != null and photo != ''">
|
|
|
|
+ and PHOTO = #{photo}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
|
+ and REMARK = #{remark}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ and PRICE_VALUE = #{priceValue}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
<sql id="whereLike">
|
|
<sql id="whereLike">
|
|
@@ -132,9 +156,27 @@
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
and ORDER_ID = #{orderId}
|
|
and ORDER_ID = #{orderId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="priceids != null and priceids != ''">
|
|
|
|
+ and PRICEIDS LIKE '%${priceids}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="historyDetailsAmount != null">
|
|
|
|
+ and HISTORY_DETAILS_AMOUNT = #{historyDetailsAmount}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="statementId != null">
|
|
|
|
+ and STATEMENT_ID = #{statementId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="photo != null and photo != ''">
|
|
|
|
+ and PHOTO LIKE '%${photo}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
|
+ and REMARK LIKE '%${remark}%'
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ and PRICE_VALUE = #{priceValue}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</sql>
|
|
</sql>
|
|
- <delete id="deleteByPrimaryKey" parameterType="DECIMAL">
|
|
|
|
|
|
+ <delete id="deleteByPrimaryKey" parameterType="java.math.BigDecimal">
|
|
delete from BMSTRUCK_DETAILS_ORDER
|
|
delete from BMSTRUCK_DETAILS_ORDER
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
</delete>
|
|
</delete>
|
|
@@ -183,19 +225,41 @@
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
or ORDER_ID = #{orderId}
|
|
or ORDER_ID = #{orderId}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="priceids != null and priceids != ''">
|
|
|
|
+ or PRICEIDS = #{priceids}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="historyDetailsAmount != null">
|
|
|
|
+ or HISTORY_DETAILS_AMOUNT = #{historyDetailsAmount}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="statementId != null">
|
|
|
|
+ or STATEMENT_ID = #{statementId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="photo != null and photo != ''">
|
|
|
|
+ or PHOTO = #{photo}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null and remark != ''">
|
|
|
|
+ or REMARK = #{remark}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ or PRICE_VALUE = #{priceValue}
|
|
|
|
+ </if>
|
|
</delete>
|
|
</delete>
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
<insert id="insert" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
insert into BMSTRUCK_DETAILS_ORDER (DETAILS_ID, PURCHASE_ORDER_ID, WEIGHT_TASK_RESULT_ID,
|
|
insert into BMSTRUCK_DETAILS_ORDER (DETAILS_ID, PURCHASE_ORDER_ID, WEIGHT_TASK_RESULT_ID,
|
|
DETAILS_NO, DETAILS_TIME, PRICE_ID,
|
|
DETAILS_NO, DETAILS_TIME, PRICE_ID,
|
|
DETAILS_AMOUNT, INSERT_USERNAME, INSERT_TIME,
|
|
DETAILS_AMOUNT, INSERT_USERNAME, INSERT_TIME,
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_USERNAME, UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
- WETHER_TO_STATEMENT, EAS_AMOUNT, ORDER_ID
|
|
|
|
|
|
+ WETHER_TO_STATEMENT, EAS_AMOUNT, ORDER_ID,
|
|
|
|
+ PRICEIDS, HISTORY_DETAILS_AMOUNT, STATEMENT_ID,
|
|
|
|
+ PHOTO, REMARK, PRICE_VALUE
|
|
)
|
|
)
|
|
values (#{detailsId,jdbcType=DECIMAL}, #{purchaseOrderId,jdbcType=DECIMAL}, #{weightTaskResultId,jdbcType=DECIMAL},
|
|
values (#{detailsId,jdbcType=DECIMAL}, #{purchaseOrderId,jdbcType=DECIMAL}, #{weightTaskResultId,jdbcType=DECIMAL},
|
|
#{detailsNo,jdbcType=VARCHAR}, #{detailsTime,jdbcType=TIMESTAMP}, #{priceId,jdbcType=DECIMAL},
|
|
#{detailsNo,jdbcType=VARCHAR}, #{detailsTime,jdbcType=TIMESTAMP}, #{priceId,jdbcType=DECIMAL},
|
|
#{detailsAmount,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
#{detailsAmount,jdbcType=DECIMAL}, #{insertUsername,jdbcType=VARCHAR}, #{insertTime,jdbcType=TIMESTAMP},
|
|
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{updateUsername,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
- #{wetherToStatement,jdbcType=DECIMAL}, #{easAmount,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL}
|
|
|
|
|
|
+ #{wetherToStatement,jdbcType=DECIMAL}, #{easAmount,jdbcType=DECIMAL}, #{orderId,jdbcType=DECIMAL},
|
|
|
|
+ #{priceids,jdbcType=VARCHAR}, #{historyDetailsAmount,jdbcType=DECIMAL}, #{statementId,jdbcType=DECIMAL},
|
|
|
|
+ #{photo,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{priceValue,jdbcType=DECIMAL}
|
|
)
|
|
)
|
|
</insert>
|
|
</insert>
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
<insert id="insertSelective" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
@@ -246,6 +310,24 @@
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
ORDER_ID,
|
|
ORDER_ID,
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="priceids != null">
|
|
|
|
+ PRICEIDS,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="historyDetailsAmount != null">
|
|
|
|
+ HISTORY_DETAILS_AMOUNT,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="statementId != null">
|
|
|
|
+ STATEMENT_ID,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="photo != null">
|
|
|
|
+ PHOTO,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null">
|
|
|
|
+ REMARK,
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ PRICE_VALUE,
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<if test="detailsId != null">
|
|
<if test="detailsId != null">
|
|
@@ -293,6 +375,24 @@
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
#{orderId,jdbcType=DECIMAL},
|
|
#{orderId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="priceids != null">
|
|
|
|
+ #{priceids,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="historyDetailsAmount != null">
|
|
|
|
+ #{historyDetailsAmount,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="statementId != null">
|
|
|
|
+ #{statementId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="photo != null">
|
|
|
|
+ #{photo,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null">
|
|
|
|
+ #{remark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ #{priceValue,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
</trim>
|
|
</trim>
|
|
</insert>
|
|
</insert>
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
<update id="updateByPrimaryKey" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
@@ -310,7 +410,13 @@
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
INSERT_UPDATE_REMARK = #{insertUpdateRemark,jdbcType=VARCHAR},
|
|
WETHER_TO_STATEMENT = #{wetherToStatement,jdbcType=DECIMAL},
|
|
WETHER_TO_STATEMENT = #{wetherToStatement,jdbcType=DECIMAL},
|
|
EAS_AMOUNT = #{easAmount,jdbcType=DECIMAL},
|
|
EAS_AMOUNT = #{easAmount,jdbcType=DECIMAL},
|
|
- ORDER_ID = #{orderId,jdbcType=DECIMAL}
|
|
|
|
|
|
+ ORDER_ID = #{orderId,jdbcType=DECIMAL},
|
|
|
|
+ PRICEIDS = #{priceids,jdbcType=VARCHAR},
|
|
|
|
+ HISTORY_DETAILS_AMOUNT = #{historyDetailsAmount,jdbcType=DECIMAL},
|
|
|
|
+ STATEMENT_ID = #{statementId,jdbcType=DECIMAL},
|
|
|
|
+ PHOTO = #{photo,jdbcType=VARCHAR},
|
|
|
|
+ REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
|
+ PRICE_VALUE = #{priceValue,jdbcType=DECIMAL}
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
<update id="updateByPrimaryKeySelective" parameterType="com.steerinfo.dil.model.BmstruckDetailsOrder">
|
|
@@ -358,16 +464,28 @@
|
|
<if test="orderId != null">
|
|
<if test="orderId != null">
|
|
ORDER_ID = #{orderId,jdbcType=DECIMAL},
|
|
ORDER_ID = #{orderId,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
- <if test="priceids !=null">
|
|
|
|
|
|
+ <if test="priceids != null">
|
|
PRICEIDS = #{priceids,jdbcType=VARCHAR},
|
|
PRICEIDS = #{priceids,jdbcType=VARCHAR},
|
|
</if>
|
|
</if>
|
|
- <if test="historyDetailsAmount !=null">
|
|
|
|
- HISTORY_DETAILS_AMOUNT =#{historyDetailsAmount,jdbcType=DECIMAL}
|
|
|
|
|
|
+ <if test="historyDetailsAmount != null">
|
|
|
|
+ HISTORY_DETAILS_AMOUNT = #{historyDetailsAmount,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="statementId != null">
|
|
|
|
+ STATEMENT_ID = #{statementId,jdbcType=DECIMAL},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="photo != null">
|
|
|
|
+ PHOTO = #{photo,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="remark != null">
|
|
|
|
+ REMARK = #{remark,jdbcType=VARCHAR},
|
|
|
|
+ </if>
|
|
|
|
+ <if test="priceValue != null">
|
|
|
|
+ PRICE_VALUE = #{priceValue,jdbcType=DECIMAL},
|
|
</if>
|
|
</if>
|
|
</set>
|
|
</set>
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
</update>
|
|
</update>
|
|
- <select id="selectByPrimaryKey" parameterType="DECIMAL" resultMap="BaseResultMap">
|
|
|
|
|
|
+ <select id="selectByPrimaryKey" parameterType="java.math.BigDecimal" resultMap="BaseResultMap">
|
|
<include refid="select" />
|
|
<include refid="select" />
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
where DETAILS_ID = #{detailsId,jdbcType=DECIMAL}
|
|
</select>
|
|
</select>
|
|
@@ -388,7 +506,9 @@
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
INSERT_TIME, UPDATE_USERNAME,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
UPDATE_TIME, INSERT_UPDATE_REMARK,
|
|
WETHER_TO_STATEMENT, EAS_AMOUNT,
|
|
WETHER_TO_STATEMENT, EAS_AMOUNT,
|
|
- ORDER_ID)
|
|
|
|
|
|
+ ORDER_ID, PRICEIDS, HISTORY_DETAILS_AMOUNT,
|
|
|
|
+ STATEMENT_ID, PHOTO, REMARK,
|
|
|
|
+ PRICE_VALUE)
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
( <foreach collection="list" item="item" separator="union all">
|
|
select
|
|
select
|
|
#{item.detailsId,jdbcType=DECIMAL},
|
|
#{item.detailsId,jdbcType=DECIMAL},
|
|
@@ -398,7 +518,9 @@
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.insertTime,jdbcType=TIMESTAMP}, #{item.updateUsername,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.updateTime,jdbcType=TIMESTAMP}, #{item.insertUpdateRemark,jdbcType=VARCHAR},
|
|
#{item.wetherToStatement,jdbcType=DECIMAL}, #{item.easAmount,jdbcType=DECIMAL},
|
|
#{item.wetherToStatement,jdbcType=DECIMAL}, #{item.easAmount,jdbcType=DECIMAL},
|
|
- #{item.orderId,jdbcType=DECIMAL} from dual
|
|
|
|
|
|
+ #{item.orderId,jdbcType=DECIMAL}, #{item.priceids,jdbcType=VARCHAR}, #{item.historyDetailsAmount,jdbcType=DECIMAL},
|
|
|
|
+ #{item.statementId,jdbcType=DECIMAL}, #{item.photo,jdbcType=VARCHAR}, #{item.remark,jdbcType=VARCHAR},
|
|
|
|
+ #{item.priceValue,jdbcType=DECIMAL} from dual
|
|
</foreach> )
|
|
</foreach> )
|
|
</insert>
|
|
</insert>
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
<update id="batchUpdate" parameterType="java.util.List">
|
|
@@ -464,12 +586,35 @@
|
|
<foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
<foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
when #{item.detailsId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
|
|
when #{item.detailsId,jdbcType=DECIMAL} then #{item.orderId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ ,PRICEIDS=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
|
|
+ when #{item.detailsId,jdbcType=DECIMAL} then #{item.priceids,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,HISTORY_DETAILS_AMOUNT=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
|
|
+ when #{item.detailsId,jdbcType=DECIMAL} then #{item.historyDetailsAmount,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,STATEMENT_ID=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
|
|
+ when #{item.detailsId,jdbcType=DECIMAL} then #{item.statementId,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PHOTO=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
|
|
+ when #{item.detailsId,jdbcType=DECIMAL} then #{item.photo,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,REMARK=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
|
|
+ when #{item.detailsId,jdbcType=DECIMAL} then #{item.remark,jdbcType=VARCHAR}
|
|
|
|
+ </foreach>
|
|
|
|
+ ,PRICE_VALUE=
|
|
|
|
+ <foreach close="end" collection="list" index="index" item="item" open="case DETAILS_ID" separator=" ">
|
|
|
|
+ when #{item.detailsId,jdbcType=DECIMAL} then #{item.priceValue,jdbcType=DECIMAL}
|
|
|
|
+ </foreach>
|
|
where DETAILS_ID in
|
|
where DETAILS_ID in
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
<foreach close=")" collection="list" index="index" item="item" open="(" separator=",">
|
|
#{item.detailsId,jdbcType=DECIMAL}
|
|
#{item.detailsId,jdbcType=DECIMAL}
|
|
</foreach>
|
|
</foreach>
|
|
</update>
|
|
</update>
|
|
-
|
|
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
<delete id="batchDelete" parameterType="java.util.List">
|
|
delete from BMSTRUCK_DETAILS_ORDER
|
|
delete from BMSTRUCK_DETAILS_ORDER
|
|
where DETAILS_ID in
|
|
where DETAILS_ID in
|
|
@@ -2415,12 +2560,10 @@
|
|
UPDATE BMSTRUCK_DETAILS_ORDER BDO
|
|
UPDATE BMSTRUCK_DETAILS_ORDER BDO
|
|
SET
|
|
SET
|
|
BDO.DETAILS_AMOUNT = #{detailAmount},
|
|
BDO.DETAILS_AMOUNT = #{detailAmount},
|
|
|
|
+ BDO.PRICE_VALUE = #{priceValue},
|
|
BDO.PHOTO = #{url},
|
|
BDO.PHOTO = #{url},
|
|
BDO.UPDATE_USERNAME = #{userId},
|
|
BDO.UPDATE_USERNAME = #{userId},
|
|
BDO.REMARK = #{detailRemark}
|
|
BDO.REMARK = #{detailRemark}
|
|
- WHERE BDO.ORDER_ID IN
|
|
|
|
- <foreach collection="orderList" open="(" item="orderId" close=")" separator=",">
|
|
|
|
- #{orderId}
|
|
|
|
- </foreach>
|
|
|
|
|
|
+ WHERE BDO.ORDER_ID = #{orderId} AND BDO.WEIGHT_TASK_RESULT_ID=#{weightTaskResultId}
|
|
</update>
|
|
</update>
|
|
</mapper>
|
|
</mapper>
|