Blame view

parking-module-park/src/main/java/com/zteits/park/dao/impl/ParkingLotAreasDaoImpl.java 1.66 KB
9af4a544   王彪总   新项目
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
  package com.zteits.park.dao.impl;
  
  import com.zteits.clouds.api.dto.park.dto.closecarpark.ParkingLotChannelAreaDTO;
  import com.zteits.clouds.api.dto.park.param.closecarpark.QueryChannelInfoByNoRequest;
  import com.zteits.park.dao.ParkingLotAreasDao;
  import com.zteits.park.domain.ParkingLotAreas;
  import com.zteits.park.mapper.ParkingLotAreasMapper;
  import com.zteits.park.mapper.smapper.ParkingLotAreasSMapper;
  import org.springframework.beans.factory.annotation.Autowired;
  import org.springframework.stereotype.Component;
  
  import java.util.List;
  
  /**
   * Copyright: Copyright (c) 2018  zteits
   *
   * @Description:
   * @version: v1.0.0
   * @author: zengqc
   * @date: 2021/5/26
   * Modification History:
   * Date             Author          Version            Description
   * ---------------------------------------------------------*
   * 2021/5/26      zengqc          v1.0.0               创建
   */
  @Component
  public class ParkingLotAreasDaoImpl implements ParkingLotAreasDao {
  
      @Autowired
      private ParkingLotAreasMapper parkingLotAreasMapper;
      @Autowired
      private ParkingLotAreasSMapper parkingLotAreasSMapper;
  
      /**
       * 根据停车场编号以及道闸编号,获取对应的区域信息
       *
       */
      @Override
      public ParkingLotAreas getParkingLotAreasByPlNoAndChannel(QueryChannelInfoByNoRequest request) {
          parkingLotAreasSMapper.getParkingLotAreasByPlNoAndChannel(request.getPlNo(), request.getChannelNumber());
          return null;
      }
  
      /**
       * 获取所有的免费的停车场区域的信息
       */
      @Override
      public List<ParkingLotChannelAreaDTO> getAllFreeChargeAreas() {
          return parkingLotAreasSMapper.getAllFreeChargeAreas();
      }
  }