新增占桩订单后管页面

This commit is contained in:
Lemon
2023-09-08 09:30:43 +08:00
parent 72699df4dc
commit 557fa69811
10 changed files with 612 additions and 100 deletions

View File

@@ -113,4 +113,13 @@ public interface OrderPileOccupyMapper {
* @return
*/
OrderPileOccupy queryUnPayOrderByMemberId(String memberId);
/**
* 查询占桩订单列表
*
* @param orderPileOccupy 占桩订单
* @return 占桩订单集合
*/
public List<OrderPileOccupy> selectOrderPileOccupyList(OrderPileOccupy orderPileOccupy);
}

View File

@@ -37,6 +37,14 @@ public interface OrderPileOccupyService{
OrderPileOccupy queryByOccupyCode(String occupyCode);
/**
* 查询占桩订单列表
*
* @param orderPileOccupy 占桩订单
* @return 占桩订单集合
*/
public List<OrderPileOccupy> selectOrderPileOccupyList(OrderPileOccupy orderPileOccupy);
List<OrderPileOccupy> queryOccupyOrderList(QueryOccupyOrderDTO dto);
/**

View File

@@ -139,6 +139,11 @@ public class OrderPileOccupyServiceImpl implements OrderPileOccupyService {
return orderPileOccupyMapper.queryByOccupyCode(occupyCode);
}
@Override
public List<OrderPileOccupy> selectOrderPileOccupyList(OrderPileOccupy orderPileOccupy) {
return orderPileOccupyMapper.selectOrderPileOccupyList(orderPileOccupy);
}
/**
* 查询占桩订单列表
*

View File

@@ -905,4 +905,25 @@
order by create_time desc
limit 1
</select>
<select id="selectOrderPileOccupyList" parameterType="com.jsowell.pile.domain.OrderPileOccupy" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"/>
from order_pile_occupy
<where>
<if test="occupyCode != null and occupyCode != ''"> and occupy_code = #{occupyCode}</if>
<if test="status != null and status != ''"> and status = #{status}</if>
<if test="memberId != null and memberId != ''"> and member_id = #{memberId}</if>
<if test="stationId != null and stationId != ''"> and station_id = #{stationId}</if>
<if test="orderCode != null and orderCode != ''"> and order_code = #{orderCode}</if>
<if test="transactionCode != null and transactionCode != ''"> and transaction_code = #{transactionCode}</if>
<if test="startTime != null "> and start_time = #{startTime}</if>
<if test="endTime != null "> and end_time = #{endTime}</if>
<if test="payStatus != null and payStatus != ''"> and pay_status = #{payStatus}</if>
<if test="orderAmount != null "> and order_amount = #{orderAmount}</if>
<if test="pileSn != null and pileSn != ''"> and pile_sn = #{pileSn}</if>
<if test="connectorCode != null and connectorCode != ''"> and connector_code = #{connectorCode}</if>
<if test="pileConnectorCode != null and pileConnectorCode != ''"> and pile_connector_code = #{pileConnectorCode}</if>
</where>
</select>
</mapper>