update 占桩订单逻辑

This commit is contained in:
2023-08-18 16:03:19 +08:00
parent 29a60ec560
commit d82ece35ca
3 changed files with 40 additions and 38 deletions

View File

@@ -818,17 +818,6 @@
</if>
</select>
<select id="queryOccupiedOrder" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from order_pile_occupy
where del_flag = '0'
and status = '0'
and pay_status = '0'
and pile_sn = #{pileSn,jdbcType=VARCHAR}
and connector_code = #{connectorCode,jdbcType=VARCHAR}
</select>
<select id="queryUnPayOrderByMemberId" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
@@ -855,21 +844,18 @@
member_id = #{memberId,jdbcType=VARCHAR}
</select>
<select id="getOrderInfoByPile" resultMap="BaseResultMap">
<select id="queryOccupiedOrder" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from
order_pile_occupy
where
pile_sn = #{pileSn,jdbcType=VARCHAR}
and
connector_code = #{connectorCode,jdbcType=VARCHAR}
order by
create_time DESC
limit 1
<include refid="Base_Column_List"/>
from order_pile_occupy
where del_flag = '0'
and status = '0'
and pile_sn = #{pileSn,jdbcType=VARCHAR}
and connector_code = #{connectorCode,jdbcType=VARCHAR}
order by create_time DESC
</select>
<select id="getDraftOccupyOrder" resultMap="BaseResultMap">
<select id="queryDraftOccupyOrder" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from