mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 19:15:35 +08:00
update 更新数据接口
This commit is contained in:
@@ -940,4 +940,38 @@
|
||||
AND t1.create_time <![CDATA[ <= ]]> #{endTime,jdbcType=VARCHAR}
|
||||
|
||||
</select>
|
||||
|
||||
<select id="queryElecAmountNullList" resultMap="OrderDetailResult">
|
||||
select
|
||||
<include refid="Detail_Base_Column_List"/>
|
||||
from order_detail
|
||||
where del_flag = '0'
|
||||
and total_order_amount is not null
|
||||
AND total_order_amount > '0.00'
|
||||
and total_electricity_amount is null
|
||||
</select>
|
||||
|
||||
<update id="batchUpdateOrderDetail">
|
||||
update order_detail
|
||||
<trim prefix="set" suffixOverrides=",">
|
||||
<trim prefix="total_electricity_amount =case" suffix="end,">
|
||||
<foreach collection="list" item="item" index="index">
|
||||
<if test="item.totalElectricityAmount!=null">
|
||||
when id=#{item.id} then #{item.totalElectricityAmount}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
<trim prefix="total_service_amount =case" suffix="end,">
|
||||
<foreach collection="list" item="item" index="index">
|
||||
<if test="item.totalServiceAmount!=null">
|
||||
when id=#{item.id} then #{item.totalServiceAmount}
|
||||
</if>
|
||||
</foreach>
|
||||
</trim>
|
||||
</trim>
|
||||
where
|
||||
<foreach collection="list" separator="or" item="i" index="index" >
|
||||
id=#{i.id}
|
||||
</foreach>
|
||||
</update>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user