mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-02 17:10:03 +08:00
新增 查询用户挂起状态占桩订单
This commit is contained in:
@@ -76,4 +76,11 @@ public interface OrderPileOccupyMapper {
|
||||
* @param connectorCode
|
||||
*/
|
||||
OrderPileOccupy queryOccupiedOrder(@Param("pileSn") String pileSn, @Param("connectorCode") String connectorCode);
|
||||
|
||||
/**
|
||||
* 通过memberId查询挂起状态订单
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
List<OrderPileOccupy> queryUnPayOrderByMemberId(@Param("memberId") String memberId);
|
||||
}
|
||||
@@ -38,4 +38,10 @@ public interface OrderPileOccupyService{
|
||||
|
||||
void stopOccupyPileOrder(String pileSn, String connectorCode);
|
||||
|
||||
/**
|
||||
* 通过memberid查询挂起状态订单
|
||||
* @param memberId
|
||||
* @return
|
||||
*/
|
||||
List<OrderPileOccupy> queryUnPayOrderByMemberId(String memberId);
|
||||
}
|
||||
|
||||
@@ -253,9 +253,12 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService{
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据会员id查询未支付占桩订单
|
||||
* 根据会员id查询挂起状态占桩订单
|
||||
*/
|
||||
|
||||
@Override
|
||||
public List<OrderPileOccupy> queryUnPayOrderByMemberId(String memberId) {
|
||||
return orderPileOccupyMapper.queryUnPayOrderByMemberId(memberId);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -805,4 +805,15 @@
|
||||
and pile_sn = #{pileSn,jdbcType=VARCHAR}
|
||||
and connector_code = #{connectorCode,jdbcType=VARCHAR}
|
||||
</select>
|
||||
|
||||
<select id="queryUnPayOrderByMemberId" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from
|
||||
order_pile_occupy
|
||||
where
|
||||
del_flag = '0'
|
||||
and status = '2'
|
||||
and member_id = #{memberId,jdbcType=VARCHAR}
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user