mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-08-13 17:53:45 +08:00
update 停车优惠配置接口
This commit is contained in:
@@ -485,11 +485,23 @@
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="logicDeleteByStationIdExcludeId">
|
||||
update charge_parking_discount
|
||||
set del_flag = '1',
|
||||
update_by = #{updateBy,jdbcType=VARCHAR},
|
||||
update_time = #{updateTime,jdbcType=TIMESTAMP}
|
||||
where station_id = #{stationId,jdbcType=VARCHAR}
|
||||
and del_flag = '0'
|
||||
and id != #{keepId,jdbcType=INTEGER}
|
||||
</update>
|
||||
|
||||
<select id="selectByStationId" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from charge_parking_discount
|
||||
where del_flag = '0'
|
||||
and station_id = #{stationId,jdbcType=VARCHAR}
|
||||
order by ifnull(update_time, create_time) desc, id desc
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user